2
I just flashed DD-WRT to my Linksys e4200 and I'm exceptionally pleased with it. I would like to use DNSMasq to cache DNS resolutions, forward results it does not have in its cache to Google's public DNS, and resolve local lookups. I have ensured that both of the Use DNSMasq for DHCP
and Use DNSMasq for DNS
options are checked and I have ensured a large cache-size
with cache-size=10000
.
However I need to set up forwarding to Google's public DNS and also set up local name resolution:
- To set up forwarding to Google, I can specify IP addresses in the three
Static DNS
fields in the DHCP section of the basic setup.- If I choose this process than do I need to specify my own router as the first
Static DNS
with192.168.1.1
or127.0.0.1
, or not? - If I don't have to list my own router as a
Static DNS
then what do I put in the last field? Another DNS provider like OpenDNS?
- If I choose this process than do I need to specify my own router as the first
- I think I can also specify DNS with a
server=8.8.8.8
andserver=8.8.4.4
option in theAdditional DNSMasq Options
box in theServices
tab.- Again do I have to specify my own router first as a server in order for it to use the local cache with
server=192.168.1.1
orserver=127.0.0.1
?
- Again do I have to specify my own router first as a server in order for it to use the local cache with
Does it matter which of these methods I use?
Now concerning host names and local DNS. I am having issues getting names to resolve to local IP addresses. I have seen really simple tutorials instructing that all one has to do is to enable local resolution with the Use DNSMasq for DNS
option, and then specify names/IP addresses in the /etc/hosts/
file or by adding lines in the address=/hostname/192.168.1.150
format to the configuration options box in the Services
tab. Apparently the Local DNS
option in the DNSMasq options
section in the Services
tab actually does not have anything to do with DNSMasq, at least according to this post. Does it matter if I either specify IP to host name mappings in the /etc/hosts
file or with the address=/hostname/192.168.1.150
option in the Additional DNSMasq Options box? I cannot at this point get even the two entries already present in the host file to resolve let alone any other's I specify in the options box. This tutorial makes it sound very easy, should it work just like that? Is there something I am missing?
Thanks so much for your assistance! Please let me know if there is more information that you need!