Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Does DNS use TCP or UDP or both?

Answer Posted / jai

Sathyender is not wrong about the scenario when DNS uses TCP.

Halon is correct by saying UDP is not limited to 512 bytes
of data.

DNS uses UDP for normal communications. However, check this
detail in RFC 1035

2.3.4. Size limits

Various objects and parameters in the DNS have size limits.
They are listed below. Some could be easily changed,
others are morefundamental.

labels 63 octets or less

names 255 octets or less

TTL positive values of a signed 32 bit number.

UDP messages 512 octets or less

So, the DNS messages can not exceed 512 bytes and when that
happens, the DNS server truncate the data and only send 512
bytes with a TRUNCATED BIT set in the header.

When the DNS client sees this TRUNCATED BIT, it comes to
know that the data is more than 512 bytes which can not be
received using UDP. Then, it switches over to TCP and sends
the same request on TCP.

Hope this clarifies.

Is This Answer Correct ?    16 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is echo in networking?

979


What is the difference between a port address a logical address and a physical address?

1097


What is j std 001 class 3?

1067


Do switches use ip addresses?

978


What is the core naming mechanism?

1125


Explain 3 way handshake and how it works?

982


What is routing protocol and its purposes?

1017


What does tcp/ip stand for and what is its use?

1085


Explain address resolution protocol arp?

1044


What is the protocol used in Network layer?

1073


What do you know about Ipv4 and Ipv6?

1055


EXplain how the TCP/IP suite addresses name service

2730


How Authentication Header provides the protection to IP header?

1110


How can I check if port 80 is open?

991


Why is tcp used?

958