Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Local DNS cache, best option
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
ksool
Guru
Guru


Joined: 27 May 2006
Posts: 337
Location: Cambridge, MA

PostPosted: Sun Apr 29, 2007 3:41 pm    Post subject: Local DNS cache, best option Reply with quote

I'd like to set up a local dns cache. I had hoped there would be some option in the kernel/network stack somewhere to achieve this easily, but that doesn't seem to be the case. After that, it looks like I'd have to setup djbdns and have it run as a local cache, which seems like a decent solution. Anybody know if this is the best solution?

Thanks.
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Sun Apr 29, 2007 5:45 pm    Post subject: Reply with quote

Why not just run bind.
Back to top
View user's profile Send private message
ksool
Guru
Guru


Joined: 27 May 2006
Posts: 337
Location: Cambridge, MA

PostPosted: Sun Apr 29, 2007 6:45 pm    Post subject: Reply with quote

I had though (hoped) djbdns would be a little lighter and much easier to setup. I have one server running bind for a local network, but my main concern is just trying to have the smallest impact possible on my workstation.
Back to top
View user's profile Send private message
think4urs11
Bodhisattva
Bodhisattva


Joined: 25 Jun 2003
Posts: 6659
Location: above the cloud

PostPosted: Sun Apr 29, 2007 7:00 pm    Post subject: Reply with quote

you can use dnsmasq alternatively
_________________
Nothing is secure / Security is always a trade-off with usability / Do not assume anything / Trust no-one, nothing / Paranoia is your friend / Think for yourself
Back to top
View user's profile Send private message
ksool
Guru
Guru


Joined: 27 May 2006
Posts: 337
Location: Cambridge, MA

PostPosted: Sun Apr 29, 2007 7:28 pm    Post subject: Reply with quote

I would assume I could use any dns server for this purpose (just make sure it only accepts local inbound connections) but is there anyone that is best suited for this (being a local cache on a workstation rather than an external cache on a server)? It isn't seeming like it so I may flip a coin to choose between dnsmasq, djbdns and bind.
Back to top
View user's profile Send private message
think4urs11
Bodhisattva
Bodhisattva


Joined: 25 Jun 2003
Posts: 6659
Location: above the cloud

PostPosted: Sun Apr 29, 2007 7:29 pm    Post subject: Reply with quote

dnsmasq is very light on ressources, bind needs much more in comparison, not sure about djbdns though
_________________
Nothing is secure / Security is always a trade-off with usability / Do not assume anything / Trust no-one, nothing / Paranoia is your friend / Think for yourself
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Sun Apr 29, 2007 7:37 pm    Post subject: Reply with quote

dnsmasq still has the problem that we rely on someone else's DNS server, which probably plays it own games with caching, and is (like mine) slow & unreliable.

I don't have any problems with bind (in the configurations in the thread I linked to), so I recommend it always.

(Dunno about djbdns.)
Back to top
View user's profile Send private message
ksool
Guru
Guru


Joined: 27 May 2006
Posts: 337
Location: Cambridge, MA

PostPosted: Sun Apr 29, 2007 8:11 pm    Post subject: Reply with quote

Thanks guys. It sounds like I'll go with dnsmasq. I think any solution would require another DNS server just because I'm only really trying to prevent repeated DNS calls, so that even if a DNS server is slow, I only have to call it once.

I wonder if this will be friendly with DHCP/changing name servers when moving across networks. I know bind, for example, fails to startup if it can't contact its reference name servers.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum