DNS
In one line
DNS (Domain Name System) is the internet's phonebook — it translates human-readable domain names into IP addresses.
In simple words
DNS (Domain Name System) is what allows you to type "example.com" instead of "93.184.216.34". It is a distributed database that maps domain names to IP addresses, which are the actual addresses computers use to find each other on the internet.
When you type a URL, the browser first queries a DNS server to resolve the domain to an IP address. This happens before any HTTP connection is made. DNS resolution is usually fast (milliseconds) but can slow down page loads if the DNS server is slow.
DNS records include A records (domain → IPv4 address), AAAA records (domain → IPv6 address), CNAME records (alias to another domain), MX records (mail servers), and TXT records (arbitrary text, used for verification). DNS changes can take time to propagate across the global DNS network.
Example
User types: https://example.com
↓
DNS lookup: example.com → 93.184.216.34
↓
Browser connects to 93.184.216.34 on port 443
↓
HTTP request sent, response received and renderedThe DNS lookup step happens before the browser can connect to the server.
Related terms
Related Resources
Related Lessons
- What is the Web
How the web works.
Decode error messages
Plain-English explanations of common errors — what they mean, why they happen, and how to fix them.