What's new

Custom WAN DNS not working

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Gary_Dexter

Senior Member
Setting my WAN DNS to Custom and choosing Quad9 doesn’t seem to work and DNS stays as ISP’s DNS (as shown in the GUI on the Network Map and using nslookup - WAN DNS page states it’s “using” Quad9).

Is this a known bug?

GT-AC2900 running Merlin 386.12
 
No one mentioned it in 386.12 thread?

Folks will start explaining you what DNS your LAN devices use, etc. As I remember you know what are you doing and your question is about some non-sticking GUI setting around WAN DNS. Correct?
 
No one mentioned it in 386.12 thread?

Folks will start explaining you what DNS your LAN devices use, etc. As I remember you know what are you doing and your question is about some non-sticking GUI setting around WAN DNS. Correct?

Yes. I know what I’m doing with regards to redirecting LAN devices to my rpi. But that’s not the issue.

The issue/question is why the router is still using my ISP’s DNS for WAN queries, when I’ve set it to use Quad9.

Cheers!
 
If there are no browser console errors when you save the DNS settings, it could be something obscure with Dual WAN, even if you don’t use it. This thread sounded similar:
 
If there are no browser console errors when you save the DNS settings, it could be something obscure with Dual WAN, even if you don’t use it. This thread sounded similar:

Hi Dave - tried that too - no luck.. no manual entries anywhere.

Anything/where else to check?
 
See what’s in nvram.
Code:
nvram show | grep -E "^wan[01]?_dns"

wan0_dns=212.23.3.100 212.23.6.100
wan0_dns1_x=9.9.9.9
wan0_dns2_x=149.112.112.112
wan0_dnsenable_x=0
wan1_dns=
wan1_dns1_x=
wan1_dns2_x=
wan1_dnsenable_x=1
wan_dns=212.23.3.100 212.23.6.100
wan_dns1_x=9.9.9.9
wan_dns2_x=149.112.112.112

wan_dnsenable_x=0
 
wan0_dns=212.23.3.100 212.23.6.100
wan0_dns1_x=9.9.9.9
wan0_dns2_x=149.112.112.112
wan0_dnsenable_x=0
wan1_dns=
wan1_dns1_x=
wan1_dns2_x=
wan1_dnsenable_x=1
wan_dns=212.23.3.100 212.23.6.100
wan_dns1_x=9.9.9.9
wan_dns2_x=149.112.112.112

wan_dnsenable_x=0
The fields seem out of sync. Try switching to use the ISP DHCP DNS, save, then switch back to Quad9 and save. Then rerun the command.
 
The fields seem out of sync. Try switching to use the ISP DHCP DNS, save, then switch back to Quad9 and save. Then rerun the command.

Hi Dave - I seem to remember doing that yesterday but will try it again now and post back the results in a few minutes.
 
The fields seem out of sync. Try switching to use the ISP DHCP DNS, save, then switch back to Quad9 and save. Then rerun the command.

After switching to ISP DNS:

wan0_dns=
wan0_dns1_x=9.9.9.9
wan0_dns2_x=149.112.112.112
wan0_dnsenable_x=1
wan1_dns=
wan1_dns1_x=
wan1_dns2_x=
wan1_dnsenable_x=1
wan_dns=212.23.3.100 212.23.6.100
wan_dns1_x=9.9.9.9
wan_dns2_x=149.112.112.112
wan_dnsenable_x=1

size: 73823 bytes (57249 left)

Then switching back to Quad9:

wan0_dns=212.23.3.100 212.23.6.100
wan0_dns1_x=9.9.9.9
wan0_dns2_x=149.112.112.112
wan0_dnsenable_x=0
wan1_dns=
wan1_dns1_x=
wan1_dns2_x=
wan1_dnsenable_x=1
wan_dns=212.23.3.100 212.23.6.100
wan_dns1_x=9.9.9.9
wan_dns2_x=149.112.112.112
wan_dnsenable_x=0

size: 73919 bytes (57153 left)
 
Definitely seems odd/unpredictable, but if cat /tmp/resolv.conf contains the right servers, then it’s just a GUI bug/quirk.
 
mms-mission-characters-mobile.png
 
Can I not just update the resolv.conf file manually?
No but you could overwrite nvram entries and see if it sticks.
Code:
nvram set wan_dns="9.9.9.9 149.112.112.112"
nvram set wan0_dns="9.9.9.9 149.112.112.112"
nvram commit
Then reboot when you can.
 

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!

Staff online

Top