LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   bind or dnsmasq ? (https://www.linuxquestions.org/questions/linux-networking-3/bind-or-dnsmasq-4175448484/)

!! hack-back !! 02-03-2013 01:29 PM

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 :)

TobiSGD 02-03-2013 03:29 PM

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.

!! hack-back !! 02-03-2013 05:22 PM

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 ??

TobiSGD 02-03-2013 06:23 PM

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.

!! hack-back !! 02-03-2013 07:11 PM

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 :)

salasi 02-04-2013 05:15 AM

Quote:

Originally Posted by !! hack-back !! (Post 4883858)
...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.

!! hack-back !! 02-04-2013 06:05 AM

thank you mr salasi ,
so i will use dnsmasq its better , depending on your replay :)


All times are GMT -5. The time now is 08:48 AM.