Buffalo Forums

Products => Wireless => Topic started by: Amerigo on July 16, 2018, 03:19:33 PM

Title: force devices to use the router DNS setting
Post by: Amerigo on July 16, 2018, 03:19:33 PM
I have a WZR-HP-G300NH. Is it possible to prevent devices from overriding the router DNS setting? In the devices there is DNS setting that can be used instead of the one setup on the router configuration page. I have my router DNS set to OpenDNS, but it seems this setting can be bypassed. How can I force the devices to use the router DNS setting?

Thanks
Title: Re: force devices to use the router DNS setting
Post by: davo on July 17, 2018, 06:59:58 AM
If you use the DDWRT firmware then this is possible.

Go to Administration tab ยป Commands sub tab
In the Commands text box, enter:

iptables -t nat -A PREROUTING -i br0 -p udp --dport 53 -j DNAT --to $(nvram get lan_ipaddr)
iptables -t nat -A PREROUTING -i br0 -p tcp --dport 53 -j DNAT --to $(nvram get lan_ipaddr)

Click Save Firewall (note: your WAN interface will be restarted)
Browser ID: smf (is_webkit)
Templates: 1: Printpage (default).
Sub templates: 4: init, print_above, main, print_below.
Language files: 1: index+Modifications.english (default).
Style sheets: 0: .
Hooks called: 54 (show)
Files included: 27 - 1055KB. (show)
Memory used: 719KB.
Tokens: post-login.
Queries used: 14.

[Show Queries]