Link to home
Start Free TrialLog in
Avatar of gremwell
gremwell

asked on

Can I send multiple DNS queries over one TCP connection?

I would like to know whether it is possible to send more than one DNS query over the same TCP connection.

I am aware that DNS queries usually go over UDP and TCP is used for large requests and zone transfers only, no need to point it out. I want to make a bunch of DNS request over the same TCP connection. Is this possible?

Answers to this specific question hopefully referring to RFC or other reputable sources are greatly appreciated.
Avatar of wdurrett
wdurrett
Flag of United States of America image

Hi gremwell.

Can you please provide a little more information on what you are attempting to do?

ASKER CERTIFIED SOLUTION
Avatar of Chris Dent
Chris Dent
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of gremwell
gremwell

ASKER

Chris, I really appreciate you taking care to answer to the specific question I have asked.

PS. Yes, I also have not manage to simulate it with resolvers. Even if I run 'dig' in batch mode ('-f' command line key) it reopens the connection to every request. I trust there are some Perl modules will help.

Fingers crossed then :)

As far as I know Net::DNS does the same thing (one TCP connection per query), but it's been a very long time since I looked at it.

Chris