What is DNS?
DEFINITION
DNS (Domain Name System) is the internet's directory that translates domain names like example.com into the IP addresses computers use to find websites and mail servers.
The Domain Name System is a distributed directory that maps names to addresses. When someone visits example.com, their device asks a DNS resolver, which looks up the domain's authoritative name servers and returns the matching IP address. The browser then connects to that server. This lookup usually takes milliseconds and the answer is cached for a set time, called the TTL (time to live).
Your domain's DNS settings live in a zone managed at your registrar, hosting company or a dedicated DNS provider. The zone contains records that tell the internet where each service lives.
Why DNS matters
DNS quietly controls whether your website loads and whether your email arrives. A wrong record can take a site offline or send mail to nowhere, and because answers are cached, mistakes can linger for hours after you fix them.
DNS also carries email authentication records such as SPF, DKIM and DMARC, which help mailbox providers decide whether your messages are genuine or should go to spam.
Common DNS record types
An A record points a name to an IPv4 address (for example, example.com to 203.0.113.10), and an AAAA record does the same for IPv6. A CNAME makes one name an alias of another, such as www.example.com pointing to example.com or to a hosting platform's address. MX records tell the world which servers accept email for your domain. TXT records hold text used for verification and email authentication, for instance the SPF line v=spf1 include:_spf.google.com ~all. NS records list the name servers that are authoritative for the domain.
Best practices
- Lower the TTL to around 300 seconds a day before a planned migration so changes spread faster.
- Take a screenshot or export of all DNS records before changing providers or name servers.
- Set up SPF, DKIM and DMARC records for every domain that sends email.
- Keep DNS in an account protected by two-factor authentication, since whoever controls DNS controls your site.
Common mistakes
- Switching name servers without first recreating MX records, which breaks email.
- Adding a second SPF record instead of merging both services into one.
- Assuming a change failed because it has not appeared yet, when caches simply have not expired.
Frequently asked questions
How long does DNS propagation take?
Most changes are visible within minutes to a few hours, depending on the TTL of the old record and how resolvers cache it. Changing name servers at the registrar can take longer, sometimes up to 24 to 48 hours. Lowering the TTL ahead of a change and checking with an online DNS lookup tool helps you confirm progress.
What is the difference between a registrar and a DNS host?
The registrar is where you register and renew the domain. The DNS host runs the name servers that answer lookups for it. Often they are the same company, but you can point your domain to another DNS provider, such as your CDN, by changing the name server records at the registrar.
Can DNS affect website speed?
Yes, slightly. Every new visitor needs a DNS lookup before the page starts loading. A fast, well-distributed DNS provider keeps that step short, and sensible TTLs let resolvers cache answers. For most small sites the effect is small compared to image size and hosting, but slow or unreliable DNS can add noticeable delay.
Need help with this?
クラウド・DevOps by VYZEON — 自らスケールし、デプロイし、復旧するインフラを。
Fixed packages from $199. Written scope, no surprises.
