DNSMasq using alternative DNS-Servers

From DD-WRT Wiki

Revision as of 09:51, 24 April 2009 by Harry6464 (Talk | contribs)
Jump to: navigation, search

DNSMasq using 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.)

  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 in German language).

After that step you just have to restart your router.