Blog / Basics
What is DNS, and how does it work?
Computers find each other using numbers called IP addresses, but people remember names like monitopulse.com. The Domain Name System, or DNS, is the service that turns names into addresses. It is often compared to the contact list on your phone: you pick a name, and the phone dials the number.
What happens when you type a website name
- Your browser checks whether it already knows the address from a recent visit.
- If not, your computer asks its DNS resolver, usually run by your internet provider or a public service such as Cloudflare (1.1.1.1) or Google (8.8.8.8).
- If the resolver does not know either, it asks a root server, which points it to the servers for the ending of the name, such as .com.
- Those servers point to the domain’s authoritative name server, the one that holds the real answer.
- The answer comes back, your browser connects to the IP address, and the resolver remembers the answer for a while.
This usually takes a few milliseconds.
Common DNS record types
| Record | Purpose |
|---|---|
| A | Points a name to an IPv4 address |
| AAAA | Points a name to an IPv6 address |
| CNAME | Makes one name an alias of another |
| MX | Says which servers receive email for the domain |
| TXT | Holds text, such as email security rules and ownership checks |
| NS | Lists the domain’s authoritative name servers |
Why changes take time
Every record has a TTL (time to live), the number of seconds resolvers may keep the answer before asking again. When you change a record, some users keep seeing the old answer until their cached copy expires. This delay is often called propagation.
Is it DNS or the whole connection?
If websites will not open but apps still work, DNS may be the problem. Test it:
- Run ping 1.1.1.1. If this works but ping google.com fails, your connection is fine and DNS is not.
- Run nslookup monitopulse.com to see which server answers and what address it returns.
How to fix common DNS problems
- Restart your router.
- On Windows, clear the local cache with ipconfig /flushdns.
- Switch to a different resolver, such as 1.1.1.1 or 8.8.8.8, in your network settings or router.
- Try another device or network to see whether the problem is only on yours.
Security note
Attackers sometimes use fake websites with look-alike names, or change a router’s DNS settings to redirect traffic. Keep your router firmware updated, change its default password, and check that its DNS servers are ones you chose.