DNS Info Zone DNS Domain Name System (DNS) explained

Domain Name System (DNS) explained

Are you interested in the Domain Name System (DNS)? To get into this topic is like getting into another world—a tech one with its own rules and processes. If you are ready, just fasten your belt, and let’s go into DNS!

What is DNS?

DNS is a system, a naming database, for locating and translating Internet domain names into IP addresses. Think about it, like a directory or, more modernly, like your mobile’s contacts list where names and their corresponding numbers are correctly matched. 

DNS directory is distributed worldwide, and it works daily, helping to search and reach the millions of existing domain names every day. 

Domain Name System explained in details

What is DNS hierarchy?

DNS system is built hierarchically. 

  • Root Level. This is the highest DNS level, and here, root name servers live. They are the first step for resolving a domain name. They contain the world list of top-level domains. 
  • Site.com. The last dot on the right represents the root level.
  • Top Level Domain (TLD). A level down the root one, where TLDs live (.com, .org., .net, .gov, .uk, .fr, .mx…). Site.com. Here .com is the TLD. 
  • Second Level Domain. This part usually refers to the organization that registered the domain name through a domain name registrar. “Site” in our example: Site.com. 
  • Subdomain. Additional parts of the domain name useful for organization and navigation around the different website’s sections. Blog.site.com.

How does DNS work?

Every time you search for a website through your browser, you start a trip into the DNS (Domain Name System) world, just you don’t realize it. On the Internet, computers have their own way of communicating. They use specific protocols to connect and reach others. What an IP address does is to identify the location of computers and to guide information going around computers. 

Computers talk perfectly in such a numerical way. The problem is for humans. To memorize every long sequence of numbers needed to reach every website we want could be hard. 

There is when DNS comes to the scene, for translating and searching requested websites through matching domain names with their corresponding IP addresses. Rephrasing, when you enter a domain name into the browser’s address bar, your computer looks for the IP address of the website so it can load it for you. And that is DNS in action!

Why is DNS so important?

Web browsing relies on DNS for fast locating an IP address in order to connect and access the content. 

Besides, think that the Internet is used by millions of people around the planet, 24/7. Since more than one person can look for the same website at the exact same time, a domain name can correspond to more than one IP address (load balancing). For example, if 200 users look for “site.com” simultaneously, they can receive one of the pre-set IP addresses (different A or AAAA records) of different servers. In that case, the pressure of all that traffic can be balanced between the servers. If there are 4 servers, you can direct 50 users per each of them. 

DNS enhances the agile web performance by saving IP addresses during a defined period of time. Think in an office where all employees have to access the same video, the same day. The local DNS server will have to find the domain name just once. Upcoming requests will be served out of its cache.

What is DNS used for?

  • Making Internet searches agile and easy
  • Domain names’ resolution
  • DNS caching
  • Load balancing
  • Service’s routing
  • E-mail servers (messages’ routing)
  • Verification of services, servers, e-mails, and more

What tools to use for DNS queries?

You can check the nslookup command and how it can help you to make DNS queries to DNS servers and more. Really powerful tool.

Conclusion

There are free and paid DNS services. Paid will offer a more robust infrastructure, but a free one could be good for starters. Decide based on your business needs.

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

DNS zone transfers

DNS Zone Transfers Explained: AXFR, IXFR, and Secure ConfigurationDNS Zone Transfers Explained: AXFR, IXFR, and Secure Configuration

Authoritative DNS must remain available even when one server is offline. A common design uses one primary server where administrators update the zone and one or more secondary servers that answer queries from synchronized copies. DNS zone transfers are the mechanism that keeps those copies current.

Two transfer types do most of the work: AXFR sends a complete zone, while IXFR sends incremental changes when both servers support it and suitable history is available. Used correctly, they improve resilience and reduce administrative duplication. Configured carelessly, however, they may expose a domain’s namespace or allow unauthorized systems to request sensitive zone data.

What is a DNS zone transfer?

A DNS zone is the administrative portion of the namespace served by a particular authority. It contains resource records and an SOA record with operational values, including a serial number. The primary server holds the editable source, while secondary servers maintain read-only copies received through zone transfer.

The distinction is covered in more detail in this guide to a Master DNS zone. The terminology “primary” and “secondary” describes where zone data is edited and replicated; it does not mean that clients must always prefer one authoritative server over another. Properly delegated authoritative servers can all answer public queries for the zone.

The role of the SOA serial number

The SOA serial number indicates which version of the zone a server holds. A secondary periodically checks the primary’s SOA record according to the refresh timer. If the primary has a newer serial, the secondary requests an update. Operators must increase the serial whenever zone content changes, otherwise a secondary may have no reason to retrieve the new version.

DNS NOTIFY speeds up synchronization

Waiting for the next refresh interval can delay propagation to secondary servers. DNS NOTIFY lets the primary signal that the zone has changed. The secondary then checks the SOA serial and initiates a transfer if necessary. NOTIFY accelerates the normal process; it does not replace serial comparison or authenticate the transfer by itself.

For a concise overview of zone files, primary and secondary zones, and both transfer modes, see the ClouDNS guide to DNS zone transfers.

AXFR: a complete zone transfer

AXFR transfers the full contents of a zone over a TCP connection. The response begins and ends with the zone’s SOA record, with the remaining records sent between them. A new secondary commonly uses AXFR for its initial copy because it does not yet have a local version from which to calculate changes.

A complete transfer is also useful when an incremental update cannot be produced, when the secondary’s copy is too old, or when administrators need to restore a known-good full version. The trade-off is efficiency: large zones consume more bandwidth and processing time when every record is sent after a small change.

IXFR: an incremental zone transfer

IXFR aims to send only the differences between serial versions. For a zone that changes frequently but has many stable records, that can substantially reduce transfer size. The primary needs access to the required change history, usually through a journal or equivalent mechanism, and the secondary must identify the version it currently holds.

IXFR is not guaranteed for every request. If the primary cannot build an incremental response from the requested serial, it may fall back to AXFR. Administrators should therefore permit and plan for full transfers even when IXFR is the routine path. Monitoring should measure both successful incremental updates and unexpected full-transfer frequency.

Why unrestricted transfers are risky

A public DNS server must answer ordinary queries, but it usually should not give an arbitrary requester a complete inventory of the zone. An unrestricted AXFR can reveal hostnames and records that make reconnaissance easier. Public records are not automatically secret, yet a convenient bulk listing may expose naming patterns, forgotten systems, infrastructure roles, or records that were published unintentionally.

The greater operational risk is accepting transfers or updates from an unauthorized peer. A secure design identifies exactly which servers may exchange data and verifies that the messages came from a trusted party. Network restrictions help, but cryptographic authentication is stronger than relying only on a source IP address.

How to secure DNS zone transfers

Allow only approved secondary servers

Configure the primary with an explicit allow-list for the IP addresses of authorized secondary servers. Do not use a broad network range unless every host in that range is trusted for zone access. On the secondary, specify the intended primary addresses rather than accepting data from arbitrary systems.

Authenticate transfers with TSIG

Transaction Signatures, or TSIG, use a shared secret and a keyed message authentication code to authenticate DNS messages. When both peers are configured with the same protected key, TSIG helps verify message origin and integrity. Use a modern supported algorithm, unique keys where practical, strict file permissions, secure key distribution, and a documented rotation process.

Protect the transport path when confidentiality matters

TSIG authenticates messages but does not encrypt the zone contents. If the network path is not trusted and confidentiality is required, place the transfer inside an appropriately secured private network, VPN, or other protected channel supported by the architecture. Firewall rules should restrict DNS transfer connections as an additional layer, not as the only control.

Separate public and private namespaces

Do not publish internal-only records in a public zone merely because transfers are restricted. Split-horizon designs and separate internal zones can limit exposure, but they require careful operational ownership. Confirm that every authoritative server serves the intended view and that transfer policies match each view.

Reliable primary and secondary operation

Secondary DNS provides more than a backup file. Multiple authoritative servers can improve availability, distribute query traffic, and reduce dependence on a single network or location. This overview of Secondary DNS explains the broader role of replicated authoritative service.

Operational resilience depends on timers as well as transfers. The SOA refresh value controls how often secondaries check for changes, retry determines when to try again after failure, and expire specifies how long a secondary may continue serving the zone without contacting its source. Values should fit the change rate and recovery objectives rather than being copied blindly from another domain.

Monitoring and troubleshooting checklist

  1. Compare SOA serials. Query each authoritative server directly and confirm that the serials converge after a change.
  2. Review transfer logs. Look for refused requests, authentication failures, unexpected AXFR fallbacks, timeouts, and transfers from unapproved addresses.
  3. Test from the secondary. Confirm network reachability to the primary over TCP and verify that firewalls, access lists, and TSIG names match.
  4. Check NOTIFY handling. Make sure notifications reach the intended servers and trigger a serial check rather than being silently discarded.
  5. Alert on stale data. Detect secondaries that lag behind the expected serial before the SOA expire timer becomes critical.
  6. Audit access regularly. Remove retired secondary addresses and unused keys, then test that unauthorized AXFR requests are refused.

External checks should also verify that every delegated nameserver answers consistently. The existing guide to DNS monitoring outlines useful availability and consistency signals beyond the transfer logs themselves.

The protocol behavior and interoperability requirements for full transfers are specified in RFC 5936: DNS Zone Transfer Protocol (AXFR).

Conclusion

AXFR and IXFR keep authoritative DNS servers synchronized: AXFR supplies a complete copy, while IXFR can deliver smaller incremental changes. A dependable deployment combines correct SOA serial management, NOTIFY, explicit peer restrictions, TSIG authentication, protected key handling, and monitoring for stale or unexpected transfers. These controls preserve the availability benefit of secondary DNS without offering the full zone to unauthorized systems.

Reverse DNS

Reverse DNS: Meaning & ImportanceReverse DNS: Meaning & Importance

Reverse DNS is our topic today. So, in this article we will take a detailed look at what its main purpose is and how to check it. So let’s start.

Reverse DNS – meaning

Here it is – Reverse DNS or rDNS for short. Its goal is to connect an IP address to the domain name with which it is linked. It works in the opposite direction as Forward DNS, with the domain name pointing to the related IP address. DNS hosting firms often offer rDNS as an add-on option. If you do decide to use it, you must also set up a Master Reverse zone and PTR records. Because of them, you will be able to produce proof that the precise IP address and your domain name match.

(more…)

DNS PTR record

DNS PTR record explainedDNS PTR record explained

DNS PTR record – What is it?

DNS PTR record is a type of DNS record, which is oftentimes called pointer record. This is because it helps to associate an IP address to a domain name. The goal is to show that the specific IP address is actually related to the domain name. If somebody is checking it, this record proves that there is no scam. With the DNS PTR record it is easy to validate the different elements or additional services, such as a mail server.

Looking for more information? Take a look at this fantastic about the DNS PTR record!

(more…)