Glossary

DNS Provider

A DNS provider runs the authoritative name servers for your domain. It stores your records, such as the A record pointing at your server, and answers every lookup for them worldwide.

What does a DNS provider do?

When anyone looks up www.example.com, resolvers eventually ask the authoritative name servers for example.com. Those servers belong to the domain's DNS provider. The provider keeps your zone, meaning the set of records for the domain, offers a panel or API to edit it, and runs name servers in many locations so answers stay fast and available. If the provider's name servers are down, your domain effectively disappears, even though your server is fine.

Is the DNS provider the same as the registrar?

Not necessarily. The registrar is where you register and renew the domain; it tells the parent zone (such as .com) which name servers are authoritative for your domain. The DNS provider is whoever runs those name servers. Many registrars offer free DNS hosting, so the two are often the same company, but you can point the domain at any provider by changing its NS records at the registrar.

RoleDoesYou change it when
RegistrarHolds the registration, sets the NS delegationTransferring or renewing the domain
DNS providerHosts the zone, answers queriesWanting better features, speed or reliability
Hosting (your server)Runs the services the records point atMoving to a new machine or city

What should I look for in a DNS provider?

  • Reliability: anycast name servers in many regions, and a track record of uptime.
  • Record types: A, CNAME, MX, TXT, SRV and CAA at minimum.
  • Low TTL support: 60 or 300 second TTLs for records you may change quickly.
  • API access: needed for automated certificate issuance with DNS-01 challenges (Let's Encrypt with nginx) and for scripted changes.
  • DNSSEC: signing support if your registrar supports it too.
  • Account security: two-factor login, because whoever controls DNS controls your domain.

Which records do I create for a new server?

For a web server at 203.0.113.25:

example.com.        300  IN  A      203.0.113.25
www                 600  IN  CNAME  example.com.
example.com.        7200 IN  CAA    0 issue "letsencrypt.org; validationmethods=http-01,dns-01"
srv1.example.com.   3600 IN  A      203.0.113.25

The apex A record carries the site, www follows it, the CAA record limits which certificate authorities may issue for the domain, and a host name record gives the machine its own name for SSH and monitoring. Mail needs MX, SPF, DKIM and DMARC records as listed on Email server. Our machines each have one public IPv4 address, so AAAA records do not apply.

Can I run my own DNS server instead?

Yes. BIND, Knot DNS, NSD and PowerDNS are mature authoritative servers, and a dedicated machine runs them easily. The catch is redundancy: you need at least two name servers on different networks, ideally in different cities, so one outage does not take the domain offline. With identical models in six cities, a primary in Chicago and a secondary in Amsterdam is a practical layout. Many people take a middle path: a managed provider for public zones, and their own resolver for internal lookups (DNS resolver).

What TTL should my records use?

The time to live on a record sets how many seconds resolvers keep serving their stored copy. Long values, such as 3600 or 86400 seconds, mean fewer queries and slightly faster lookups for repeat visitors, but slower changes. Short values, such as 300 seconds, let you move a site quickly. A sensible default is one hour for records that rarely change and five minutes for anything you may switch soon, such as the A record of a site you plan to move to a new machine. Drop the TTL a day before any planned change, then raise it again afterward.

How do I change DNS providers without downtime?

  1. Recreate every record at the new provider, including MX and TXT; export a zone file from the old one if possible.
  2. Check the new name servers answer correctly with dig @new-ns1.example.net example.com ANY, or query each type.
  3. Change the NS records at the registrar.
  4. Keep the old zone active for at least two days, because resolvers cache NS records.

DNS propagation explains why those caches matter, and The dig command covers the testing.

Machines That Run Name Servers Easily

ServerProcessorCores / threadsMemoryStorageNetworkPer monthSmallest order
E1Intel Xeon E3-1240 v34 / 816 GB DDR32x 240 GB SSD2x 1 Gbps$30.52$91.56 (3 months)
E2Intel Xeon E3-1270 v34 / 832 GB DDR31x 480 GB SSD2x 1 Gbps$38.32$114.96 (3 months)
S1Intel Xeon E-2276G6 / 1264 GB DDR41x 1 TB NVMe2x 10 Gbps$53.32$53.32 (1 month)
S2Intel Xeon E-2356G6 / 1264 GB DDR41x 1 TB NVMe2x 10 Gbps$58.39$58.39 (1 month)

Keep Reading

DNS propagation

Why a DNS change takes time to reach everyone, how TTLs and caches decide the delay, and how to plan a server move with almost no wait.

Open

DNS SOA record

The start of authority record at the top of every DNS zone, what its serial, refresh and negative TTL fields do, and how to read it with dig.

Open

The dig command

Query DNS precisely with dig: record types, short answers, specific resolvers, full delegation traces, reverse lookups and DNSSEC checks.

Open

DNS resolver

The server that turns names into addresses for your machine, how recursive lookups work, and how to run a fast, private resolver on Linux.

Open

FAQ

Quick Answers

The registrar manages your domain registration and its name server delegation. The DNS provider hosts the records and answers queries.

Yes. Create the zone at the new provider, then change the NS records at your registrar.

An A record with the server public IPv4 address. Use a CNAME for www pointing at the main name.

Yes, with BIND, Knot, NSD or PowerDNS. Run at least two, ideally in different cities.

Automated certificate issuance with DNS challenges and scripted record changes both rely on it.