package/dnsmasq: add support for bogus-nxdomain (thanks to Mickey Knox), bump release...
authorNicolas Thill <nico@openwrt.org>
Wed, 11 Aug 2010 10:37:33 +0000 (10:37 +0000)
committerNicolas Thill <nico@openwrt.org>
Wed, 11 Aug 2010 10:37:33 +0000 (10:37 +0000)
SVN-Revision: 22592

package/dnsmasq/Makefile
package/dnsmasq/files/dhcp.conf
package/dnsmasq/files/dnsmasq.init

index 977e1097097545aacda8e8acecebd2a5caf19e58..6654bd1f8e2d0628aa4f58306f04071c750c3484 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=dnsmasq
 PKG_VERSION:=2.55
-PKG_RELEASE:=3
+PKG_RELEASE:=4
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=http://thekelleys.org.uk/dnsmasq
index c79458fb2be4e91213d3b55084db325e5cabd671..cff08d482c6747eb7ea68d736a2920eae729c709 100644 (file)
@@ -18,6 +18,7 @@ config dnsmasq
        #option nonwildcard     1
        #list interface         br-lan
        #list notinterface      lo
+       #list bogusnxdomain     '64.94.110.11'
 
 config dhcp lan
        option interface        lan
index fac2d8a72d0f9140a718e7ff6f551535edc3dbfc..0b74d419e5f1476965882f195ce495a4ae31ef2d 100644 (file)
@@ -55,6 +55,10 @@ append_addnhosts() {
        append args "-H $1"
 }
 
+append_bogusnxdomain() {
+       append args "-B $1"
+}
+
 dnsmasq() {
        local cfg="$1"
        append_bool "$cfg" authoritative "-K"
@@ -86,6 +90,7 @@ dnsmasq() {
        config_list_foreach "$cfg" "interface" append_interface
        config_list_foreach "$cfg" "notinterface" append_notinterface
        config_list_foreach "$cfg" "addnhosts" append_addnhosts
+       config_list_foreach "$cfg" "bogusnxdomain" append_bogusnxdomain
        append_parm "$cfg" "leasefile" "-l"
        append_parm "$cfg" "resolvfile" "-r"
        append_parm "$cfg" "tftp_root" "--tftp-root"