diff options
author | tea2ka <tea2ka@mail.goo.ne.jp> | 2014-03-21 22:43:47 +0900 |
---|---|---|
committer | tea2ka <tea2ka@mail.goo.ne.jp> | 2014-03-21 22:43:47 +0900 |
commit | bb71cf5b7b3a48812e28dbefba8c535f9bbf9973 (patch) | |
tree | 1b35466d869fd52305d0db548e8d800170524db7 /scripts/system | |
parent | b3f4391cbc72f1b1d79397d2dc7d17ebcc4d0027 (diff) | |
download | vyatta-cfg-system-bb71cf5b7b3a48812e28dbefba8c535f9bbf9973.tar.gz vyatta-cfg-system-bb71cf5b7b3a48812e28dbefba8c535f9bbf9973.zip |
using a DNS server with an IPv6 address.
It seems that immediately the back of an IPv6 address will not be
normally recognized if it is not "\n" when using a DNS server with an
IPv6 address.
Diffstat (limited to 'scripts/system')
-rwxr-xr-x | scripts/system/vyatta_update_resolv.pl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/system/vyatta_update_resolv.pl b/scripts/system/vyatta_update_resolv.pl index 70127512..b311bff5 100755 --- a/scripts/system/vyatta_update_resolv.pl +++ b/scripts/system/vyatta_update_resolv.pl @@ -130,7 +130,8 @@ if ($dhclient_script == 1) { if ($ns_in_resolvconf == 0) { open (my $rf, '>>', '/etc/resolv.conf') or die "$! error trying to overwrite"; - print $rf "nameserver\t$ns\t\t#nameserver written by $0\n"; + print $rf "#nameserver\t$ns\t\t#nameserver written by $0\n"; + print $rf "nameserver\t$ns\n"; close $rf; $restart_ntp = 1; } |