summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
Diffstat (limited to 'sbin')
-rwxr-xr-xsbin/dhclient-script4
1 files changed, 4 insertions, 0 deletions
diff --git a/sbin/dhclient-script b/sbin/dhclient-script
index 7699648..5536219 100755
--- a/sbin/dhclient-script
+++ b/sbin/dhclient-script
@@ -148,9 +148,13 @@ add_new_resolv_conf() {
echo "search $new_domain_name" >>/etc/resolv.conf.std
fi
+ rm -f /var/etc/nameservers.conf
+
if [ -n "$new_domain_name_servers" ]; then
for nameserver in $new_domain_name_servers; do
echo "nameserver $nameserver" >>/etc/resolv.conf.std
+ echo $nameserver >>/var/etc/nameservers.conf
+ echo $new_domain_name >/var/etc/defaultdomain.conf
done
fi
OpenPOWER on IntegriCloud