LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
 
Search this Thread
Old 02-03-2013, 01:29 PM   #1
!! hack-back !!
Member
 
Registered: Nov 2009
Posts: 182

Rep: Reputation: 2
bind or dnsmasq ?


hello minds,
i have debian server used as cached web server with squid
what i want to do is cache name servers
but i dont know what i must use is dnsmasq best choise or bind9 ?
thank you
 
Old 02-03-2013, 03:29 PM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Whatever fits the task best
Posts: 16,151
Blog Entries: 2

Rep: Reputation: 4389Reputation: 4389Reputation: 4389Reputation: 4389Reputation: 4389Reputation: 4389Reputation: 4389Reputation: 4389Reputation: 4389Reputation: 4389Reputation: 4389
I do the same and use dnsmasq for that purpose, it is easy to setup and works fine. Keep in mind that the DNS server will loose the cached information if you restart the service if you use dnsmasq, so dnsmasq will only be of use for this purpose if the server is running 24/7.
 
Old 02-03-2013, 05:22 PM   #3
!! hack-back !!
Member
 
Registered: Nov 2009
Posts: 182

Original Poster
Rep: Reputation: 2
and bind will have the cache of server names ?
if yes so it is more suitable so how i can install it for caching name servers only ??
 
Old 02-03-2013, 06:23 PM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Whatever fits the task best
Posts: 16,151
Blog Entries: 2

Rep: Reputation: 4389Reputation: 4389Reputation: 4389Reputation: 4389Reputation: 4389Reputation: 4389Reputation: 4389Reputation: 4389Reputation: 4389Reputation: 4389Reputation: 4389
You may have misunderstood me or I misunderstood you, dnsmasq will have a cache of server names, it is just not persistent, so if you restart the service or machine it will get lost.

I have no experiences with bind, so I can't help you with that.
 
Old 02-03-2013, 07:11 PM   #5
!! hack-back !!
Member
 
Registered: Nov 2009
Posts: 182

Original Poster
Rep: Reputation: 2
okay thak you man , what i asked : if i also lost data when i reboot machine with bind but u said that you dont know about that so thank you very much brother
 
Old 02-04-2013, 05:15 AM   #6
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 3,953

Rep: Reputation: 807Reputation: 807Reputation: 807Reputation: 807Reputation: 807Reputation: 807Reputation: 807
Quote:
Originally Posted by !! hack-back !! View Post
...what i asked : if i also lost data when i reboot machine with bind
Yes, you will lose the data with Bind when you reboot the machine. But you need to be aware that, in most cases, it will be stale data that you lose, and therefore of little concern to you.

Note also that Bind is a kind of 'Swiss army knife' of an application, with more options and configuration modes than you can shake a stick at and that's fine if you want to take advantage of them, but a pain if you just want to get something up and running that does the job (depending a bit on distro and whether they 'pre-configure' sensibly and have a config tool, etc, etc).

Also, be aware that Bind does not exactly have the most glorious history of bug-free-ness and a minimal requirement is that your security or admin team (!) keeps on top of updates on a very regular basis. And finally, be aware that in the caching scenario there are at the very least some workloads and use cases in which something like Dnsmasq has a lower footprint and is faster, due to the algorithm it uses.
 
Old 02-04-2013, 06:05 AM   #7
!! hack-back !!
Member
 
Registered: Nov 2009
Posts: 182

Original Poster
Rep: Reputation: 2
thank you mr salasi ,
so i will use dnsmasq its better , depending on your replay
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] BIND 9.7: does it optimise amongst forwarders like dnsmasq? catkin Linux - Server 1 12-15-2011 04:27 AM
dnsmasq: failed to bind DHCP server socket: Address already in use taske Linux - Networking 2 11-08-2009 05:40 PM
dnsmasq as a replacement for BIND alex23 Linux - Networking 1 04-23-2009 01:51 PM
Getting BIND to mimic dnsmasq Yalla-One Linux - Networking 4 03-29-2008 08:47 AM


All times are GMT -5. The time now is 03:40 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration