A business opens its first website
Meet Northstar Retail, a fictional company that sells outdoor equipment. Its team is ready to open an online shop. The designer has built the pages, the developers have prepared an application, and the business has chosen a name customers can remember. But typing that name into a browser is not enough by itself. The public internet needs a way to find the service that should answer the request.
For this guide, we will use northstar.example and names such as shop.northstar.example. These are illustrative examples: the .example domain is reserved for documentation and should not be treated as a real company domain to scan. Northstar’s IT team records the domain, the services that use it, and the people responsible for each one.
The team encounters four terms almost immediately. A domain nameis the readable name in the naming system. A subdomain is a name beneath another name in that hierarchy. A DNS record stores a particular kind of information about a name. An IP address is a network-layer address that helps route traffic. Each is part of the story, but none means exactly the same thing as the others.
A person remembers a name, DNS helps find the right connection details, and IP routing carries traffic toward a network endpoint; the application and its security controls determine what happens next.
What a domain name really is
Northstar first needs a domain. A domain name is part of the hierarchical Domain Name System (DNS), a distributed naming system used by internet applications. Names are made of labels separated by dots. In an ordinary name such as shop.example.com, the labels are read from right to left through the hierarchy: the root is above the top-level domain, which is above the registered domain and its subdomains.
A top-level domain (TLD) is the rightmost named part of a typical public domain, such as .com or .org. A domain registrar provides a way to register a name, while the registry maintains information for a TLD. The company that registers a domain and the company that hosts its DNS service do not have to be the same provider. Ownership, registration, DNS hosting, website hosting, and email hosting are separate responsibilities, even when one vendor offers several of them.
Registering a domain is like reserving a company’s public sign. It does not build the shop behind the sign, guarantee that the shop is available, or prove the shop is safe. Northstar still has to publish appropriate DNS records, configure its hosting, enable HTTPS, maintain its application, and renew the domain before it expires.
A web address also contains more than a domain. In https://shop.example.com/products, https is the scheme, shop.example.com is the hostname, and /products is the path. DNS is primarily concerned with names and records, not the page path. This distinction matters when someone says “the domain is down”: the DNS answer, TLS setup, server, application, or a particular page could be the actual problem.
Follow a name through DNS
Northstar publishes its shop and sends a test link to an employee. The employee enters the hostname into a browser. How does the computer find the service? It usually does not contact every authoritative DNS server from scratch. The device or application can use cached information, and it typically asks a recursive DNS resolver to find an answer on its behalf.
- The browser and device check what they already know. A cached answer may still be valid, so a fresh trip through DNS may not be necessary.
- The recursive resolver looks for an answer. If it has a valid cached record, it can return it. Otherwise, it follows the DNS hierarchy to find the information it needs.
- The hierarchy guides the search. Root DNS servers can direct the resolver toward the relevant TLD servers; TLD servers can direct it toward the authoritative name servers responsible for the domain.
- The authoritative DNS service answers for its zone. It returns the configured record or tells the resolver where a delegated part of the hierarchy is handled.
- The resolver returns the result. The device can then use the address information it received to try to connect to the service.
This is a simplified view, not a promise that every lookup follows five visible steps. Caches, delegation, record types, resolver behavior, and network configuration all affect the path. A device also may use an encrypted DNS transport such as DNS over HTTPS or DNS over TLS to communicate with its resolver. That protects the DNS exchange on that connection, but it does not make ordinary DNS records secret or replace HTTPS for the website itself.
After the name is resolved, the browser still has work to do. For an HTTPS site it establishes a secure connection and validates the server’s certificate according to its trust rules. DNS helps the browser find a destination; it does not itself prove the destination is trustworthy, encrypt the page, or guarantee that the application is secure.
Two people can briefly receive different DNS answers if they use different resolvers or have different cached results. The answer observed during one lookup is evidence from that moment, not a permanent record of where a service must always live.
The records behind the story
Northstar’s IT team opens its DNS management panel. Instead of finding one setting called “website address,” it sees records with different purposes. A DNS zone can contain several kinds of record because websites, email, delegation, certificate policy, and verification need different information.
- A: provides an IPv4 address for a name.
- AAAA: provides an IPv6 address for a name.
- CNAME: makes one name an alias of another DNS name. A CNAME does not directly store an IP address; the alias target must be resolved as needed.
- MX: identifies mail servers that accept email for a domain, with preference values used when choosing between multiple servers.
- NS: identifies authoritative name servers for a DNS zone or delegation.
- TXT: publishes text data used by mechanisms such as domain verification, SPF email-sending policy, and other administrative checks.
- CAA: can restrict which certificate authorities are authorized to issue certificates for a domain.
- PTR: supports reverse DNS lookups; its presence and contents depend on how the relevant reverse zone is configured.
- SOA: includes key administrative information for a zone, including the primary authoritative server field and serial/timing values used by DNS operations.
An illustrative set of records might look like the following. The values are placeholders, not live DNS data or instructions to configure a real domain:
shop.northstar.example. 300 IN A 192.0.2.10
shop.northstar.example. 300 IN AAAA 2001:db8::10
www.northstar.example. 300 IN CNAME shop.northstar.example.
northstar.example. 3600 IN MX 10 mail.northstar.example.
northstar.example. 3600 IN TXT "illustrative-verification-value"The addresses in this example use documentation ranges; they should not be read as Northstar’s real infrastructure. The record name, record type, time-to-live (TTL), class, and value each mean something. In particular, a TTL is a caching duration hint in seconds. A TTL of 300 means five minutes, but it does not guarantee every resolver will refresh at precisely the same instant.
Northstar’s team also learns that DNS records are not a list of every application or server in the company. A public zone contains the records the organization has chosen to publish there. Some services may be discovered through other authorized inventories and sources; some records may be internal-only; some names may not exist anymore. DNS provides important clues, not a complete asset register.
How subdomains grow as the company grows
The online shop becomes successful. Northstar adds an application interface for mobile clients, a help center, email, and a staging environment for developers. The team organizes these services under different hostnames, for example api.northstar.example, help.northstar.example, mail.northstar.example, and staging.northstar.example.
In api.northstar.example, the label api is a subdomain label under northstar.example. Subdomains can be several labels deep, such as v2.api.northstar.example. Each hostname can have its own DNS records, application configuration, owner, provider, and security requirements. A subdomain is a name in the hierarchy; it is not necessarily a separate registered domain or a separate physical machine.
The naming convention is useful but not authoritative. A hostname called staging might be a test system, a redirected hostname, or a forgotten entry; the label alone does not prove its role. Likewise, different hostnames may point to the same provider, while one hostname may lead through aliases or a content delivery network to several changing endpoints.
Delegation can make the structure more complex. A company may allow a separate team or service provider to manage a subdomain by delegating it to different authoritative name servers. Therefore, knowing the parent domain does not mean every record beneath it is maintained in one DNS panel. Asset owners and DNS responsibilities should be documented along with the names themselves.
What an IP address tells you—and what it does not
When Northstar’s resolver returns address information, the browser can try to connect to a destination. IPv4 addresses are commonly written as four decimal numbers, such as 192.0.2.10. IPv6 addresses use hexadecimal groups separated by colons, such as 2001:db8::10. These two formats serve the same broad networking purpose but belong to different IP versions.
It is tempting to picture a simple one-to-one map: one domain, one IP address, one server. Real deployments are often more complicated. A name can have multiple A or AAAA answers. Load balancers can distribute requests. Content delivery networks can answer from different locations. Several customer domains can share an IP address, and a single service can move between addresses as infrastructure changes. The DNS answer can also depend on resolver location and the provider’s design.
An IP address is therefore a useful observation, not proof of ownership. Finding a third-party hosting or CDN address does not mean every service on that address belongs to Northstar. Before testing anything, the team checks contracts, asset records, provider boundaries, and the scope of its authorization. It does not scan unrelated neighbors just because they share an address.
A migration changes the map
Months later, Northstar moves its shop to a new hosting provider. The new service has different network addresses, so the DNS team updates the relevant records. The website may begin working for some employees before others see the same result, because resolvers can still hold earlier answers until their cache entries expire.
If a resolver cached a record with a 300-second TTL, that resolver generally should not use that cached data beyond its TTL. But lowering a TTL right before a change may not help clients that already cached the old, longer TTL. Teams plan migrations in advance, verify the authoritative records, watch service health, and allow for cached responses instead of assuming the whole internet updates at one exact moment.
The move leaves an important operational question: what happens to the old system? The DNS entry might be removed, redirected, or left behind unintentionally. An old name can still appear in inventories, certificates, logs, documentation, or monitoring. It is not automatically a vulnerability, but it deserves an owner and a documented decision. The team confirms whether the old service is decommissioned, safely redirected, or still required before changing it.
When the defender investigates
Northstar’s security analyst now compares approved asset records with the names and DNS answers the organization expects to see. One unfamiliar hostname appears: beta.northstar.example. Its name suggests a test or preview system, but the analyst does not label it vulnerable based on a guess. First, the analyst records the observation and confirms the scope allows investigation of this asset.
The analyst checks internal service catalogs, change records, DNS history available to the company, certificate inventory, and the team responsible for the domain. Evidence shows that the hostname belonged to a preview site during a past launch. The analyst then asks whether it should still exist and whether its current target is managed. The finding is an inventory gap until investigation establishes more—not a confirmed exploit or proof of a breach.
The team confirms that the preview has been retired, but a DNS entry still points to infrastructure that no longer belongs to the project. The owner verifies the provider status and the possible impact, then approves removal of the obsolete record. After the change, the team checks authoritative DNS and later checks the affected service from an authorized vantage point. The issue is closed only after the evidence and change record are updated.
That is the practical security value of DNS knowledge: it helps a team ask better questions about exposed names, dependencies, ownership, and change history. A public record is not itself a flaw. Risk depends on what the asset does, how it is configured, whether it is authorized and maintained, and what impact a real weakness would have.
A safe discovery workflow
To apply the lesson in a real environment, Northstar uses a repeatable process rather than making assumptions from a hostname or address:
- Define written authorization. List the domains, subdomains, IP ranges, providers, activities, and time window that are approved for assessment.
- Start with known records. Review the organization’s domain registrar, DNS provider, cloud inventory, certificate records, and approved asset management sources.
- Observe with context. Record the queried name, record type, returned value, TTL, resolver or source, timestamp, and relevant limitations.
- Validate ownership and purpose. Check who operates the service and whether a third-party provider or delegated team manages it.
- Compare expectations with observations. Look for names without owners, unexplained changes, stale records, or discrepancies with the official inventory.
- Assess before assigning risk. Verify exposure and impact with authorized evidence; do not treat every public record or unfamiliar hostname as a vulnerability.
- Resolve through the owner. Document the decision, get approval for configuration changes, and avoid touching third-party systems outside the defined scope.
- Recheck and preserve evidence. Confirm the approved change took effect, update the asset register, and schedule future reviews.
If you are learning with CyberSurfaceMap, use only domains and assets you own or have explicit permission to assess. A tool can help organize observations, but it cannot replace authorization, ownership verification, or professional judgment.
For the bigger picture, continue with What Is an External Attack Surface? and the cybersecurity glossary.
To connect DNS discovery with a complete external asset workflow, continue with the attack surface mapping guide.
Mistakes to avoid
- “A domain is an IP address.” No. A domain is a name; DNS records can publish address information and other data, and the answer can change.
- “Every subdomain is a separate server.” No. Names can share infrastructure, use aliases, or be handled by a hosted platform.
- “A DNS lookup tells me every asset.” No. It shows particular information available to that query and source; it is not a complete organization inventory.
- “A public IP belongs only to one company.” Not necessarily. Shared hosting, CDNs, cloud load balancers, and other architectures can serve many customers through shared addresses.
- “A visible record proves a vulnerability.” No. A record is evidence about configuration or naming, not proof of exploitability or impact.
- “A DNS change is instant everywhere.” No. Caches and TTLs affect when different resolvers stop using prior answers.
The lessons to remember
- A domain is a human-readable name in a hierarchy; registration, DNS hosting, and website hosting are related but separate services.
- Subdomains organize names for different apps, services, teams, or environments, but their labels do not prove ownership or purpose.
- DNS uses record types for different jobs: A and AAAA provide address records; CNAME provides an alias; MX supports mail routing; NS delegates authority; TXT and other records support additional functions.
- Resolvers can use cached answers, so DNS observations should include context and a timestamp.
- One name can lead to multiple addresses and many names can share infrastructure; an IP alone is not reliable proof of ownership.
- Security discovery is a verification process: check authorization, validate ownership, investigate evidence, document decisions, and recheck approved changes.
KNOWLEDGE CHECK / 02
Test your understanding
Try to answer each question before opening its explanation.
1. What does an A record provide?
An A record provides an IPv4 address for a DNS name. An AAAA record is used for an IPv6 address.
2. Does a subdomain name prove that the service is owned by the organization?
No. The name is a clue, not proof. Validate control, service ownership, provider boundaries, and the assessment authorization before testing.
3. Why might two people receive different DNS answers at the same time?
They may use different resolvers, have different cache states, or receive answers shaped by the service provider’s geographic or traffic-management design.
4. Does finding a public IP address prove that every service on it belongs to the same organization?
No. Shared hosting and content delivery infrastructure can serve multiple customers. Attribution and scope must be validated.
5. What should a defender do when an unfamiliar subdomain appears?
Record the evidence, confirm authorization, identify the asset owner and purpose, compare it with approved records, and coordinate any change with the responsible team.
CONTINUE LEARNING
Continue learning on CyberSurfaceMap
- DNS Fundamentals and Name ResolutionFollow a browser request through recursive DNS resolution and authoritative nameservers.
- DNS Records ExplainedUnderstand address, alias, email, delegation, and policy records with practical examples.
- DNS Caching, TTL, and PropagationLearn why old answers can persist and how to troubleshoot DNS changes.
- What Is an External Attack Surface?Connect DNS observations to external asset inventory and risk prioritization.
- Subdomain Enumeration for Defensive Asset DiscoveryFollow a safe workflow for discovering and validating subdomains in your authorised scope.
- External Attack Surface Assessment MethodologySee which public DNS, passive subdomain, HTTP-header, and TLS signals CyberSurfaceMap reviews.
- SPF, DKIM, and DMARC ExplainedLearn how email authentication relies on DNS and how to roll out controls safely.
These guides build on one another. Use DNS findings only within an authorized scope and validate ownership before drawing security conclusions.
CONTINUE YOUR RESEARCH
Technical sources and standards
- Cloudflare: What is DNS?An accessible introduction to DNS and name resolution.
- ICANN: The Domain Name SystemBackground on the domain-name hierarchy and DNS.
- RFC 1034: Domain Names — Concepts and FacilitiesFoundational technical description of DNS concepts.
- RFC 1035: Domain Names — Implementation and SpecificationTechnical details on DNS implementation and message formats.
- RFC 2181: Clarifications to the DNS SpecificationAdditional clarifications for DNS behavior and records.
CONTINUE WITH CYBERSURFACEMAP
Build a clearer picture of your external assets.
Apply these concepts only to assets you own or have explicit permission to assess.
EXPLORE THE CYBERSURFACEMAP SCANNER ↗Only assess assets you own or have explicit permission to test. Sign-in may be required.