DNSMasq using alternative DNS-Servers

From DD-WRT Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 09:51, 24 April 2009 (edit)
Harry6464 (Talk | contribs)
(DNSMasq using alternative DNS-Servers)
← Previous diff
Current revision (18:30, 18 March 2018) (edit) (undo)
Ian5142 (Talk | contribs)
(Added Header.)
 
(4 intermediate revisions not shown.)
Line 1: Line 1:
-== DNSMasq using alternative DNS-Servers ==+==Alternative DNS Servers==
You want to use an alternative DNS-Servers with DNSMasq and not the DNS-Servers assigned to your router from your provider? (And you also don't want to change your DHCP-Settings in your router to push the alternative DNS-Servers to your clients because you also use many static IP-addresses.) You want to use an alternative DNS-Servers with DNSMasq and not the DNS-Servers assigned to your router from your provider? (And you also don't want to change your DHCP-Settings in your router to push the alternative DNS-Servers to your clients because you also use many static IP-addresses.)
 +
 +Precondition: Every computer in your network use your router as DNS-Server. (Computer who do not use your router as DNS-Server will not be affected by this change.)
 +
 +There can be many purposes why you want to use other DNS-Server (and not the DNS-Servers of your provider)
 +* You provider hijacks every DNS-request which can not be resolved and redirects it directly to his own search page on his web servers (e.g. the German provider T-Online)
 +* other reasons...
 +
# Go to the '''Commands''' tab under '''Administration'''. # Go to the '''Commands''' tab under '''Administration'''.
Line 12: Line 19:
And of course you can replace the listed DNS-Servers by your own desired servers. And of course you can replace the listed DNS-Servers by your own desired servers.
-If necessary, you can find a few open DNS-Servers at [http://www.ccc.de/censorship/dns-howto/#how-tos] (Sorry - but it is only in German language).+If necessary, you can find a few open DNS-Servers at [http://www.ccc.de/censorship/dns-howto/#how-tos] (Sorry - but it is only available in German language).
 + 
 +After that step you just have to restart your router (or even a re-connect to your internet provider is enough).
-After that step you just have to restart your router.+[[Category:DNS]]

Current revision

[edit] Alternative DNS Servers

You want to use an alternative DNS-Servers with DNSMasq and not the DNS-Servers assigned to your router from your provider? (And you also don't want to change your DHCP-Settings in your router to push the alternative DNS-Servers to your clients because you also use many static IP-addresses.)

Precondition: Every computer in your network use your router as DNS-Server. (Computer who do not use your router as DNS-Server will not be affected by this change.)

There can be many purposes why you want to use other DNS-Server (and not the DNS-Servers of your provider)

  • You provider hijacks every DNS-request which can not be resolved and redirects it directly to his own search page on his web servers (e.g. the German provider T-Online)
  • other reasons...


  1. Go to the Commands tab under Administration.
  2. In the Commands box paste the following:
   echo "nameserver 213.73.91.35
   nameserver 85.214.73.63" > /tmp/resolv.dnsmasq
   sleep 1
   killall -HUP dnsmasq
  1. Click Save Firewall (note: your WAN interface will be restarted)

And of course you can replace the listed DNS-Servers by your own desired servers. If necessary, you can find a few open DNS-Servers at [1] (Sorry - but it is only available in German language).

After that step you just have to restart your router (or even a re-connect to your internet provider is enough).