Does DNS use TCP or UDP or both?

Answer Posted / sathyender

TCP is a connection-oriented protocol and it requires data
to be consistent at the destination and UDP is
connection-less protocol and doesn't require data to be
consistent or don't need a connection to be established with
host for consistency of data.
UDP packets are smaller in size. Can't be greater then 512
bytes. So any application needs data to be transffered
greter than 512 bytes uses TCP
We often discuss why services use both the protocols i.e.
TCP and UDP. These services can also realy on TCP instead of
UDP because TCP is a connection-oriented protocol whereas
UDP is connection-less! then why use UDP?
For example, DNS uses both TCP and UDP for valid reasons
described below. Note that UDP messages are not larger than
512 Bytes and are trucncted when greater than this size. So
DNS uses TCP for Zone transfer and UDP for name queries
either regular (primary) or reverse. UDP can be used to
exchange small information whereas TCP must be used to
exchange information larger than 512 bytes. If a client
doesn't get response from DNS it must retransmit the data
using TCP after 3-5 seconds of interval.

Is This Answer Correct ?    95 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Who wrote indian penal code?

594


What list of calls are used to establish a tcp and/or udp socket connection?

630


What does an ip address mean?

608


Which layer would the Transmission Control Protocol TCP be in? and is used in which layer.

721


Why is it important to install patches on network systems?

563






What is port 135 commonly used for?

652


What is routing protocol and its purposes?

623


What is the data unit of "transport layer"?

607


Is a form of interprocess communication?

716


What is the core naming mechanism?

645


Is port forwarding dangerous?

689


What is ip multicast?

688


Can ip address be assigned to layer 2?

738


How do I find a device by ip address?

622


What port number is 8080?

621