mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2024-11-18 22:43:53 +01:00
dnsmasq: only write search directive if domain is actually set
SVN-Revision: 19090
This commit is contained in:
parent
46783f81ee
commit
f40e9e8d8a
@ -311,11 +311,11 @@ start() {
|
||||
|
||||
/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
|
||||
done
|
||||
echo "search $DOMAIN" >> /tmp/resolv.conf
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user