Loading...
background

What Is a DNS Server? How Name Resolution Works and Why It Matters for Security

post image

What Is a DNS Server? How Name Resolution Works and Why It Matters for Security

What Is a DNS Server? How Name Resolution Works and Why It Matters for Security

Quick answer: A DNS (Domain Name System) server translates a domain name such as example.com into the IP address computers use to connect. It works as the internet's address book. Lookups pass through several kinds of DNS servers, including recursive resolvers, root servers, top-level domain servers and authoritative servers. Because DNS decides where traffic goes, it is a frequent target for attackers and a core item in any security inventory.

Key takeaways

  • A DNS server answers the question "which IP address belongs to this name?"
  • A lookup usually involves a resolver, then root, top-level domain and authoritative servers.
  • DNS records (A, AAAA, CNAME, MX, TXT, NS) control websites, email and verification.
  • Attackers target DNS through cache poisoning, hijacking, denial of service and dangling records.
  • Protecting DNS requires inventory, change control, access controls, monitoring and DNSSEC where supported.

What does a DNS server do?

People remember names. Computers route traffic by IP address. A DNS server stores or looks up the records that connect the two. When you visit a website, send an email or call an API, a DNS lookup usually happens first.

How a DNS lookup works, step by step

  1. Your device asks. Your browser or operating system checks its local cache, then sends the query to a configured recursive resolver.
  2. The resolver checks its cache. If it has a recent answer, it returns it right away.
  3. The resolver asks the root. Root servers do not know the final address, but they point to the correct top-level domain servers, such as those for .com.
  4. The resolver asks the top-level domain server. This server points to the authoritative name servers for the specific domain.
  5. The authoritative server answers. It holds the actual record, such as the IP address for the website.
  6. The answer is cached. Each record carries a time-to-live (TTL) value that controls how long resolvers keep it before asking again.

Most of this happens in milliseconds and is invisible to the user.

Types of DNS servers

TypeRole
Recursive resolverDoes the lookup work on your behalf and caches answers
Root serverPoints queries to the right top-level domain servers
Top-level domain (TLD) serverPoints queries to the authoritative servers for a domain
Authoritative serverHolds the official records for a domain and gives final answers

Organizations often run their own authoritative servers or use a hosted DNS provider. Their employees' devices usually use a recursive resolver supplied by the network or a public provider.

Common DNS record types

RecordWhat it does
AMaps a name to an IPv4 address
AAAAMaps a name to an IPv6 address
CNAMEPoints one name to another name
MXDirects email for the domain to mail servers
TXTHolds text data, often used for domain verification and email authentication
NSNames the authoritative servers for the domain

Every record is a potential point of failure or abuse, so each one should have a known owner and purpose.

Why DNS matters for security

DNS sits at the start of almost every connection, which makes it valuable to attackers.

  • Cache poisoning: a forged answer is stored by a resolver, sending users to a malicious address.
  • DNS hijacking: an attacker changes records at a registrar, DNS host or router, redirecting traffic or email.
  • Denial of service: DNS servers are flooded so that names stop resolving and services go dark.
  • Dangling records: a DNS record points to a cloud resource that was deleted. Someone else can claim that resource and take control of the subdomain.
  • Shadow records: forgotten or undocumented records keep pointing to systems no one monitors.

67cPMM041PBoGEDyYcyWNDlFiDH1G8WaQdyEmrkG.png

Screenshot_20240929_123902_1727627966.jpg

How to protect your DNS

ControlWhat it addresses
Inventory of all domains and recordsShadow and dangling records
Change control with named ownersUnauthorized edits
Registrar lock and multi-factor authenticationAccount takeover and hijacking
Monitoring for record changesEarly detection of hijacking
DNSSEC where supportedForged or altered answers
Email authentication records reviewed regularlySpoofing and phishing using your domain
Documented recovery planFast restoration after an outage or attack

How Risk Cognizance helps

Risk Cognizance treats DNS as part of your attack surface and your governance record, not as a separate IT setting. Exposed assets and the systems they point to can be tracked alongside the risks, controls and owners they affect.

One connected record. Risk Cognizance puts risk, controls, evidence, policies, vendors and live security data (attack surface, dark web and cloud posture) in one platform, so a finding in one area updates the others instead of living in a separate tool.

Agents that act, with people in control. Purpose-built AI agents map controls, collect evidence, score risk and draft fixes, while scoped permissions, an audit log of every agent action and human sign-off keep accountability with your team.

Risk Cognizance requires slightly more intentional structural setup because it functions as a true GRC tool rather than just an audit prep dashboard. That structure is what keeps DNS ownership, changes and risk connected over time.

Frequently asked questions

What is a DNS server?

A server that translates domain names into IP addresses so devices can connect to websites, email and services.

What is the difference between a DNS resolver and an authoritative DNS server?

A resolver does the lookup for your device and caches answers. An authoritative server holds the official records for a domain and gives the final answer.

What is a DNS record?

An entry that tells the system what to do with a name, such as which IP address to use (A or AAAA), where email goes (MX), or verification data (TXT).

What is DNS cache poisoning?

An attack where a forged answer is stored by a resolver, so users are sent to the wrong address without noticing.

What is DNSSEC?

A set of extensions that let resolvers verify that DNS answers are authentic and unaltered, where the domain and resolver support it.

What is a dangling DNS record?

A record that points to a resource that no longer exists. If someone else can claim that resource, they may control the subdomain.

q9lvaPrcuexBrCaAmewqHo6Zwegge4YmuYMPCoPl.png

Screenshot_20240929_123902_1727627966.jpg

How can a business reduce DNS risk?

Keep a complete inventory, control changes with named owners, lock registrar accounts, monitor for changes, review email records and document recovery steps.

See how your DNS connects to your risk

Bring your domains and key assets. We will show how DNS exposure links to risks, controls and owners.

Screenshot_20240929_123902_1727627966.jpg

Share: