diff options
Diffstat (limited to 'dhcp_wizard')
-rw-r--r-- | dhcp_wizard/scripts/Dhcpconf.pm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/dhcp_wizard/scripts/Dhcpconf.pm b/dhcp_wizard/scripts/Dhcpconf.pm index 881ef56f..1f319eb5 100644 --- a/dhcp_wizard/scripts/Dhcpconf.pm +++ b/dhcp_wizard/scripts/Dhcpconf.pm @@ -75,6 +75,9 @@ sub do_it { my $wiz_host_name = $o->network_get("HOSTNAME"); my $wiz_gateway = $o->network_get("GATEWAY"); my $wiz_dns = $o->network_get("dnsServer"); + if ($wiz_dns eq '127.0.0.1') { + $wiz_dns = $o->network_get("dnsServer2") || $wiz_dns + } if (!$wiz_gateway) { my $t = `LC_ALL=C /sbin/ip route list scope global`; ($wiz_gateway) = $t =~ /default via (\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}) dev/; |