Doesn't have to. You can, for example, send a DNS request on port 53 UDP and get back a response (also UDP) that tells you that you can't get that information (eg SERVFAIL). Though, if you asked for *too much* information, then the correct response is to switch to TCP, so in a very different sense, it would in fact become TCP.
View all comments
Show parent comment
3
u/TohveliDev 1h ago
But then if the interviewer does repeat the question, it becomes TCP.