Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a Raspberry Pi, and I'd like to use it as a DNS server on my LAN.

I'd like it to work like the following:

The Raspberry Pi is a DNS server, but not a fancy one. When it receives a request, if it doesn't have the result cached, it looks it up from another DNS server, and caches it for future.

I've looked at a few solutions, but they're all fiendishly complex, as if I'm setting up some kind of uber DNS solution for an enterprise.

All I want is to speed up repeated DNS requests to make web browsing faster.

Oh, OS is Debian Squeeze.

share|improve this question
    
Don't standard routers cache DNS lookups? At the very least, custom router firmware should do it... and should be more efficient than running an extra device. –  Bob May 29 '12 at 11:54
    
Hey, how's the performance with that setup? I wanted to run my DNS & DHCP servers on a Raspberri Pi to replace a Mini-ITX machine. –  gparent Jul 18 '12 at 17:31
add comment

2 Answers

Bind 9 caching only nameserver: http://www.bind9.net/manual/bind/9.3.2/Bv9ARM.ch03.html

Note that this won't necessarily make browsing faster, because your browser usually already caches DNS lookups.

share|improve this answer
add comment

Two simple solutions:

1) Run DJB's dnscache - it does exactly what you want, and nothing more, and once you get your head around configuring it, it's light and unobtrusive.

2) Run dnsmasq. It's a more full-featured DNS/DHCP server that can be configured quite easily to do what you want (it's what I use on my home LAN)

share|improve this answer
    
FYI, dnscache does not support DNSSEC. Unbound would be a better choice. –  Mark Johnson Dec 10 '12 at 0:11
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.