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

Do I need a dedicated ip?

684


What is the difference between unidirectional and bidirectional?

677


How many hosts can be on each network? Consider a fixed subnet partition of a class b network number that will accommodate at least 76 networks.?

832


What are the 4 layers of tcp ip?

692


What are the different types of osi layer?

692






What is the port 8000?

708


What is default gateway ip?

665


Tell me about IPv4 and IPv6.

732


What is the j std 001?

687


Explain how can we detect that the other end of a tcp connection has crashed? Can we use "keepalives" for this?

842


What is port 139 commonly used for?

649


What is the address for port number 8080?

739


Do switches use ip addresses?

672


How do you find your ip address on windows?

691


Which layer is closer to the user?

811