01-24-2008 08:48 AM - edited 03-05-2019 08:41 PM
All,
I have always had a question about the transport layer protocols TCP and UDP. How is it that a port number can use both transport protocols? For instance DNS is on port 53 but it uses UDP/TCP how is this possible? This question has nagged me forever. I don't understand what determines if a program will use UDP or TCP especially when the service can use either or? I know this is an easy question but I am reading about transport layer protocols and the questions popped in my head again, can someone shed some light on this?
Solved! Go to Solution.
01-24-2008 09:01 AM
DNS primarily uses UDP on port 53 to serve requests. Almost all DNS queries consist of a single UDP request from the client followed by a single UDP reply from the server. TCP comes into play only when the response data size exceeds 512 bytes, or for such tasks as zone transfer.
So, does that mean you can block TCP and allow only UDP. Not Really. Blocking TCP 53 and allowing UDP 53 will eventually cause some DNS
resolution problems.
Regards,
Arul
** Please rate if it helps **
01-24-2008 09:01 AM
DNS primarily uses UDP on port 53 to serve requests. Almost all DNS queries consist of a single UDP request from the client followed by a single UDP reply from the server. TCP comes into play only when the response data size exceeds 512 bytes, or for such tasks as zone transfer.
So, does that mean you can block TCP and allow only UDP. Not Really. Blocking TCP 53 and allowing UDP 53 will eventually cause some DNS
resolution problems.
Regards,
Arul
** Please rate if it helps **
01-24-2008 10:17 AM
Yes this does help, thanks.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide