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!

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.

Just tried this. And sadly no difference.
 
That‘s nuts. How about:
Code:
nvram show | grep -F "212.23.3"
nvram show | grep -E "^wan.*dns"

nvram show | grep -F "212.23.3"
wan0_dns=212.23.3.100 212.23.6.100
size: 73921 bytes (57151 left)



nvram show | grep -E "^wan.*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
wan0_xdns=9.9.9.9 149.112.112.112
wan1_dns=
wan1_dns1_x=
wan1_dns2_x=
size: 73921 bytes (57151 left)
wan1_dnsenable_x=1
wan_dns=9.9.9.9 149.112.112.112
wan_dns1_x=9.9.9.9
wan_dns2_x=149.112.112.112
wan_dnsenable_x=0
 
Agreed. It can wait til the weekend :)
Try one more thing.
Code:
nvram set wan1_dnsenable_x=0
nvram commit
nvram show | grep -E "^wan.*primary"
Then reboot. A DHCP renew should not be overwriting your DNS settings.
 
wan0_xdns shouldn't exist AFAIK. It could be an nvram caching issue so try doing an nvram commit and running the command again. If it's still there try this:
Code:
nvram unset wan0_xdns
nvram commit
That said, it shouldn't really make any difference but it might be indicative of the actual problem.
 
wan0_xdns shouldn't exist AFAIK. It could be an nvram caching issue so try doing an nvram commit and running the command again. If it's still there try this:
Code:
nvram unset wan0_xdns
nvram commit
That said, it shouldn't really make any difference but it might be indicative of the actual problem.
I think you can still have xdns with pppoe, pptp, or l2tp connections.

Do you use either of those Gary?
 
Code:
nvram show | grep -E "^wan.*(dns|primary|ifname)"
Please and thank you.

nvram show | grep -E "^wan.*(dns
|primary|ifname)"
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
wan0_gw_ifname=ppp0
wan0_ifname=vlan911
size: 73938 bytes (57134 left)
wan0_pppoe_ifname=ppp0
wan0_primary=1
wan0_xdns=9.9.9.9 149.112.112.112
wan1_dns=
wan1_dns1_x=
wan1_dns2_x=
wan1_dnsenable_x=1
wan1_ifname=
wan1_pppoe_ifname=
wan1_primary=0
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
wan_ifname=eth0
wan_ifnames=vlan911
 
nvram show | grep -E "^wan.*(dns
|primary|ifname)"
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
wan0_gw_ifname=ppp0
wan0_ifname=vlan911
size: 73938 bytes (57134 left)
wan0_pppoe_ifname=ppp0
wan0_primary=1
wan0_xdns=9.9.9.9 149.112.112.112
wan1_dns=
wan1_dns1_x=
wan1_dns2_x=
wan1_dnsenable_x=1
wan1_ifname=
wan1_pppoe_ifname=
wan1_primary=0
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
wan_ifname=eth0
wan_ifnames=vlan911
I’m ready to say it’s a flaw or feature of ppp.c. It unconditionally sets the dns value even if you want to specify your own. I’m not certain the code I link here gets called in your situation, but it seems to match what you’re showing.

 
I’m ready to say it’s a flaw or feature of ppp.c. It unconditionally sets the dns value even if you want to specify your own. I’m not certain the code I link here gets called in your situation, but it seems to match what you’re showing.


OK.

So where from here?

Run some more commands? Factory reset? Or just accept that’s the way it works?
 
OK.

So where from here?

Run some more commands? Factory reset? Or just accept that’s the way it works?
As time allows:
  1. Reset to factory defaults and try again.
  2. Install stock and reset to defaults and try again.
  3. If 2, then report to Asus via Feedback form.
 

Latest threads

Sign Up For SNBForums Daily Digest

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