Talk to the NOC, IST hours — +91 75994 50220 support@bigdomainhost.com
हिंदी में पढ़ें Read in Hindi
Guide

What is DNS, and what does a DNS server do?

Every website visit starts with a question your device cannot answer by itself: which IP address does this name belong to? This guide explains how DNS answers it, the two kinds of DNS server involved, the record types you will meet, and how to check them yourself.

Short answer: DNS (Domain Name System) is the internet's directory: it turns names such as example.com into the IP addresses computers connect to. A DNS server answers those lookups. A recursive resolver, run by your ISP or a public service such as 1.1.1.1, finds and caches answers for you; an authoritative server holds a domain's actual records.

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

The two kinds of DNS server compared
Recursive resolverAuthoritative DNS server
JobFinds the answer for a client by asking other serversGives the final answer for the zones it hosts
Who asks itYour device, router or appRecursive resolvers, on behalf of everyone
Who runs itYour 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 outYes, it is the source
Caches answers?Yes, that is most of its valueNo, it answers from its own zone data
Where you set itNetwork settings on your device or routerNS records for your domain, set at the registrar
Why you would change itFaster, filtered or more private lookupsTo 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.

  1. Local caches. The browser checks its own DNS cache, then the operating system checks its cache and the hosts file. If either has an unexpired answer, the lookup ends here.
  2. 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.
  3. 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 .in servers.
  4. Resolver asks the TLD servers. The .in servers do not hold the site's records either. They reply with another referral: the nameservers set for example.in at its registrar.
  5. Resolver asks the authoritative server. The domain's nameserver returns the A record, for example 203.0.113.10, with a TTL.
  6. 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.
  7. Browser connects. Only now does the browser open a connection to 203.0.113.10 and 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:

Common DNS record types, what they hold and where they are defined
TypeWhat it holdsExample valueDefined in
AAn IPv4 address for the name203.0.113.10RFC 1035
AAAAAn IPv6 address for the name (record type 28)2001:db8::10RFC 3596
CNAMEAn alias: "this name is really that other name"www pointing to example.com.RFC 1035
MXThe mail server for the domain, with a preference number (lower is preferred)10 mail.example.com.RFC 1035
TXTFree-form text strings, used for SPF, verification codes and similar"v=spf1 mx -all"RFC 1035
NSThe authoritative nameservers for a zonens1.dnsprovider.example.RFC 1035
CAAWhich certificate authorities may issue SSL/TLS certificates for the domain0 issue "letsencrypt.org"RFC 8659
SRVThe 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 for www if 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 issuewild tag 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:

What different TTL values mean in practice
TTL (seconds)Cache timeWhen it makes sense
3005 minutesJust before and during a server move, or for records that change often
36001 hourA sensible default for most website records
864001 dayRecords 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:

Public DNS resolver addresses, from each provider's documentation
ProviderIPv4IPv6Notes
Cloudflare1.1.1.1, 1.0.0.12606:4700:4700::1111, 2606:4700:4700::1001General-purpose resolver
Google Public DNS8.8.8.8, 8.8.4.42001:4860:4860::8888, 2001:4860:4860::8844General-purpose resolver
Quad99.9.9.9, 149.112.112.1122620:fe::fe, 2620:fe::9Blocks 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

DNS symptoms and what to check first
SymptomLikely causeCheck
DNS_PROBE_FINISHED_NXDOMAINThe name has no record, the domain expired, or the nameservers are wrongdig example.com +trace
ERR_NAME_NOT_RESOLVED on one device onlyA local resolver, VPN or cache problemCompare nslookup example.com with nslookup example.com 1.1.1.1
Old site still shows after a moveA cached record with a long TTLFlush local caches, then wait out the TTL
SSL certificate request failsA CAA record names a different CA, or the A record points elsewheredig example.com CAA and dig example.com A
Record edits have no effect at allRecords changed at a provider the domain does not usedig 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 )

Answers

Frequently asked questions

Still unsure? Call +91 75994 50220 or write to support@bigdomainhost.com — a human replies in IST hours.

What is a DNS server in simple words?

A DNS server is a computer that turns website names into IP addresses. A recursive resolver, such as your ISP's or 1.1.1.1, looks up the answer for you and caches it. An authoritative DNS server holds a domain's real records and gives the final answer.

What is the difference between a DNS resolver and a nameserver?

A resolver (recursive DNS server) answers questions for clients by asking other servers, and caches the results. A nameserver (authoritative DNS server) stores a domain's records and answers for that domain only. You choose a resolver in your network settings, and a domain's nameservers at its registrar.

Which DNS server address should I use?

Your ISP's resolver is used by default. Well-known public alternatives are Cloudflare 1.1.1.1 and 1.0.0.1, Google 8.8.8.8 and 8.8.4.4, and Quad9 9.9.9.9 and 149.112.112.112, which also blocks known malware domains. Measure which is fastest from your own connection before switching.

Does DNS use TCP or UDP?

Both, on port 53. Most queries go over UDP because it is quick, and RFC 7766 requires DNS implementations to support TCP as well, which is used for larger responses and zone transfers. DNS over HTTPS (RFC 8484) carries queries inside HTTPS instead.

How long does a DNS change take?

Up to the TTL of the old record. Resolvers that cached it keep the old answer until the TTL expires, so a record with a TTL of 3600 can take up to an hour to change everywhere. Lowering the TTL a day before a planned change makes the switch fast.

Can I put a CNAME on my root domain?

Not as a standard CNAME. RFC 1034 says a name with a CNAME should hold no other data, and the root of a domain always has NS and SOA records. Use an A (and AAAA) record for the bare domain and a CNAME for www if you want one.

How do I check what DNS records a domain has?

Run nslookup -type=A example.com, or change the type to MX, TXT, NS or AAAA. On Linux and macOS, dig example.com MX +short is quicker, and dig example.com +trace shows every step from the root servers to the domain's nameserver.

Support that picks up the phone.

In IST hours, in Hindi or English, and WhatsApp replies fastest at any time. Sales, migration and emergencies all reach the same engineers. No offshore queue, no 48-hour first reply.

Need cPanel or WHM with the ports already sorted?

Web & cPanel hosting comes with cPanel ready to log in to, reseller hosting adds white-label WHM, and a KVM VPS can have cPanel & WHM pre-installed. Call +91 75994 50220 or email support@bigdomainhost.com.