summaryrefslogtreecommitdiff
path: root/scripts/system
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/system')
-rwxr-xr-xscripts/system/vyatta_update_resolv.pl3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/system/vyatta_update_resolv.pl b/scripts/system/vyatta_update_resolv.pl
index d200e0cc..d20eb848 100755
--- a/scripts/system/vyatta_update_resolv.pl
+++ b/scripts/system/vyatta_update_resolv.pl
@@ -94,7 +94,8 @@ if ($domain_name && length($domain_name) > 0) {
}
# update /etc/resolv.conf for name-servers received from dhcp client, only done when dhclient-script calls this script
-if ($dhclient_script == 1) {
+# and there aren't statically configured DNS settings, via 'set system name-server', in place.
+if (($dhclient_script == 1) && !($vc->existsOrig('name-server'))) {
my @current_dhcp_nameservers;
my $restart_ntp = 0;