Changeset 5462

Show
Ignore:
Timestamp:
10/31/09 23:04:43 (4 years ago)
Author:
jow
Message:

modules/admin-full: fix dnsmasq page

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • luci/trunk/modules/admin-full/luasrc/model/cbi/admin_services/dnsmasq.lua

    r5448 r5462  
    1212$Id$ 
    1313]]-- 
    14 m = Map("dhcp", "Dnsmasq") 
     14m = Map("dhcp", "Dnsmasq", 
     15    translate("Dnsmasq is a combined <abbr title=\"Dynamic Host Configuration Protocol" .. 
     16        "\">DHCP</abbr>-Server and <abbr title=\"Domain Name System\">DNS</abbr>-" .. 
     17        "Forwarder for <abbr title=\"Network Address Translation\">NAT</abbr> " .. 
     18        "firewalls")) 
    1519 
    1620s = m:section(TypedSection, "dnsmasq", translate("Settings")) 
    1721s.anonymous = true 
     22s.addremove = false 
    1823 
    19 s:option(Flag, "domainneeded") 
    20 s:option(Flag, "authoritative") 
    21 s:option(Flag, "boguspriv") 
    22 s:option(Flag, "filterwin2k") 
    23 s:option(Flag, "localise_queries") 
    24 s:option(Value, "local") 
    25 s:option(Value, "domain") 
    26 s:option(Flag, "expandhosts") 
    27 s:option(Flag, "nonegcache") 
    28 s:option(Flag, "readethers") 
    29 s:option(Value, "leasefile") 
    30 s:option(Value, "resolvfile") 
    31 s:option(Flag, "nohosts").optional = true 
    32 s:option(Flag, "strictorder").optional = true 
    33 s:option(Flag, "logqueries").optional = true 
    34 s:option(Flag, "noresolv").optional = true 
    35 s:option(Value, "dnsforwardmax").optional = true 
    36 s:option(Value, "port").optional = true 
    37 s:option(Value, "ednspacket_max").optional = true 
    38 s:option(Value, "dhcpleasemax").optional = true 
    39 s:option(Value, "addnhosts").optional = true 
    40 s:option(Value, "queryport").optional = true 
    41 s:option(Flag, "enable_tftp").optional = true 
    42 s:option(Value, "tftp_root").optional = true 
    43 s:option(Value, "dhcp_boot").optional = true 
     24s:option(Flag, "domainneeded", 
     25    translate("Domain required"), 
     26    translate("Don't forward <abbr title=\"Domain Name System\">DNS</abbr>-Requests without " .. 
     27        "<abbr title=\"Domain Name System\">DNS</abbr>-Name")) 
     28 
     29s:option(Flag, "authoritative", 
     30    translate("Authoritative"), 
     31    translate("This is the only <abbr title=\"Dynamic Host Configuration Protocol\">DHCP</" .. 
     32        "abbr> in the local network")) 
     33 
     34s:option(Flag, "boguspriv", 
     35    translate("Filter private"), 
     36    translate("Don't forward reverse lookups for local networks")) 
     37 
     38s:option(Flag, "filterwin2k", 
     39    translate("Filter useless"), 
     40    translate("filter useless <abbr title=\"Domain Name System\">DNS</abbr>-queries of " .. 
     41        "Windows-systems")) 
     42 
     43s:option(Flag, "localise_queries", 
     44    translate("Localise queries"), 
     45    translate("localises the hostname depending on its subnet")) 
     46 
     47s:option(Value, "local", 
     48    translate("Local Server")) 
     49 
     50s:option(Value, "domain", 
     51    translate("Local Domain")) 
     52 
     53s:option(Flag, "expandhosts", 
     54    translate("Expand Hosts"), 
     55    translate("adds domain names to hostentries in the resolv file")) 
     56 
     57s:option(Flag, "nonegcache", 
     58    translate("don't cache unknown"), 
     59    translate("prevents caching of negative <abbr title=\"Domain Name System\">DNS</abbr>-" .. 
     60        "replies")) 
     61 
     62s:option(Flag, "readethers", 
     63    translate("Use <code>/etc/ethers</code>"), 
     64    translate("Read <code>/etc/ethers</code> to configure the <abbr title=\"Dynamic Host " .. 
     65        "Configuration Protocol\">DHCP</abbr>-Server")) 
     66 
     67s:option(Value, "leasefile", 
     68    translate("Leasefile"), 
     69    translate("file where given <abbr title=\"Dynamic Host Configuration Protocol\">DHCP</" .. 
     70        "abbr>-leases will be stored")) 
     71 
     72s:option(Value, "resolvfile", 
     73    translate("Resolvfile"), 
     74    translate("local <abbr title=\"Domain Name System\">DNS</abbr> file")) 
     75 
     76s:option(Flag, "nohosts", 
     77    translate("Ignore <code>/etc/hosts</code>")).optional = true 
     78 
     79s:option(Flag, "strictorder", 
     80    translate("Strict order"), 
     81    translate("<abbr title=\"Domain Name System\">DNS</abbr>-Server will be queried in the " .. 
     82        "order of the resolvfile")).optional = true 
     83 
     84s:option(Flag, "logqueries", 
     85    translate("Log queries")).optional = true 
     86 
     87s:option(Flag, "noresolv", 
     88    translate("Ignore resolve file")).optional = true 
     89 
     90s:option(Value, "dnsforwardmax", 
     91    translate("concurrent queries")).optional = true 
     92 
     93s:option(Value, "port", 
     94    translate("<abbr title=\"Domain Name System\">DNS</abbr>-Port")).optional = true 
     95 
     96s:option(Value, "ednspacket_max", 
     97    translate("<abbr title=\"maximal\">max.</abbr> <abbr title=\"Extension Mechanisms for " .. 
     98        "Domain Name System\">EDNS0</abbr> paket size")).optional = true 
     99 
     100s:option(Value, "dhcpleasemax", 
     101    translate("<abbr title=\"maximal\">max.</abbr> <abbr title=\"Dynamic Host Configuration " .. 
     102        "Protocol\">DHCP</abbr>-Leases")).optional = true 
     103 
     104s:option(Value, "addnhosts", 
     105    translate("additional hostfile")).optional = true 
     106 
     107s:option(Value, "queryport", 
     108    translate("query port")).optional = true 
     109 
     110s:option(Flag, "enable_tftp", 
     111    translate("Enable TFTP-Server")).optional = true 
     112 
     113s:option(Value, "tftp_root", 
     114    translate("TFTP-Server Root")).optional = true 
     115 
     116s:option(Value, "dhcp_boot", 
     117    translate("Network Boot Image")).optional = true 
    44118 
    45119return m