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.
| Role | Does | You change it when |
|---|---|---|
| Registrar | Holds the registration, sets the NS delegation | Transferring or renewing the domain |
| DNS provider | Hosts the zone, answers queries | Wanting better features, speed or reliability |
| Hosting (your server) | Runs the services the records point at | Moving 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?
- Recreate every record at the new provider, including MX and TXT; export a zone file from the old one if possible.
- Check the new name servers answer correctly with
dig @new-ns1.example.net example.com ANY, or query each type. - Change the NS records at the registrar.
- 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
| Server | Processor | Cores / threads | Memory | Storage | Network | Per month | Smallest order |
|---|---|---|---|---|---|---|---|
| E1 | Intel Xeon E3-1240 v3 | 4 / 8 | 16 GB DDR3 | 2x 240 GB SSD | 2x 1 Gbps | $30.52 | $91.56 (3 months) |
| E2 | Intel Xeon E3-1270 v3 | 4 / 8 | 32 GB DDR3 | 1x 480 GB SSD | 2x 1 Gbps | $38.32 | $114.96 (3 months) |
| S1 | Intel Xeon E-2276G | 6 / 12 | 64 GB DDR4 | 1x 1 TB NVMe | 2x 10 Gbps | $53.32 | $53.32 (1 month) |
| S2 | Intel Xeon E-2356G | 6 / 12 | 64 GB DDR4 | 1x 1 TB NVMe | 2x 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.
OpenDNS 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.
OpenThe dig command
Query DNS precisely with dig: record types, short answers, specific resolvers, full delegation traces, reverse lookups and DNSSEC checks.
OpenDNS 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.
OpenFAQ
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.