Forward port whiterussian resolv.conf changes /etc/resolv.conf links to /tmp/resolv.conf /tmp/resolv.conf links to /tmp/resolv.conf.auto by default (which is where the ISPs nameserver is in) When dnsmasq starts, it replaces /tmp/resolv.conf with a file pointing to 127.0.0.1
SVN-Revision: 6043
This commit is contained in:
@@ -120,9 +120,9 @@ setup_interface() {
|
||||
$DEBUG ifconfig "$iface" "$ipaddr" netmask "$netmask"
|
||||
$DEBUG ifconfig "$iface" inet6 add "$ip6addr"
|
||||
[ -z "$gateway" ] || route add default gw "$gateway"
|
||||
[ -z "$dns" -o -f /tmp/resolv.conf ] || {
|
||||
[ -z "$dns" -o -f /tmp/resolv.conf.auto ] || {
|
||||
for ns in $dns; do
|
||||
echo "nameserver $ns" >> /tmp/resolv.conf
|
||||
echo "nameserver $ns" >> /tmp/resolv.conf.auto
|
||||
done
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user