?
Solved

Can I send multiple DNS queries over one TCP connection?

Posted on 2010-09-24
4
Medium Priority
?
1,041 Views
Last Modified: 2012-08-14
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.
0
Comment
Question by:gremwell
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 10

Expert Comment

by:wdurrett
ID: 33754962
Hi gremwell.

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

0
 
LVL 71

Accepted Solution

by:
Chris Dent earned 2000 total points
ID: 33755032

In theory you can continue sending queries over a single session and the server should continue to answer them.

This behaviour is suggested in RFC 1035 section 4.2.2:

http://www.ietf.org/rfc/rfc1035.txt

I've never actually tried to send queries down the same connection, my resolver closes down the TCP connection as soon as it's had a response from the server.

Chris
0
 
LVL 3

Author Comment

by:gremwell
ID: 33755134
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.

0
 
LVL 71

Expert Comment

by:Chris Dent
ID: 33755206
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
0

Featured Post

Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article is intended as an extension of a blog on Aging and Scavenging by the MS Enterprise Networking Team. In brief, Scavenging is used as follows: Each record in a zone which has been dynamically registered with an MS DNS Server will have…
One of the most often confused topics in the area DNS is the idea of GLUE records. Specifically, what they are, when they are needed, when they are provided, and how they are created. First, WHAT IS GLUE? To understand GLUE, you must first under…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question