|
Run a local DNS resolver with OpenWRTMonday, August 29. 2011Comments
Display comments as
(Linear | Threaded)
Thanks for the nice post
In DNS parlance I think this is technically a forwarder, yeah? I'm running OpenWRT snapshots from trunk... if that makes any difference.
Hi Alan,
Thanks for the comment. This differs from a forwarder in that MaraDNS will do all of the DNS lookups itself, whereas a forwarder will ask another DNS server to do the lookups on its behalf. For example, if I ask MaraDNS to lookup the address "www.linux.co.uk", it will first talk to the root nameservers and ask who runs the domain for ".uk". Then it will talk to the .uk nameservers and ask who is authoritative for ".co.uk". And then so on, until it has resolved the name completely. dnsmasq doesn't have the ability to do this itself - instead, by setting a forwarder, you're asking another DNS server to do it for you. So instead, in the article above, we're forwarding dnsmasq's requests to our own server (MaraDNS). The advantage of running your own resolver is that you no longer have to worry about whether or not your ISP (or other upstream DNS server) is trustworthy. They could easily be replacing a valid DNS entry with some false information, and you might never know. Sure, there are still other security issues inherent in DNS, but running your own resolver eliminates one potential problem. (Though, note, it also means slower lookups)
when i run the command
netstat -lutpn | egrep "maradns|zoneserver" I get this output netstat: showing only processes with your user ID netstat: /proc/net/tcp6: No such file or directory netstat: /proc/net/udp6: No such file or directory
Hi Fred,
Are you running netstat as root? It looks to me like you're running it as an unprivileged user.
Got it working there was a space in the line, after copying and pasting the code below
root_servers["."]="198.41.0.4,128.9.0.107,192.33.4.12,128.8.10.90,192.203.230.10,192.5.5.241,192.112.36.4,128.63.2.53,192.36.148.17,192.58.128.30,193.0.14.129,198.32.64.12,202.12.27.33" uploading the /etc/init.d/dnsmasq script would be a great help it's very hard to work out where that line has to be inserted, nice work this is a great feature for the router be nice if this was put as an option in the gui |
||||
Tracked: Aug 30, 10:39
Tracked: Aug 30, 15:41
Tracked: Aug 30, 21:04
Tracked: Aug 31, 01:34
Tracked: Aug 31, 01:34