From bb71cf5b7b3a48812e28dbefba8c535f9bbf9973 Mon Sep 17 00:00:00 2001 From: tea2ka Date: Fri, 21 Mar 2014 22:43:47 +0900 Subject: 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. --- scripts/system/vyatta_update_resolv.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- cgit v1.2.3 From 628dc6cd7b92f182cc5252a5e6f60a0bf18d94da Mon Sep 17 00:00:00 2001 From: tea2ka Date: Fri, 21 Mar 2014 22:50:03 +0900 Subject: collect dhcpv6-options The "dhcpv6-options" option parameter corrected the bug which is not reflected normally. --- scripts/vyatta-dhcpv6-client.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/vyatta-dhcpv6-client.pl b/scripts/vyatta-dhcpv6-client.pl index 18fbfbd8..3a86f9ba 100755 --- a/scripts/vyatta-dhcpv6-client.pl +++ b/scripts/vyatta-dhcpv6-client.pl @@ -73,10 +73,10 @@ sub dhcpv6_options { my $args = ""; $args .= " -T" - if ($config->exists("dhcpv6-options/temporary")); + if ($config->exists("dhcpv6-options temporary")); $args .= " -S" - if ($config->exists("dhcpv6-options/parameters-only")); + if ($config->exists("dhcpv6-options parameters-only")); return $args; } -- cgit v1.2.3