DNS and BIND - Limit rrset size?

Ares2600

Member
May 30, 2000
124
0
76
Hey guys,

I had some luck with a BIND question a while back.. hoping you guys can help me out here. I've got a simple zone configured with a whole cluster of machines overloaded to a single hostname. In total I have 56 ip addresses registered as the same hostname. BIND returns every ip address every time in it's response. The application consuming these responses is only grabbing the first ip address in the list. I'm doing thousands of lookups per second with a TTL of 0 and was hoping to reduce the load on BIND and the network a bit by having it send back only the top address in the list or at least fewer than the entire list of 56.

I've looked everywhere I can for a config parameter of this type, so now I turn to you.

Any ideas?
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
All I can find is an option to set the order of the rrset, not how many records are included. You'll probably be much better off finding some way to cache the results instead of querying the server thousands of times per second.
 

Ares2600

Member
May 30, 2000
124
0
76
It's complicated because this is a benchmark and we're using the dns server to load balance. So I'm spinning up a couple hundred thousand client threads. They're java threads, and the dns caching in java is per-process rather than per-thread. Net of it is TTL 0 is the only way I've been able to get good balance amongst my cluster members.

The search continues.