Skip to content

Commit 99b9708

Browse files
committed
Fix static route for DNS from DHCP servers.
1 parent fe19e7d commit 99b9708

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sbin/dhclient-script

+1-1
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ add_new_resolv_conf() {
189189
# so that mulitple wans work correctly with multiple dns
190190
# also backup the nameserver for later route removal
191191
echo $nameserver >>/var/etc/nameserver_$interface
192-
route add $nameserver -if $interface
192+
route add $nameserver -iface $interface
193193
done
194194
echo $new_domain_name >/var/etc/defaultdomain.conf
195195
fi

0 commit comments

Comments
 (0)