User Tools

Site Tools


doc:howto:dhcp.dnsmasq
This wiki is read only and for archival purposes only. >>>>>>>>>> Please use the new OpenWrt wiki at https://openwrt.org/ <<<<<<<<<<

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
doc:howto:dhcp.dnsmasq [2017/11/04 14:52]
EleanorEllis OpenDNS servers are 208.67.*, not 202.67.*
doc:howto:dhcp.dnsmasq [2017/11/20 18:10] (current)
loganaden Add quad9 as an option for public DNS servers
Line 109: Line 109:
  
 ==== Configuring dnsmasq to forward dns requests to public dns servers ==== ==== Configuring dnsmasq to forward dns requests to public dns servers ====
-If you want to use public dns servers((such as [[https://​developers.google.com/​speed/​public-dns/​docs/​using|Google Public DNS]] and [[https://​www.opendns.com|OpenDNS]])) to resolve public dns queries, you can configure dnsmasq for it. You can even specify more than three nameservers((currently,​ linux /​etc/​resolv.conf file is limited to three nameservers,​ [[http://​manpages.ubuntu.com/​manpages/​trusty/​man5/​resolver.5.html|see resolv.conf(5) manpage]])).+If you want to use public dns servers((such as [[https://​developers.google.com/​speed/​public-dns/​docs/​using|Google Public DNS]] and [[https://​www.opendns.com|OpenDNS]] and [[https://​quad9.net/#/​about|Quad9]])) to resolve public dns queries, you can configure dnsmasq for it. You can even specify more than three nameservers((currently,​ linux /​etc/​resolv.conf file is limited to three nameservers,​ [[http://​manpages.ubuntu.com/​manpages/​trusty/​man5/​resolver.5.html|see resolv.conf(5) manpage]])).
  
 Just add the following lines to /​etc/​dnsmasq.conf to use Google Public DNS. Just add the following lines to /​etc/​dnsmasq.conf to use Google Public DNS.
Line 148: Line 148:
 uci add_list dhcp.@dnsmasq[-1].server=208.67.222.220 uci add_list dhcp.@dnsmasq[-1].server=208.67.222.220
 uci add_list dhcp.@dnsmasq[-1].server=208.67.220.222 uci add_list dhcp.@dnsmasq[-1].server=208.67.220.222
 +uci commit dhcp
 +</​code>​
 +
 +In case you want to use Quad9 (there are 2 public dns servers)
 +<​code>​
 +uci add_list dhcp.@dnsmasq[-1].server=9.9.9.9
 +uci add_list dhcp.@dnsmasq[-1].server=149.112.112.112
 uci commit dhcp uci commit dhcp
 </​code>​ </​code>​
doc/howto/dhcp.dnsmasq.txt · Last modified: 2017/11/20 18:10 by loganaden