summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2010-05-13 11:41:09 -0400
committerjim-p <jimp@pfsense.org>2010-05-13 11:41:51 -0400
commit99b9708b2f2d9ede510a1fe0b16dfdb2cfa998aa (patch)
treedf0706882b82935efdf9c6740cbefa418c7ba93b
parentfe19e7d7920cfcfa6437b1617b9586c29d0bd49b (diff)
downloadpfsense-99b9708b2f2d9ede510a1fe0b16dfdb2cfa998aa.zip
pfsense-99b9708b2f2d9ede510a1fe0b16dfdb2cfa998aa.tar.gz
Fix static route for DNS from DHCP servers.
-rwxr-xr-xsbin/dhclient-script2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/dhclient-script b/sbin/dhclient-script
index 8d10af5..5ef88ea 100755
--- a/sbin/dhclient-script
+++ b/sbin/dhclient-script
@@ -189,7 +189,7 @@ add_new_resolv_conf() {
# so that mulitple wans work correctly with multiple dns
# also backup the nameserver for later route removal
echo $nameserver >>/var/etc/nameserver_$interface
- route add $nameserver -if $interface
+ route add $nameserver -iface $interface
done
echo $new_domain_name >/var/etc/defaultdomain.conf
fi
OpenPOWER on IntegriCloud