I'm trying to get a NETGEAR R7000 running dd-wrt (DD-WRT v3.0-r35030M kongac (02/19/18)) to serve IPv6 addresses with their complement IPv6 DNS servers.
IPv4 works as expected, and I have modified the configuration to advertise IPv4 DNS servers through this dhcp-option command. I put this into DD-WRT>Services>Services>Dnsmasq>Additional Dnsmasq Options
. (image: https://i.stack.imgur.com/DNm0Z.png)
dhcp-option=6,198.206.14.241,138.197.25.214
Windows fetches the IPv4's DNS addresses successfully.
Connection-specific DNS Suffix : ***
Description : ***
Physical Address : ***
DHCP Enabled : Yes
IPv4 Address : 192.168.1.7
IPv4 Subnet Mask : 255.255.255.0
Lease Obtained : 2018, May 18 09:56:24
Lease Expires : 2018, May 19 09:49:32
IPv4 Default Gateway : 192.168.1.1
IPv4 DHCP Server : 192.168.1.1
IPv4 DNS Servers : 198.206.14.241, 138.197.25.214
IPv4 WINS Server :
NetBIOS over Tcpip Enabled : Yes
IPv6 Address : 2601:2c5:c000:4c63:bc0d:9d58:6daf:81cf
Link-local IPv6 Address : fe80::bc0d:9d58:6daf:81cf%14
IPv6 Default Gateway : fe80::2e30:33ff:fe44:7029%14
IPv6 DNS Server :
The problem is I cannot get DD-WRT to do the same with IPv6. In the above Windows example, IPv6 has no accompanying IPv6 DNS addresses, not even the router's IP address (router has DNS server as well) is provided. I have to manually append IPv6 addresses to resolve any IPv6 domain names.
This is my radvd configuration under DD-WRT>Setup>IPV6
:
interface br0 {
AdvSendAdvert on;
prefix 2601:2c5:c000:4c63::/64 {
AdvOnLink on;
AdvRouterAddr on;
};
RDNSS 2001:4860:4860::8888 2001:4860:4860::8844 {
AdvRDNSSLifetime 3600;
}; # does not work?
};
Entire IPV6 configuration: (image: https://i.stack.imgur.com/UvgTB.png)
I plan on using Pihole on a internal DNS server. Pihole works excellently for IPv4 when I set dhcp-option
to dhcp-option=6,192.168.1.12
(as in, clients set IPv4 DNS server to 192.168.1.12
). IPv6 DNS queries are forwarded, defeating the adblocker.