Currently, the local resolv.conf only contains name server settings, but no 
search domains.  If specified by the dh...@dnsmasq[0].domain option, add the 
domain name as a search domain to the local resolv.conf.

Signed-off-by: Stefan Bethke <[email protected]>

Index: package/dnsmasq/files/dnsmasq.init
===================================================================
--- package/dnsmasq/files/dnsmasq.init  (revision 18935)
+++ package/dnsmasq/files/dnsmasq.init  (working copy)
@@ -309,6 +309,7 @@
 
        /usr/sbin/dnsmasq $args && {
                rm -f /tmp/resolv.conf
+               [ -n "$DOMAIN" ] && echo "search $DOMAIN" >> /tmp/resolv.conf
                DNS_SERVERS="$DNS_SERVERS 127.0.0.1"
                for DNS_SERVER in $DNS_SERVERS ; do
                        echo "nameserver $DNS_SERVER" >> /tmp/resolv.conf



-- 
Stefan Bethke <[email protected]>   Fon +49 151 14070811




_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to