answersLogoWhite

0

Why does DNS run over udp?

Updated: 10/3/2023
User Avatar

Wiki User

10y ago

Best Answer

DNS runs over UDP because the UDP does not have any delay to establish the connection, which DNS will have finer application level control for faster connection speed in comparison to TCP protocol.

User Avatar

Wiki User

10y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

14y ago

Yes, it is. You don't want to wait for replies to DNS queries; it takes too long.

This answer is:
User Avatar

User Avatar

Wiki User

11y ago

Because it is faster than TCP

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Why does DNS run over udp?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is the difference between a DNS port and UDP?

There are a lot of differences between a DNS port and UDP. An example would be DNS is for translation while UDP actually relays the host communication.


Example of application used by the UDP and TCP?

UDP: DNS, TFTP, DHCP... TCP: SMTP, HTTP, HTTPS, DNS, FTP, SHH, Telnet...


How does the dns server add a udp header to the contexts of a dns query?

anonymous systems


What protocol uses both TCP and UDP?

DNS does.


What protocol uses udp?

DNS uses both TCP and UDP, also a lot of online chats use UDP. I think even when you want videos on YouTube UDP is used to deliver video and audio.


What port does DNS operate on?

Strictly speaking, the question is invalid, as DNS uses both UDP and TCP for its transport. The expected use is for DNS to run on top of UDP, with a fall-back to TCP for data packages that can't fit into a single 8K UDP packet. Large replies and zone transfers will fall in to this category. DNS can also be configured to work exclusively over TCP, but this isn't recommended. Early MS Windows systems used DNS over TCP exclusively. Fortunately the more recent editions (XP onwards) use DNS over UDP by default, falling back to TCP only when necessary. Why UDP rather than TCP? It's simply a matter of efficiency. To start a TCP connection a minimum of three packets are required (SYN out, SYN+ACK back, ACK out). By the time you add a data packet into that and close the session off correctly you will have sent several packets. In contrast, UDP can get away with a minimum of two packets (one question, one reply). DNSSec adds a layer of complexity to this, but with caching the extra resource required can usually be mitigated against a number of queries.


When a client computer sends a request to a Domain Name System (DNS) server, what type of packet is sent?

DNS primarily uses the User Datagram Protocol (UDP) on port number 53 to serve requests. DNS queries consist of a single UDP request from the client followed by a single UDP reply from the server. When the length of the answer exceeds 512 bytes and both client and server support EDNS, larger UDP packets are used.


Which protocol translates a website name such as wwwciscocom into a network address?

It's called DNS and it uses both TCP and UDP.


Which protocols uses both UDP and TCP ports for the transport layer operation?

dns


What is the default port number DNS?

DNS uses port 53. DNS queries are generally performed via UDP, and zone transfers are normally done via TCP.


What is the dns port number and dhcp port number?

DHCP listens for incoming on UDP 67 and send out on UDP 68 For 'well known' and 'registered' ports, you can check http://www.iana.org/assignments/port-numbers too. by gerson.freire@terra.com.br


How do you communicate to your dns server?

For the most part it is through UDP, which is very insecure and that's one of the reasons why DNS attacks are so easy to pull off. If your really good at programming (or know somebody who is, like I did) you can get them to set you up with a new system which uses TCP. And the advantage of this is you can have any sort of encryption, 3/4/5 way handshake, intrusion detection etc... If you want to learn about DNS, you should look into the UDP protocol first and get a good firm understanding. And alot of books when explaining UDP actually explain it with DNS.