|The TCP/IP model (RFC 1122)|
The Domain Name System (DNS) is a system used to convert a computer's host name into an IP address on the Internet. For example, if a computer needs to communicate with the web server example.net, your computer needs the IP address of the web server example.net. It is the job of the DNS to convert the host name to the IP address of the web server. It is sometimes called the Internet's telephone book because it converts a Website's name that people know to a number that the Internet actually uses.
The DNS is defined by Request for Comments (RFC) documents. These are technical documents about computer networks. The DNS is mainly defined by RFC 1034 and RFC 1035. There are later RFC which define changes to the system.
Structure[change | change source]
Domain names are made up of one or more parts, or labels that are joined and kept separate by dots, such as
- The label on the right is the top-level domain or TLD. For example, the top-level domain of
- The next one along is the subsection (or subdomain as is the proper word) of the TLD. In
- The furthest to the left is the
wwwwhich is a subdomain of
wwwmeans the site is part of the World Wide Web (NOT the same as the Internet )
- Each label can have 63 letters/numbers (characters) and a domain name cannot have more than 253 characters.
Lookup process[change | change source]
Let us imagine that a PC called PC1 needs to connect to a server named Server1. The following steps describe the basic DNS lookup process.
- PC1 sends a DNS query to the DNS server. This query asks for the IP address of Server1.
- The DNS server sends a DNS reply to PC1 that contains Server1's IP address.
- PC1 can now send an IP packet to the IP address used by Server1.