Does DNS use TCP or UDP or both?

Answers were Sorted based on User's Feedback



Does DNS use TCP or UDP or both?..

Answer / 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

Does DNS use TCP or UDP or both?..

Answer / smruti

DNS uses both TCP as well as UDP.

One more thing I want to add, why UDP is used though TCP is
connection oriented and better, that UDP is faster than TCP.

Is This Answer Correct ?    30 Yes 5 No

Does DNS use TCP or UDP or both?..

Answer / brajpal

tcp or udp does use both

Is This Answer Correct ?    31 Yes 9 No

Does DNS use TCP or UDP or both?..

Answer / 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

Does DNS use TCP or UDP or both?..

Answer / mubashir

Halon, You are absolutley right. DNS uses UDP just because
it requires a great speed in execution. Packets Loss is not
a big deal. But it should use UDP instead of TCP.

Is This Answer Correct ?    15 Yes 3 No

Does DNS use TCP or UDP or both?..

Answer / majid malik

My name is Majid Malik. I know that DNS use TCP and UDP but

TEST INSIDE 356Q Dumps Says only one Choice to Select.

They give us to choices to select both.

Thanks

Majid Malik

Is This Answer Correct ?    2 Yes 1 No

Does DNS use TCP or UDP or both?..

Answer / prince

I am more convinced with the explanation of CURRY. DNS uses
both protocol but the UDP suits the best
thanks to all

Is This Answer Correct ?    0 Yes 0 No

Does DNS use TCP or UDP or both?..

Answer / kyle

Windows DNS uses both, and is more in line with proper standards than it once was. For instance, the port ranges are now set to international standards since Server 2008.

This is a great site about Windows DNS and ports: http://technet.microsoft.com/en-us/library/dd197515(v=ws.10).aspx

Also, some have said TFTP has file size limits, which is generally no longer true. TFTP now is capable of sending files of essentially unlimited size, given a stable enough connection. "If the server and client support block number wraparound, file size is essentially unlimited." Source: http://en.wikipedia.org/wiki/Trivial_File_Transfer_Protocol

Is This Answer Correct ?    0 Yes 0 No

Does DNS use TCP or UDP or both?..

Answer / dharma.palli

no

Is This Answer Correct ?    0 Yes 0 No

Does DNS use TCP or UDP or both?..

Answer / curry muncher

UDP since its nature of connection is the best possible over
TCP. Packet loss is not an issue but the speed at which the
information is obtained is critical.

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More TCP IP Interview Questions

What are the places they TCP IP, I want some of real time examples.

2 Answers  


Explain address resolution protocol arp?

0 Answers  


Explain how do applications coexist over tcp and udp?

0 Answers  


What is IP address range?

0 Answers   Infosys,


Which port does netflix use?

0 Answers  






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

0 Answers  


Which layer is closer to the user?

0 Answers  


What is the role of tcp/ip in data transmission from source to destination?

0 Answers  


What does tcp/ip stand for?

0 Answers  


What is port 110 used for?

0 Answers  


How do you find neighbour system IP address without accessing it

10 Answers   Accenture, HCL, L&T,


I wish to understand How to subnet a class c address I understand the principle of subnetting as 192.168.5.0 /24 1st Subnet > 192.168.5.1 Last address > 192.168.5.126 192.168.5.127 is Broadcast address 2nd Subnet > 192.168.5.128 last address > 192.168.5.254 Even the division into 4 Subnets , i Know the formula but still am having to understand HOW TO CONFIGURE ON THE TCP/IP CONFIGURATION LOCAL AREA NETWORK HOW TO PUT THE SUBNET WHERE TO PUT THE SUBNET Am studying the Network + Afterwards The MCSE , CCNA ,CCNP I got a scenario > 260 hosts , DHCP , DNS , 1 GATEWAY ,1 wireless access point on the Network address 192.168.2.0 /24 to document the IP Scheme & Configure afterwards PLease do me a favour to explaine me how to handle this , I have been through e -books , sites of Techtutorial and so on but nobody gives the explanations of how to do it , How to nanage the configuration .

5 Answers  


Categories