dnsmasq: only write search directive if domain is actually set
SVN-Revision: 19090
This commit is contained in:
		| @@ -311,11 +311,11 @@ start() { | |||||||
|  |  | ||||||
| 	/usr/sbin/dnsmasq $args && { | 	/usr/sbin/dnsmasq $args && { | ||||||
| 		rm -f /tmp/resolv.conf | 		rm -f /tmp/resolv.conf | ||||||
|  | 		[ -n "$DOMAIN" ] && echo "search $DOMAIN" >> /tmp/resolv.conf | ||||||
| 		DNS_SERVERS="$DNS_SERVERS 127.0.0.1" | 		DNS_SERVERS="$DNS_SERVERS 127.0.0.1" | ||||||
| 		for DNS_SERVER in $DNS_SERVERS ; do | 		for DNS_SERVER in $DNS_SERVERS ; do | ||||||
| 			echo "nameserver $DNS_SERVER" >> /tmp/resolv.conf | 			echo "nameserver $DNS_SERVER" >> /tmp/resolv.conf | ||||||
| 		done | 		done | ||||||
| 		echo "search $DOMAIN" >> /tmp/resolv.conf |  | ||||||
| 	} | 	} | ||||||
| } | } | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Jo-Philipp Wich
					Jo-Philipp Wich