DNS behind L4
July 23, 2006 10:33 PM
Subscribe
Authoritive DNS behind L4?
It has been quite a while since I looked at DNS, and I don't recall any particularly difficult parts, but my Manager asked some questions I need to answer with authority.
Assume we host a bunch of authoritive-only DNS servers, say 4. Customer queries, and cache/recursive lookups are done on a different system, and different servers.
It was suggested previously that we could start with a system with an L4 on top, with the external IP. Then have 4 DNS servers on the inside. The content will be identical on all servers in the cluster, running bind. Probably bind with DLZ.
Now there should be no zone transfers required in this setup.
However, if queries are over 512 bytes, the queryers (should) switch to TCP. Would it matter if the UDP and subsequent TCP queries go to different servers in the cluster. Ie, are there any "session keys" or similar content that require the same server both times. (IIRC there is not, and it should just work if the L4 has both UDP and TCP settings).
Will SPF system influence this as well, as it was mentioned.
posted by lundman to computers & internet (9 comments total)
If you really think you need four DNS servers, make four DNS servers. Publish them in WHOIS. Put a master server behind them and configure them all as slaves. If you make a change, the real master server notifies all the slaves, which then transfer the new zone file in. Everything just works.
Again, you would need a bloody ENORMOUS amount of DNS traffic to need four servers, much less a load balancer. A pair of P3/1Ghz machines will serve most busy domains more than adequately. DNS packets are very small and cached remotely for some time. The entire server runs very comfortably out of RAM and never hits the disk at all.
If you're worried about keeping the service up 24x7, I'd suggest spreading your servers around geographically, rather than load-balancing them in a single spot.
That said, I don't see any reason why you COULDN'T do what you're talking about. You'd run the risk of not updating all your servers in perfect sync, which could cause a little trouble, but it would otherwise work. It's an _extremely_ strange design, butchering the DNS protocol's built-in failover, and spending money you almost certainly don't need to spend, but it would work.
SPF is just a TXT record. It works like any other DNS query.
posted by Malor at 6:02 AM on July 24, 2006