News:

Buffalo provides Data Recovery services. Read about it here.

Main Menu

force devices to use the router DNS setting

Started by Amerigo, July 16, 2018, 03:19:33 PM

Previous topic - Next topic

Amerigo

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

davo

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)
PM me for TFTP / Boot Images / Recovery files  LSRecovery.exe file.
Having network issues? Drop me an email: info@interwebsireland.com and we will get it fixed!

Have i helped you? Buy me a coffee as a thanks!
https://buymeacoffee.com/buffalodavo

Browser ID: smf (is_webkit)
Templates: 4: index (default), Display (default), GenericControls (default), GenericControls (default).
Sub templates: 6: init, html_above, body_above, main, body_below, html_below.
Language files: 5: index+Modifications.english (default), Post.english (default), Editor.english (default), Drafts.english (default), StopForumSpam.english (default).
Style sheets: 4: index.css, attachments.css, jquery.sceditor.css, responsive.css.
Hooks called: 144 (show)
Files included: 35 - 1354KB. (show)
Memory used: 956KB.
Tokens: post-login.
Queries used: 19.

[Show Queries]