diff options
author | Seth Mos <seth.mos@dds.nl> | 2011-09-03 20:01:17 +0200 |
---|---|---|
committer | Seth Mos <seth.mos@dds.nl> | 2011-09-03 20:01:17 +0200 |
commit | a04959b8838d61f59838b2062fa404e0bc9beaa0 (patch) | |
tree | 8a0424cc06e08e49781025363bfde6c90e0cc581 /etc | |
parent | f535d5a0bb339616e287f74b23e46d9594ad2088 (diff) | |
download | pfsense-a04959b8838d61f59838b2062fa404e0bc9beaa0.zip pfsense-a04959b8838d61f59838b2062fa404e0bc9beaa0.tar.gz |
Also add the new RDNSS fields to the rtadvd config for prefix delegation cases.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/services.inc | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/etc/inc/services.inc b/etc/inc/services.inc index f39fa8e..b576dee 100644 --- a/etc/inc/services.inc +++ b/etc/inc/services.inc @@ -159,7 +159,14 @@ EOD; $rtadvdconf .= "\t:addr=\"{$subnetv6}\":\\\n"; $rtadvdconf .= "\t:prefixlen#{$ifcfgsnv6}:\\\n"; $rtadvdconf .= "\t:raflags=\"mo\":\\\n"; - $rtadvdconf .= "\t:tc=ether:\n"; + $rtadvdconf .= "\t:tc=ether:\\\n"; + if (isset($config['dnsmasq']['enable'])) { + $dnslist = get_interface_ipv6($dhcpv6if); + $rtadvdconf .= "\t:rdnss=\"{$dnslist}\":\\\n"; + } elseif (!empty($config['system']['dnsserver'][0])) { + $dnslist = implode(",", $config['system']['dnsserver']); + $rtadvdconf .= "\t:rdnss=\"{$dnslist}\":\\\n"; + } $rtadvdconf .= "\n\n"; $rtadvdnum++; } |