RE: [squid-users] Does squid use UDP or TCP for it's DNS requests

From: Boosten, Peter <Peter.Boosten@dont-contact.us>
Date: Wed, 5 Feb 2003 14:54:55 +0100

# Yes, but how do you define a "larger DNS request" That is
# really just a
# zone transfer. A DNS request is a request for a single resolution. A
# request for a block of IP's or names or anything else is a
# full or partial
# zone transfer.

Normally, ordinary queries use UDP, and zone transfers use TCP.

However, DNS limits UDP queries and responses to about 500 bytes. If a
response would be larger than that, the server sends back up to 500 bytes
and sets the "truncated" flag. The client is then supposed to perform the
same query again using TCP, which is almost unlimited in the size of
response it can send (the limit is typically only exceeded by web hosting
organizations that feel the need to create a PTR record for every A record,
and they have thousands of names pointing to the same address).

So best to open up UDP and TCP.

Peter

Disclaimer
1. This e-mail is for the intended recipient only. If you have received it
by mistake please let us know by reply and then delete it from your system;
access, disclosure, copying, distribution or reliance on any of it by anyone
else is prohibited.

2. If you as intended recipient have received this e-mail incorrectly,
please notify the sender (via e-mail) immediately. This e-mail is
confidential and may be legally privileged. DSM does not guarantee that the
information sent and/or received by or with this e-mail is correct and does
not accept any liability for damages related thereto.
Received on Wed Feb 05 2003 - 06:55:41 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:13:15 MST