Why we need dns servers on the internet
Hosts would copy hosts.txt every night. It worked when there were only a few hundred machines on the network. It needed updating as the number of machines increased. The hosts.txt file would become too large to distribute every day, and address conflicts would increase. A centralized list for an international network would be difficult. RFC 1034 and 1035 were used to create the DNS. The DNS maps hostnames (domains) to IP addresses.A library procedure called a resolver is used to access the DNS application, which accepts a domain name as an ASCII string. User Datagram Protocol (UDP) packets are sent to a local DNS server that looks up the name and returns the IP address. Once the IP address is retrieved, the program starts a TCP connection or sends more UDPs.