diff options
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++; } |