DELTAWEB
All posts
Performance

DNS Management and Anycast DNS: A Guide for Export Websites

How anycast DNS, record audits, TTL planning before a migration, DNSSEC and secondary DNS keep an export website's domain resolvable in every market.

DNS Management and Anycast DNS: A Guide for Export Websites
12 minReading time
Arif KuruAuthor

DNS (Domain Name System) is a distributed address book that connects a domain name to the IP address of its server, to its mail servers and to its verification records. Anycast DNS is a way of publishing that address book in which the same DNS server address is announced from many servers around the world, and each query is routed to the location that is closest in network terms. Together they form the lowest layer of an export website's technical infrastructure for global reach: before a visitor's browser sees a single byte of your page, it has to resolve the address of your domain.

DNS is often treated as a setting you configure once and forget. In practice, every infrastructure step touches it: a server move, a change of e-mail provider, a new language subdomain or a switch to a CDN. This guide covers the difference between authoritative and recursive servers, what anycast changes compared with unicast, how to audit each record type, how to set TTL values ahead of a migration, and a step-by-step migration checklist.

How a DNS Query Is Resolved

When a purchasing manager in Germany clicks through to your site from a search result, the browser first needs the IP address of your domain. That question does not go straight to your DNS server. It goes to the resolver run by the user's internet provider, the company network or a public resolver they have chosen. If that resolver has no cached answer, it works its way down from the root servers to the top-level domain servers and finally to the authoritative server for your domain.

Authoritative vs Recursive Servers

Two different roles appear in that chain. A recursive resolver asks the question on behalf of the user and keeps the answer in its cache for a while. You do not run it; your buyer's network or provider does. An authoritative server is the actual source of your domain's records: it says which IP address to use and where e-mail should be delivered. When we talk about DNS management, we mean controlling that authoritative side: the records, the infrastructure that publishes them and the discipline around changing them.

The distinction has a practical consequence. When you change a record on your authoritative server, recursive resolvers around the world keep serving the old answer until their cached copy expires. What people call "DNS propagation" is really these caches emptying one after another, and the TTL value you set largely determines how long that takes.

Nameserver Delegation

Which authoritative servers your domain points to is set by the NS records in your registrar account. A common mix-up is editing records at one DNS provider while the delegation still points somewhere else: the panel looks correct, but the rest of the internet is asking a different server. The registrar account, renewal dates and delegation therefore belong to DNS management too; we cover the brand side of this in our post on domain portfolio management and protecting brand domains.

Anycast vs Unicast

With classic unicast, each IP address represents a single physical server. If your authoritative server sits in one data centre, every recursive query from Chile, Japan or South Africa has to travel to that one point. Providers try to balance this by assigning two or more nameservers, but if those servers are in the same region, the latency and outage risk seen by distant markets stays the same.

With anycast, the same IP address is announced to the internet's routing system (BGP) from many locations. Each query goes to the nearest or most suitable location according to the network topology. If one location goes offline, routing shifts to the others on its own. This brings two benefits: the resolution step takes a shorter path for distant markets, and a failure in one data centre does not make your domain unreachable.

What Anycast Does Not Fix

Anycast DNS only speeds up and hardens the address-resolution step. If the page itself is still served from a single region, server response time and content transfer do not change. DNS's share of total load time also depends on how often recursive caches hold the answer: for a popular domain, the answer usually comes from cache. That is why DNS improvements should be assessed together with measuring TTFB by country; measurement tells you whether the problem lies in resolution or in the server response.

Close-up of colourful patch cables plugged into a labelled network panel
Photo: cottonbro studio / Pexels

Record Types and What to Check

An export company's domain usually accumulates dozens of records for the website, e-mail, verification and security. The table below summarises what to look at for each record type during a regular audit.

RecordWhat it doesWhat to check
APoints a name to an IPv4 addressDoes the address still belong to a server you use; are there forgotten subdomains pointing to an old server
AAAAPoints a name to an IPv6 addressIf an IPv6 record exists, does the server really answer on it, and does it serve the same site as the A record
CNAMEPoints one name to another nameIs the target service still active; a CNAME to a closed service opens the door to subdomain takeover
MXNames the servers that receive e-mailAre the priority values correct; have the old e-mail provider's lines been removed
TXTCarries SPF, DKIM, DMARC and verification stringsIs there exactly one SPF record; can unused verification lines be cleaned up
CAALimits which certificate authorities may issue SSL certificatesIs your certificate authority listed; is your CDN's or host's authority missing
NSLists the domain's authoritative serversDoes the registrar delegation match the NS records at the DNS provider
SOAHolds zone administration data and default timersDoes the serial number increase with changes; is the negative-caching time reasonable

CNAME at the Zone Apex

DNS standards do not allow a CNAME at the zone apex (the bare domain without www) alongside the other records that must live there. CDNs and hosting services often ask you to point to a hostname, so providers offer workarounds such as ALIAS, ANAME or "CNAME flattening". The names and behaviour of these features differ between providers, so before a migration, confirm in the new provider's documentation how it handles the apex.

Forgotten Subdomains

CNAME records created for a retired campaign page, an old support portal or a deleted cloud storage bucket can be claimed by someone else once the target is released. That means a page you do not control going live under your domain. Listing every subdomain at least once a year and writing down its owner and purpose is the simplest defence against this risk.

E-mail Records at a High Level

An exporter's domain carries not only the website but also quotation and order correspondence. That makes e-mail records the part of a DNS change that breaks most easily and gets noticed last. There are three core records:

  • SPF: a TXT record that lists which servers may send e-mail on behalf of your domain. A domain should have only one SPF record; when you add a new sending tool, you extend the existing record.
  • DKIM: a record that publishes the public part of the key used to sign outgoing messages. Each sending service uses its own selector.
  • DMARC: a policy record telling receiving servers what to do based on SPF and DKIM results and where to send reports.

Correct records help receivers authenticate your messages, but they do not on their own guarantee inbox placement; deliverability also depends on sender reputation, content and other factors. For setup details and how alignment works, see our SPF, DKIM and DMARC guide. When you switch DNS providers, moving these lines completely should be a separate item in the migration plan.

How to Set TTL Values

TTL (Time to Live) states, in seconds, how long a record may stay in a recursive resolver's cache. A long TTL means more queries are answered from cache and less load reaches the authoritative server; a short TTL means changes spread faster. The right value depends on how often the record is expected to change.

TTL in Day-to-Day Operation

For records that rarely change (MX, verification TXT records, CAA), a TTL measured in hours is usually enough. A, AAAA and CNAME records for the website can also use a medium or long value while no change is planned. Keeping a very short TTL permanently causes more frequent authoritative lookups and reduces the caching benefit that anycast infrastructure provides.

Lowering TTL Before a Migration

Before a server or provider change, the most useful habit is to lower the TTL of the affected records in advance. Timing matters here: the moment you lower the TTL, caches around the world still hold the old answer stored with the old, long TTL. You therefore need to lower it at least one full current-TTL period ahead. If the current TTL is one day, do not migrate until at least a day has passed for the short TTL to spread. Once the migration is complete and the new address is verified, raise the TTL back to its normal value.

Nameserver (NS) changes work slightly differently: you do not control the TTL of the delegation records held by the top-level domain servers. During a provider switch, the old and new providers therefore need to publish the same records side by side for a while.

A vintage world map lit by string lights, with a compass and a lantern beside it
Photo: Luis Dalvan / Pexels

DNSSEC and Secondary DNS

Using DNSSEC With Care

DNSSEC cryptographically signs DNS answers so that validating recursive resolvers can check the signature. This makes it harder for a forged answer to be injected along the way and send users to another server. At the same time, DNSSEC is a layer that can make the whole domain unresolvable if it is mismanaged. The most common mistake is leaving the DS record at the registrar pointing to the old key while switching DNS providers: validating resolvers then reject the new provider's answers.

Before turning DNSSEC on, confirm in your provider's documentation whether key management is automatic, how key rollover works and which steps apply when you change providers. A safe path during a migration is often to remove the DS record first, wait for it to drop out of caches, complete the move and then re-enable DNSSEC with the new key. Details vary by provider, so check the official source for the current state.

What Secondary DNS Adds

Secondary DNS means your domain's records are also published by a second, independent provider. If the primary provider suffers a wide outage, resolvers can keep getting answers by asking the other nameservers in the delegation. Records are usually kept in sync through zone transfers or by writing to both providers through their APIs at the same time.

Secondary DNS is not a mandatory layer for every export website; it adds management overhead and complicates key handling when combined with DNSSEC. It is worth considering for companies with heavy e-mail and web traffic from several markets, where every hour of an unreachable domain means lost quotes and orders. Whichever path you choose, including DNS resolution in your uptime monitoring and alerting setup means you notice a problem before your buyers do.

DNS Migration Checklist

The sequence below gives a workable skeleton for a server move or a change of DNS provider.

  1. Export the current zone. Save every record with its TTL to a file; a screenshot of the panel is not enough.
  2. Clean up the record inventory. Note the purpose and owner of each record; question lines nobody claims before moving them.
  3. Lower TTLs in advance. Drop the TTL of the records that will change to a short value at least one full current-TTL period ahead.
  4. Check the DNSSEC status. If a DS record exists, agree the key plan for the provider change beforehand.
  5. Build the new zone completely. Create every record at the new provider, including e-mail, DKIM selectors, CAA and verification TXT records.
  6. Query the new servers directly. Before changing the delegation, send queries straight to the new nameservers and compare the answers with the old ones.
  7. Change the delegation or records. Do it at a time of relatively low traffic when the team is reachable.
  8. Verify from several regions. Query from more than one country and through different public resolvers to confirm the new answer is spreading.
  9. Test the site, SSL and e-mail. Check the homepage, language folders, form submissions, certificate renewal and inbound and outbound mail separately.
  10. Do not shut down the old provider at once. Keep the old records live for a while so caches can drain, then close the account.
  11. Restore normal TTLs. Once everything is stable, raise TTL values back to their day-to-day level.

Ownership of DNS Management

A large share of DNS problems are organisational rather than technical. The registrar account is tied to a former employee's mailbox, the agency has access to the DNS panel while the IT team runs the e-mail provider, and a record added for a new marketing tool quietly breaks SPF without anyone being told.

Access and Record Keeping

A basic discipline is to open registrar and DNS provider accounts in the company's name, tied to a mailbox that does not depend on one person, with two-factor authentication switched on and at least two authorised people able to sign in. Keeping record changes in a short change log, or managing the zone as a configuration file where the provider supports it, makes it easier to return to the previous state after a mistake.

Before your next infrastructure change, can you answer this: could you show today, from a single document, why every DNS record on your domain exists and who is allowed to change it?

FAQ

Frequently Asked Questions

  • Does anycast DNS make my website faster?

    It only shortens the step of resolving your domain, not the page load itself. Because queries reach the nearest DNS location, resolution takes a shorter path for distant markets. Server response time and content transfer still need a CDN, caching and a sensible server location.

  • Why doesn't a DNS change show up everywhere at once?

    Recursive resolvers around the world keep the old answer in cache until its TTL expires. The change on your authoritative server takes effect immediately, but each cache only asks again when its copy runs out. Lowering the TTL before the change is the way to shorten that window.

  • How far ahead of a migration should I lower the TTL?

    At least one full current-TTL period ahead. If the current TTL is one day, wait at least a day so the short TTL can spread through caches. Raise it back to its normal value once the migration is complete and verified.

  • Should every export website enable DNSSEC?

    DNSSEC protects against forged DNS answers, but if mismanaged it can make the whole domain unresolvable. It is worth considering when your provider handles key management automatically and your team knows the steps for a provider change. Check the provider's current documentation before switching it on.

  • When does secondary DNS make sense?

    It makes sense when every hour of an unreachable domain means significant lost quotes and orders. If the primary provider has a wide outage, the second provider keeps answering queries. It adds management overhead and complicates DNSSEC, so it is not mandatory for every site.

  • Can a domain have more than one SPF record?

    It should not, because multiple SPF records can cause authentication to fail. When you add a new e-mail sending tool, extend the single existing SPF record with what it needs. During a DNS migration, check separately that SPF, DKIM and DMARC lines were moved completely.

  • Can I use a CNAME on the bare domain?

    DNS standards do not allow a CNAME at the zone apex alongside the other records that must live there. Many providers offer ALIAS, ANAME or CNAME flattening to cover this need. Their behaviour differs between providers, so confirm it in the documentation before a migration.

  • How often should I audit my DNS records?

    At least once a year and before every infrastructure change. For each record, write down its purpose, its owner and whether it is still in use. CNAME records pointing to retired services come first, because they carry a subdomain takeover risk.

Related Articles

No comments yet

Leave a Comment