package/dnsmasq: permit UCI configuration of --dhcp-fqdn option
authorJo-Philipp Wich <jow@openwrt.org>
Sun, 1 Jul 2012 11:32:45 +0000 (11:32 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Sun, 1 Jul 2012 11:32:45 +0000 (11:32 +0000)
This adds a new boolean option, fqdn, to the "config dnsmasq" section of
/etc/config/dhcp. The default is off. When set on, it enables the dhcp-fqdn
option to dnsmasq. dhcp-fqdn causes dnsmasq's DNS server to not resolve
unqualifed local hostnames. The "domain" option is required when using "fqdn".
Local hostnames will remain available for lookup using fully-qualified names.

Signed-off-by: Mark Mentovai <mark@moxienet.com>
SVN-Revision: 32569

package/dnsmasq/files/dnsmasq.init

index a1334d05fcf16fc71c118fde22fedc8ce529662e..e90d79336830040821929ae4a585e8e319d5d45c 100644 (file)
@@ -88,6 +88,7 @@ dnsmasq() {
        append_bool "$cfg" expandhosts "--expand-hosts"
        append_bool "$cfg" enable_tftp "--enable-tftp"
        append_bool "$cfg" nonwildcard "--bind-interfaces"
        append_bool "$cfg" expandhosts "--expand-hosts"
        append_bool "$cfg" enable_tftp "--enable-tftp"
        append_bool "$cfg" nonwildcard "--bind-interfaces"
+       append_bool "$cfg" fqdn "--dhcp-fqdn"
 
        append_parm "$cfg" dhcpscript "--dhcp-script"
        append_parm "$cfg" cachesize "--cache-size"
 
        append_parm "$cfg" dhcpscript "--dhcp-script"
        append_parm "$cfg" cachesize "--cache-size"