Solved

Can I send multiple DNS queries over one TCP connection?

Posted on 2010-09-24
4
969 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
  • 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 70

Accepted Solution

by:
Chris Dent earned 500 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 70

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
On Server 2008 R2 - Expand /24 to /16 Netmask 9 63
spf record 8 83
active directory 3 39
After relocating dns server, the ip address is incorrect 19 28
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…
BIND is the most widely used Name Server. A Name Server is the one that translates a site name to it's IP address. There is a new bug in BIND (https://kb.isc.org/article/AA-01272), affecting all versions of BIND 9 from BIND 9.1.0 (inclusive) thro…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…

911 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now