Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

BIND vs DJBDNS

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
26 posts
  • 1
  • 2
  • Next
Author
Message
Yamakasi
Apprentice
Apprentice
Posts: 201
Joined: Sat Sep 28, 2002 1:51 pm

BIND vs DJBDNS

  • Quote

Post by Yamakasi » Thu May 08, 2003 2:36 am

hello ppl,

What do u guy prefer between those 2 dns servers.
I usually use Bind, but since it has a lot of security hole issues, Im searching for something else.
I heard about Djbdns.

Can u guy give their experiences?
Im looking for for EXTREM SECURITY and EXTREM PERFORMANCES

Thx
Top
vericgar
Retired Dev
Retired Dev
User avatar
Posts: 79
Joined: Fri Dec 13, 2002 8:33 am
Location: Spokane, WA
Contact:
Contact vericgar
Website

  • Quote

Post by vericgar » Thu May 08, 2003 2:44 am

I was using BIND, then it just got to be too much of a hassle with the DNS hosting I was doing (30+ domains) and it was easier to automate it using djbdns. It just depends what your needs are. If you have many many domains that the only difference between thier zones will be the name, then djbdns makes it easy to automate things. If you only have 2-3 domains that are complex and quite different then bind may be the easier way to go as it's method of zonefiles is much more verbose. If you want to see a comparison of configs between the two, then I can e-mail them or something.

As far as security, djbdns has this: http://cr.yp.to/djbdns/guarantee.html

As for performance, I didn't notice much of a difference between the two, but I didn't have much of a load.
+~+ Sometimes a good ole loving kick is all it needs +~+
Top
Ethereal
n00b
n00b
Posts: 38
Joined: Wed Mar 19, 2003 11:13 am
Location: Russia, Moscow

  • Quote

Post by Ethereal » Thu May 08, 2003 6:23 am

djbdns is much better than BIND. Look at their size, speed, stability etc. Difference is like between sendmail and qmail. I dont want to prove it , its clear.
Top
Qubax
Guru
Guru
User avatar
Posts: 451
Joined: Fri Jul 19, 2002 9:41 pm
Location: Tirol, Austria

  • Quote

Post by Qubax » Thu May 08, 2003 11:05 am

i don't know much about bind and djbdns, but at the end i was able to get bind running and working, a thing i wasn't able to get with djbdns
but after reading this i think i'll give djbdns a second try
Top
dma
Guru
Guru
Posts: 437
Joined: Fri Jan 31, 2003 9:13 pm
Location: Charlotte, NC, USA
Contact:
Contact dma
Website

  • Quote

Post by dma » Thu May 08, 2003 4:30 pm

I'm thinking about installing djbdns but the ebuild for it is beyond wacky....

I recommend installing it manually for now I think.

BTW... I think bind and sendmail were made by the same group (Berkeley)... coincidence? :-)
Top
Xor
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 144
Joined: Sun Jul 07, 2002 11:05 am

  • Quote

Post by Xor » Thu May 08, 2003 7:55 pm

well, it's true... bind has sometimes it's flaws.... but for that you can chroot it, so it won't do harm to the system... hopefully - anyway... it's not a good sign....

I can't talk much about djdns, just that I saw that it violates an RFC - and the matter it it is made buy the same guy who made this piece called qmail didn't do any good.

so to say: I stay with postfix + bind... both chrooted, I don't have performance comparisons at hand - nor would I want to say that a bind response is faster as a djdns response... but at least I get a response....
Top
Vancouverite
Apprentice
Apprentice
User avatar
Posts: 162
Joined: Sat Sep 28, 2002 4:57 am
Location: Vancouver, Canada

  • Quote

Post by Vancouverite » Thu May 08, 2003 10:07 pm

Although djbdns is not completely RFC compliant I have never had a problem with it in a production environment. Bind is a patch whore that requires a chroot jail to keep anyone from rooting the box or it can be exploited to run privledged code. Djbdns uses two programs; dnscache is a resolving caching proxy and tinydns is the authority server. It is managed using the daemontools package. Since security concerns you I'd go with djbdns. Sendmail is another dog. I like qmail or postfix much better.
Screenshot
Top
relyt
Apprentice
Apprentice
Posts: 238
Joined: Thu Aug 29, 2002 10:11 pm
Location: Massachusetts

  • Quote

Post by relyt » Fri May 09, 2003 3:36 am

Which would you guys run just as a caching name-server, only accessed by localhost?
Top
Vancouverite
Apprentice
Apprentice
User avatar
Posts: 162
Joined: Sat Sep 28, 2002 4:57 am
Location: Vancouver, Canada

  • Quote

Post by Vancouverite » Fri May 09, 2003 9:24 am

relyt wrote:Which would you guys run just as a caching name-server, only accessed by localhost?
I was running dnscache on localhost until I got a d-link nat router to share my broadband and it didn't work very well. It's a nice tweak to speed up name resolving. I also run squid on localhost point my browsers at it and set their cache size to zero. Naturally I would rather use a PC for a firewall and run this stuff on it but I couldn't spare a box for it and got the router for free.
Screenshot
Top
puke
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 128
Joined: Sat Oct 05, 2002 2:54 pm

  • Quote

Post by puke » Fri May 09, 2003 9:46 am

If you are concerned about performance, you will not want to run BIND. BIND is a resource hog.

If you are concerned about security, you will not want to run BIND. BIND is poorly written.

In fact, as we are in the security forum, we shouldn't be talking about BIND. :lol:

djbdns is small ("tinydns") and once you get your head around the simplicity of configuration (heh) you'll never look back.

I know ISPs that use it; I know home users that use it. No complaints. Just my 0.02.
Top
kashani
Advocate
Advocate
User avatar
Posts: 2030
Joined: Mon Sep 02, 2002 6:38 am
Location: San Francisco
Contact:
Contact kashani
Website

let's hear it for lamarkism!

  • Quote

Post by kashani » Fri May 09, 2003 9:44 pm

Nice the see the science of hearsay is alive and kicking these days.

Around a year and some change ago the engineering department I was part of decided to find out which DNS server is actually the fastest for lookups.

The test machines
Sun 420, 4GB ram, 4 Proc, Solaris 7
Dell, 2GB ram, 2 Proc, Linux 2.4 Red Hat somthing

The setup
Mail system of 20 servers generates 800-1600 lookups/sec
DNS servers on the local network
All DNS logging is turned off for all servers

The servers
djbdns
Bind 8.x
Bind 9.x

The tests
Use each platform with each DNS server for day. Compare numbers assuming nothing breaks.

The conclusion
If you really want to see more than 1000/sec lookups go with Bind 8.x. If you're fine with tapping out at 700-900/s djbdns or Bind 9.x are about the same.

You could probably get more perfomance out of all of the servers by doing some serious tuning to the OS, ie tweaking udp buffers and other wacky things, but for our tests we figured standard installs would be the most level playing field.

Security is another story and there have been some serious holes in Bind. Very few of those were cause for alarm if you tightly controlled zone trransfers. That may or may not help you in your decicison based on what kind of system you're building.
Will personally fix your server in exchange for motorcycle related shop tools in good shape.
Top
Vancouverite
Apprentice
Apprentice
User avatar
Posts: 162
Joined: Sat Sep 28, 2002 4:57 am
Location: Vancouver, Canada

Re: let's hear it for lamarkism!

  • Quote

Post by Vancouverite » Fri May 09, 2003 9:59 pm

kashani wrote:The conclusion
If you really want to see more than 1000/sec lookups go with Bind 8.x. If you're fine with tapping out at 700-900/s djbdns or Bind 9.x are about the same.
Interesting. How high did Bind 8.x max out at?
Screenshot
Top
upnix
n00b
n00b
User avatar
Posts: 63
Joined: Thu Jan 02, 2003 7:37 pm
Location: Canada
Contact:
Contact upnix
Website

  • Quote

Post by upnix » Sat May 10, 2003 5:02 am

puke wrote:I know ISPs that use it; I know home users that use it. No complaints. Just my 0.02.
Funny, I know root servers that run BIND. If I'm not mistaken, they do at least a couple of queries a day.
Top
puke
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 128
Joined: Sat Oct 05, 2002 2:54 pm

  • Quote

Post by puke » Mon May 12, 2003 10:42 pm

Funny, I know root servers that run BIND. If I'm not mistaken, they do at least a couple of queries a day.
Funny, I wasn't saying that BIND doesn't serve queries. :roll:

The poster was probably asking the question in relation to usage on a Gentoo box, not virtual server farms serving hundreds of millions of hits a day. I'm saying that on a Gentoo system with limited resources, I'd have a more stable and secure Gentoo box using djbdns. Your mileage may vary etc.
Top
adammorley
n00b
n00b
Posts: 55
Joined: Sun Sep 29, 2002 6:52 pm

  • Quote

Post by adammorley » Fri Jun 20, 2003 5:33 am

1st: dnscache and tinydns chroot by default. read the code.

2nd: comparison testing dnscache & bind is non-trivial. dnscache will beat bind if you tweak it right. ie: you'll need a few specific patches, browse the mailing list archives for djbdns, and you might want to look into disabling logging, which can be resource intensive.

3rd: i use djbdns to run a production network, a /24 through a t1. not very large, but its infinitely easier to maintain than a comparable bind setup with zone files. ++ this is on solaris, so we're talking I could've just clikced a few buttons and used bind, but i chose not to. in the end, pick the one you think is less crappy.
Top
JoeCotellese
n00b
n00b
Posts: 27
Joined: Fri Jun 20, 2003 12:11 pm
Location: Bucks County, PA
Contact:
Contact JoeCotellese
Website

If you want to understand DNS use DJBDNS

  • Quote

Post by JoeCotellese » Fri Jun 20, 2003 12:32 pm

I maintain the servers at my office. About a year and a half ago I decided to update our servers to from BSD which no one here knew to Linux. We needed a DNS server so we chose BIND. Never having setup a DNS server before it took me about a week to understand the BIND syntax and get a properly configured DNS. Once it worked everything was fine, however on a couple of occasions we had problems that required me to mess with the BIND config files. That didn't go so well and caused problems that last for a day or two. After that experience I thought that DNS was just too difficult to understand.

I'm the type of personality that likes to understand how something works. That way if it breaks I can fix it. I recently decided to update our system and began to look for other DNS servers. My search led me to djbdns. I did some reading, installed it as a dnscache on our internal network. Everything worked great. I began to understand how DNS worked. After a week of a working cache server I decided to disconnect BIND completely and use djbdns as my domain server as well. Read a couple of well written articles and had things setup within a day.

Aside from the security guarentee I would have to say that the extremely simple syntax of the configuration files is the thing I like most about this server. It allows you to concentrate on understanding the concepts of DNS without also trying to learn unintuitive software package.
Top
Koon
Retired Dev
Retired Dev
User avatar
Posts: 518
Joined: Tue Dec 10, 2002 9:33 am

  • Quote

Post by Koon » Fri Jun 20, 2003 1:32 pm

Drawback for BIND is the same as sendmail : security holes will always be found in it, so you have to stay alert and patch quickly. Use something else if maximum security is your goal

Drawback for djbdns is D.J.Bernstein really personal interpretation of the RFC... Use something else if maximum compliance is your goal (that's why some root servers use BIND).

-K
Top
FTC
n00b
n00b
User avatar
Posts: 28
Joined: Sun Feb 16, 2003 8:58 pm
Location: London, UK

  • Quote

Post by FTC » Fri Jun 20, 2003 2:02 pm

Hi,

I don't know about performance. I run a small hosting shop so, I don't have high traffic.

Regarding security, DJB is really paranoid about it. IIRC he even offers money to anyone that submits an exploitable bug in djbdns (noone claimed the prize yet).

I'm using a mix of bind8/9 for LAN servers but I'm using djbdns for my hosting DNSs.

BTW, check out DNSadmin from Inter7. It let's you admin both djbdns and bind using a database (great if you want to try both bind and djbdns).

Just my $0.02.
Last edited by FTC on Tue Oct 21, 2003 9:51 pm, edited 1 time in total.
Athlon64 3200+ | MSI K8Neo2 Deluxe | XFX GF6800GT | 1GB DDR400 (dual channel) | Sound Blaster Audigy 2
2x Xeon 2.4GHz | Intel SE7505VB2 | XFX FX5700LE | 1.5GB DDR266 Reg ECC | 2x 80GB SATA (RAID0) | Adaptec 2610SA | 5x 200GB SATA
Top
Slynix
n00b
n00b
User avatar
Posts: 67
Joined: Sun May 11, 2003 5:44 am
Contact:
Contact Slynix
Website

  • Quote

Post by Slynix » Sun Jun 22, 2003 7:15 pm

I use bind and it works ok so far, no problems at all. Ill keep it running until/if something goes wrong so I get proved that bind isnt the "right stuff"
a big bear hug
Top
awev
n00b
n00b
Posts: 1
Joined: Tue Oct 21, 2003 8:27 pm
Location: Charlottesville, VA US

  • Quote

Post by awev » Tue Oct 21, 2003 9:29 pm

A late reply, but still worth a momment.
Consider dnsmasq, from http://thekelleys.org.uk It is included with a good number of firewall/proxy/gateway packages.
Mike (a.k.a. AWEV)
Top
sig
n00b
n00b
Posts: 13
Joined: Wed Oct 01, 2003 2:30 pm

Other DNS server daemons

  • Quote

Post by sig » Wed Oct 22, 2003 4:03 am

Hi.

I was just wondering has anyone tried out any other DNS servers than just Bind or djbdns? I mean in production environment.

One I've found is PowerDNS http://www.powerdns.com/products/powerdns/index.php. Though I haven't ran it in a production environment.

Are other experiences?
Top
UberLord
Retired Dev
Retired Dev
User avatar
Posts: 6838
Joined: Thu Sep 18, 2003 10:26 am
Location: Blighty
Contact:
Contact UberLord
Website

  • Quote

Post by UberLord » Wed Oct 22, 2003 9:11 am

I'm currently running PowerDNS for my LAN's DNS.
I like as it supports BIND config files or you can store stuff in mysql databases. The only gripe I have is the ebuild for it is a little behind the latest stable version.
Top
mmealman
Guru
Guru
Posts: 348
Joined: Sat Nov 02, 2002 4:42 pm
Location: Florida

  • Quote

Post by mmealman » Wed Oct 22, 2003 4:13 pm

The security "issues" with BIND are a little overstated in this thread. BIND8 was a security nightmare which is why BIND9 was a total re-write.

Considering 90% of the internet runs off of BIND, if it was truly as insecure as some of the people in this thread make it out to be the internet would've ground to a halt a long time ago.
Top
bone
Apprentice
Apprentice
User avatar
Posts: 255
Joined: Fri Jun 07, 2002 4:00 pm
Location: Midwest, USA

  • Quote

Post by bone » Tue Apr 06, 2004 2:39 am

I would like some input on PowerDNS. I hear this more and more every week, and am wondering how it compares to BIND.

Anyone, Anywhere?
Top
UberLord
Retired Dev
Retired Dev
User avatar
Posts: 6838
Joined: Thu Sep 18, 2003 10:26 am
Location: Blighty
Contact:
Contact UberLord
Website

  • Quote

Post by UberLord » Tue Apr 06, 2004 7:57 am

I gave up with both BIND (hard to configure) and PowerDNS (no DHCP integration). I also ditched ISC's DHCP server as well.

I replaced the lot with dnsmasq! A very small and lightweight DNS and DHCP server. Easy to configure and perfect for my needs of a small LAN. It's not a "real" DNS server as such - as it needs a real DNS server for internet lookups.

But it provides everything for LAN needs :)
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Top
Post Reply

26 posts
  • 1
  • 2
  • Next

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic