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
How does tcp try to avoid network meltdown?
What is google ip address for ping?
at which layer of osi model does segmentation of a data stream happen?
How do I type ipconfig in cmd?
What is an ip block list?
Explain about tcp&ip and osi model.
How do I find out what program is using a port?
How is data send by ip layer?
How do I create a message queue?
Is http based on tcp?
What is the difference between unidirectional and bidirectional?
How do I check if my firewall is blocking a port?
What port is 23?
Where is tcp used?
How do applications coexist over tcp and udp?