X-Git-Url: http://git.archive.openwrt.org/?a=blobdiff_plain;f=modules%2Fadmin-full%2Fluasrc%2Fmodel%2Fcbi%2Fadmin_network%2Fdhcp.lua;h=ceebe7cb53a4668b1c370187d462a47e595aaa46;hb=5be59e6ae7a496a695c5dd533b0b48bb172ec821;hp=27a4156eea4bb216979ad22b62e2b950e97b2266;hpb=0ecee984afd0b64e2030b547edc9fbdf038164c7;p=project%2Fluci.git
diff --git a/modules/admin-full/luasrc/model/cbi/admin_network/dhcp.lua b/modules/admin-full/luasrc/model/cbi/admin_network/dhcp.lua
index 27a4156ee..ceebe7cb5 100644
--- a/modules/admin-full/luasrc/model/cbi/admin_network/dhcp.lua
+++ b/modules/admin-full/luasrc/model/cbi/admin_network/dhcp.lua
@@ -14,13 +14,13 @@ $Id$
local sys = require "luci.sys"
-m = Map("dhcp", translate("DHCP Server"),
+m = Map("dhcp", translate("DHCP and DNS"),
translate("Dnsmasq is a combined DHCP-Server and DNS-" ..
"Forwarder for NAT " ..
"firewalls"))
-s = m:section(TypedSection, "dnsmasq", translate("Settings"))
+s = m:section(TypedSection, "dnsmasq", translate("Server Settings"))
s.anonymous = true
s.addremove = false
@@ -79,6 +79,7 @@ s:taboption("advanced", Flag, "filterwin2k",
translate("Filter useless"),
translate("Do not forward requests that cannot be answered by public name servers"))
+
s:taboption("advanced", Flag, "localise_queries",
translate("Localise queries"),
translate("Localise hostname depending on the requesting subnet if multiple IPs are available"))
@@ -104,6 +105,14 @@ s:taboption("advanced", Flag, "strictorder",
translate("DNS servers will be queried in the " ..
"order of the resolvfile")).optional = true
+
+bn = s:taboption("advanced", DynamicList, "bogusnxdomain", translate("Bogus NX Domain Override"),
+ translate("List of hosts that supply bogus NX domain results"))
+
+bn.optional = true
+bn.placeholder = "67.215.65.132"
+
+
s:taboption("general", Flag, "logqueries",
translate("Log queries"),
translate("Write received DNS requests to syslog")).optional = true
@@ -207,14 +216,12 @@ db:depends("enable_tftp", "1")
db.placeholder = "pxelinux.0"
-m2 = Map("dhcp", translate("DHCP Leases"),
+m:section(SimpleSection).template = "admin_network/lease_status"
+
+s = m:section(TypedSection, "host", translate("Static Leases"),
translate("Static leases are used to assign fixed IP addresses and symbolic hostnames to " ..
"DHCP clients. They are also required for non-dynamic interface configurations where " ..
- "only hosts with a corresponding lease are served."))
-
-m2:section(SimpleSection).template = "admin_network/lease_status"
-
-s = m2:section(TypedSection, "host", translate("Static Leases"),
+ "only hosts with a corresponding lease are served.") .. "
" ..
translate("Use the Add Button to add a new lease entry. The MAC-Address " ..
"indentifies the host, the IPv4-Address specifies to the fixed address to " ..
"use and the Hostname is assigned as symbolic name to the requesting host."))
@@ -228,7 +235,7 @@ name.datatype = "hostname"
name.rmempty = true
mac = s:option(Value, "mac", translate("MAC-Address"))
-mac.datatype = "macaddr"
+mac.datatype = "list(macaddr)"
ip = s:option(Value, "ip", translate("IPv4-Address"))
ip.datatype = "ip4addr"
@@ -242,4 +249,4 @@ sys.net.arptable(function(entry)
end)
-return m, m2
+return m