What is DNS?
DNS, the Domain Name System, is the internet's directory. It turns a name people can remember, such as example.com, into the IP address a computer needs to connect, such as 203.0.113.10. ICANN describes it as the system that lets a text-based domain name be used instead of an IP address. Every time you open a website, send an email or call an API, a DNS lookup usually happens first.
DNS is not one big database. It is a tree of zones, and each zone is run by whoever controls that part of the name. The root zone sits at the top, top-level domains such as .com and .in sit below it, and your own domain is a zone below those. RFC 1034, the original DNS specification, splits the system into three parts: the domain name space with its resource records, the name servers that hold that data, and the resolvers that fetch it for programs that ask.
What is a DNS server?
A DNS server is a computer that answers DNS queries, on port 53 over UDP and TCP. The term covers two very different jobs, and most confusion about DNS comes from mixing them up:
- A recursive resolver answers on your behalf. It does not own any records. When your phone asks for
example.com, the resolver goes and finds the answer, caches it, and hands it back. This is the "DNS server" you see in your Wi-Fi or network settings: your ISP's, or a public one such as 1.1.1.1 or 8.8.8.8. - An authoritative DNS server (also called a nameserver) holds the real records for a domain. RFC 9499, the current DNS terminology document, defines it as a server that knows the content of a zone from local knowledge. When you add an A record at your registrar or DNS provider, you are editing data on their authoritative servers.
There is also a third, smaller piece: the stub resolver built into your operating system. RFC 9499 describes it as a resolver that cannot perform all resolution itself. It sends each question to the recursive resolver it was configured with and waits for the final answer.
Recursive resolver vs authoritative DNS server
| Recursive resolver | Authoritative DNS server | |
|---|---|---|
| Job | Finds the answer for a client by asking other servers | Gives the final answer for the zones it hosts |
| Who asks it | Your device, router or app | Recursive resolvers, on behalf of everyone |
| Who runs it | Your ISP, your company, or a public service (Cloudflare, Google, Quad9) | Your registrar, DNS provider or hosting control panel |
| Holds your records? | Only a cached copy, until the TTL runs out | Yes, it is the source |
| Caches answers? | Yes, that is most of its value | No, it answers from its own zone data |
| Where you set it | Network settings on your device or router | NS records for your domain, set at the registrar |
| Why you would change it | Faster, filtered or more private lookups | To move a domain's DNS to another provider |
So "change your DNS server" in a troubleshooting guide means the resolver, and "point your domain to our nameservers" in a hosting guide means the authoritative servers. Choosing a resolver is a separate topic, covered in our comparison of the best DNS servers in India.
How DNS works: a lookup step by step
Here is what happens when you type www.example.in into a browser and nothing is cached anywhere yet. In this walk-through, example.in stands in for your own .in domain; it is not a real site to visit.
- Local caches. The browser checks its own DNS cache, then the operating system checks its cache and the
hostsfile. If either has an unexpired answer, the lookup ends here. - Stub resolver to recursive resolver. The operating system sends the question "what is the A record for www.example.in?" to its configured resolver, usually your router or ISP.
- Resolver asks a root server. The root servers do not know the answer, but they know who runs
.in. They reply with a referral: the NS records of the.inservers. - Resolver asks the TLD servers. The
.inservers do not hold the site's records either. They reply with another referral: the nameservers set forexample.inat its registrar. - Resolver asks the authoritative server. The domain's nameserver returns the A record, for example
203.0.113.10, with a TTL. - Resolver caches and answers. The resolver stores the answer for the length of the TTL and returns it to your device, which caches it too.
- Browser connects. Only now does the browser open a connection to
203.0.113.10and request the page.
In practice, steps 3 and 4 are rare. A busy resolver already has the root and .in referrals cached, so most lookups go straight to step 5, or end at step 6 because someone else asked the same question a few seconds earlier. That is why DNS feels instant even though the full walk involves several servers.
The root is smaller than people expect. IANA lists 13 named root server authorities, a.root-servers.net to m.root-servers.net. Root-servers.org says they are run by 12 independent organisations and, on 25 November 2026, reported 2,046 operational instances around the world. The "13 root servers" figure counts names and addresses, not machines.
DNS record types: A, AAAA, CNAME, MX, TXT, NS, CAA and SRV
A zone is a list of resource records. Each record has a name, a type, a TTL and a value. These are the types you are most likely to meet when you set up a website or a server:
| Type | What it holds | Example value | Defined in |
|---|---|---|---|
| A | An IPv4 address for the name | 203.0.113.10 | RFC 1035 |
| AAAA | An IPv6 address for the name (record type 28) | 2001:db8::10 | RFC 3596 |
| CNAME | An alias: "this name is really that other name" | www pointing to example.com. | RFC 1035 |
| MX | The mail server for the domain, with a preference number (lower is preferred) | 10 mail.example.com. | RFC 1035 |
| TXT | Free-form text strings, used for SPF, verification codes and similar | "v=spf1 mx -all" | RFC 1035 |
| NS | The authoritative nameservers for a zone | ns1.dnsprovider.example. | RFC 1035 |
| CAA | Which certificate authorities may issue SSL/TLS certificates for the domain | 0 issue "letsencrypt.org" | RFC 8659 |
| SRV | The host and port for a named service, with priority and weight | _sip._tcp 10 5 5060 sip.example.com. | RFC 2782 |
A few rules behind the table save a lot of debugging:
- A CNAME stands alone. RFC 1034 says that if a CNAME is present at a name, no other data should be present there. Your bare domain (
example.com) always has NS and SOA records, so it cannot be a plain CNAME. Use an A record there, and a CNAME forwwwif you like. - MX points to a name, not an IP address. The mail server name then needs its own A or AAAA record. Your email provider gives you the exact MX values.
- SPF lives in TXT. RFC 7208 requires SPF policies to be published as TXT records only, which is one reason a domain often has several TXT records.
- CAA is checked before issuance. RFC 8659 requires a compliant certificate authority to look for CAA records before issuing. If your CAA names one CA and you request a certificate from another, the request fails. The
issuewildtag sets a separate rule for wildcard certificates. - SRV records use a fixed name format:
_service._proto.name. Lower priority numbers are tried first, and weight spreads load across targets that share a priority.
Two more types appear often. SOA (start of authority) sits at the top of every zone and holds its serial number and timers. PTR records do the reverse job of an A record, mapping an IP address back to a name. This reverse DNS is set by whoever controls the IP address, usually the server provider, and matters mostly for mail servers.
What is TTL in DNS?
TTL (time to live) is the number of seconds a resolver may cache a record before it must ask again. RFC 1035 defines it as a 32-bit value in seconds; a TTL of 0 means the answer is used for that one transaction and not cached. Here is what common values mean:
| TTL (seconds) | Cache time | When it makes sense |
|---|---|---|
| 300 | 5 minutes | Just before and during a server move, or for records that change often |
| 3600 | 1 hour | A sensible default for most website records |
| 86400 | 1 day | Records that almost never change, such as NS |
The TTL is the real explanation of "DNS propagation". Nothing is pushed around the internet when you edit a record. Each resolver keeps its cached copy until the TTL runs out, then fetches the new one. If you change an A record that had a TTL of one day, some visitors may see the old IP for up to a day.
"Name does not exist" answers are cached too. Under RFC 2308, an NXDOMAIN answer is cached for the lower of two values from the zone's SOA record: its MINIMUM field and the SOA record's own TTL. That is why a site you have just set up can keep failing with DNS_PROBE_FINISHED_NXDOMAIN for a while if someone looked it up before the record existed. Our guide to clearing the DNS cache covers the copies on your own devices.
How to check DNS records with dig and nslookup
You do not need any special access to read a domain's public DNS. Two tools cover almost everything.
nslookup (Windows, macOS, Linux)
Microsoft describes nslookup as a tool for diagnosing DNS infrastructure. The first argument is the name to look up; the optional second one is the DNS server to ask:
nslookup example.com
nslookup example.com 1.1.1.1
nslookup -type=AAAA example.com
nslookup -type=MX example.com
nslookup -type=NS example.com
"Non-authoritative answer" in the output is normal. It means the reply came from a resolver, not directly from the domain's own nameserver. To ask the authoritative server directly, find it with -type=NS and give its name as the second argument.
dig (Linux and macOS)
The BIND manual describes dig as a flexible tool for interrogating DNS name servers. Without @server it uses the nameservers listed in /etc/resolv.conf.
dig example.com A +noall +answer
dig @8.8.8.8 example.com MX +short
dig example.com NS +short
dig example.com +trace
With +noall +answer you get one line per record: the name, the TTL, the class, the type and the value. On a resolver, the TTL counts down between queries, which tells you how long the cached copy has left. An illustrative line looks like this:
example.com. 2873 IN A 203.0.113.10
+trace follows the delegation path from the root servers down, the same steps as the walk-through above, and prints each referral. It is the quickest way to see which nameservers the TLD really has on file for a domain, which matters after you change nameservers at a registrar. In full dig output, the aa (authoritative answer) flag means the reply came from a server that holds the zone.
Comparing answers from different servers settles most "why does it not work for me" questions. If @1.1.1.1 and @8.8.8.8 show the new IP and your default resolver shows the old one, your ISP is still caching it. If the authoritative server shows the old IP, the record was never changed, or it was changed at a DNS provider the domain does not use.
Public DNS resolvers: 1.1.1.1, 8.8.8.8 and 9.9.9.9
A public resolver is a recursive resolver that anyone can use instead of the one their ISP provides. The three best known publish these addresses:
| Provider | IPv4 | IPv6 | Notes |
|---|---|---|---|
| Cloudflare | 1.1.1.1, 1.0.0.1 | 2606:4700:4700::1111, 2606:4700:4700::1001 | General-purpose resolver |
| Google Public DNS | 8.8.8.8, 8.8.4.4 | 2001:4860:4860::8888, 2001:4860:4860::8844 | General-purpose resolver |
| Quad9 | 9.9.9.9, 149.112.112.112 | 2620:fe::fe, 2620:fe::9 | Blocks known malware domains |
Changing your resolver changes who sees your lookups and how fast answers come back. It does not change any domain's records, and it cannot fix a record that is wrong at the authoritative server. Which resolver is fastest from your connection is something to measure, and our best DNS for India guide shows how to test it and how to switch on Windows, Android, iPhone and routers.
Classic DNS travels unencrypted, so your network operator can see every name you look up. DNS over HTTPS (RFC 8484) maps each query and response into an HTTPS exchange instead, so the lookup is encrypted on its way to the resolver.
Common DNS problems and where to look
| Symptom | Likely cause | Check |
|---|---|---|
| DNS_PROBE_FINISHED_NXDOMAIN | The name has no record, the domain expired, or the nameservers are wrong | dig example.com +trace |
| ERR_NAME_NOT_RESOLVED on one device only | A local resolver, VPN or cache problem | Compare nslookup example.com with nslookup example.com 1.1.1.1 |
| Old site still shows after a move | A cached record with a long TTL | Flush local caches, then wait out the TTL |
| SSL certificate request fails | A CAA record names a different CA, or the A record points elsewhere | dig example.com CAA and dig example.com A |
| Record edits have no effect at all | Records changed at a provider the domain does not use | dig example.com NS +short |
DNS and your Bigdomainhost server
Bigdomainhost does not register domains. Your domain stays with your registrar, and its authoritative DNS stays wherever you keep it: the registrar, a DNS provider such as Cloudflare, or the zone in your cPanel account if you host a site with us and point the domain at our nameservers. For a server, you add an A record (and an AAAA record for IPv6) pointing at its IP. Our guide to pointing a domain to a VPS walks through it step by step.
If a domain still does not resolve to your server after a change, message us on WhatsApp at +91 75994 50220 at any time, or call during IST working hours, and we will help you read the dig output.
This guide was written by the Bigdomainhost team with AI assistance; facts were checked against the linked RFCs and official documentation on 25 November 2026.
Sources (checked )
- IETF (RFC Editor): RFC 1034: Domain Names - Concepts and Facilities
- IETF (RFC Editor): RFC 1035: Domain Names - Implementation and Specification
- IETF (RFC Editor): RFC 9499: DNS Terminology
- IETF (RFC Editor): RFC 3596: DNS Extensions to Support IP Version 6 (AAAA)
- IETF (RFC Editor): RFC 2782: A DNS RR for specifying the location of services (SRV)
- IETF (RFC Editor): RFC 8659: DNS Certification Authority Authorization (CAA)
- IETF (RFC Editor): RFC 7208: Sender Policy Framework (SPF), section 3.1
- IETF (RFC Editor): RFC 2308: Negative Caching of DNS Queries
- IETF (RFC Editor): RFC 7766: DNS Transport over TCP
- IETF (RFC Editor): RFC 8484: DNS Queries over HTTPS (DoH)
- ICANN: The Domain Name System
- IANA: Root Servers
- Root Server Operators: root-servers.org (instance count on 25 November 2026)
- Microsoft Learn: nslookup command reference
- ISC BIND 9: dig manual page
- Cloudflare: 1.1.1.1 IP addresses
- Google Public DNS: Get started: IP addresses
- Quad9: Service addresses and features