DNS server - number of listeners

Nov 29, 2011 at 3:44 PM


Looking for a bit more information on considerations for the number of udp/tcp listeners if possible?

For eaxample

using (DnsServer server = new DnsServer(IPAddress.Any, 10, 10, ProcessQuery))

opens a new server with 10 tcp and udp listeners.  Are these separate threads started, ready and waiting for requests?  I'm wondering how scalable this is?  Looking to reduce CPU and increase performance when dealing with up to 100 queries per second, but want to cope with much larger brief peaks. I'm currently testing with 20 udp listeners and 100 queries per second.

Are there any recommendations, suggestions or known limits?