8 minutes
A secondary domain name system (DNS) server functions in a backup capacity for a primary DNS server. It automates the copying and keeping of DNS records from the primary server. The secondary DNS also offers an operational backstop for a company website, should the primary server exceed its capacity or otherwise lose functionality.
Quick query: Would you rather fly on an airplane that was equipped with one engine or two? Most passengers would probably instinctively pick the aircraft with multiple engines.
And that’s the point of having a secondary DNS. What might happen to an enterprise if a primary server becomes unavailable or otherwise compromised? Can that company (or any) afford to let business grind to a halt during that period of downtime? What negative message would that send to the users of the service? From an economic standpoint, losing the use of an organization’s primary server might prove as catastrophic as engine failure in aviation.
And that’s not even considering the other great advantage offered by adapting a secondary DNS—the masterful way it supports load-balancing efforts within the primary DNS server.
Before proceeding further, we first need to define a more basic question: What is a DNS? A domain name system acts as a translator, taking complex IP addresses and changing them into more understandable domain names.
Let’s say that you’re interested in a topic discussing a product offered by International Business Machines (IBM), but you’re not sure of its title. You type “IBM” into your service provider’s web browser, and it gets you to the company’s main page. Because of the DNS, it’s not necessary for you to type in IBM’s full IP address. The DNS assumes that that’s where you want to go based on the search term entered.
Sometimes a DNS is described as the internet’s “phonebook” because that’s like the functionality being used, although it might be better equated to an old-school telephone operator. In decades long past, the local phone operator served as a type of human DNS, taking your requested number and connecting you to the wanted phone exchange. The DNS automates that entire translation process now.
A domain name system depends on an established hierarchy that’s governed by root servers. Beneath them in the hierarchy are top-level domains (TLDs), such as those addresses ending with “.com” and “.org.” The rest of the hierarchy is made up of individual domain name servers.
A DNS system is considered a distributed database system, with each node representing a “name server,” which is the portion of the system providing the necessary translations for that particular domain name. All domains within that system contain one or more “authoritative name servers,” called that because this server publishes information about that domain, as well as any primary name servers of subordinate domains that are contained within.
A DNS operates simply:
Now, if there’s a problem with the primary DNS server—such as it has become technically unavailable or is presently overloaded—the secondary DNS server kicks into action, executing needed searches and performing necessary IP address translations. Because of the immediate operation of the secondary DNS through the failover process, users are able to access the website without experiencing any noticeable dip in functionality.
Similarly, a secondary DNS takes over the duties of the primary DNS server’s mail server (including email routing and the handling of mail exchange (MX) records) so the secondary DNS can help ensure that the ebb and flow of email traffic won’t be stopped. And in this way, the site suffers no downtime due to outages, which is the measure of true resiliency—that is, keeping things running despite adverse conditions.
Should the secondary DNS server be called into service, it is fed information by the primary DNS server. This occurs through a process known as a zone transfer. Zone file copies that are shared with the secondary DNS server through zone transfer are read-only files that can’t be altered in any way.
Zone transfers depend heavily on the use of application programming interfaces (APIs), which enable primary DNS servers to transfer DNS zone data automatically to secondary servers. In this way, both DNS servers can retain the same information. APIs give the primary server a way to contact the secondary server, so they can make sure they’re moving in lockstep with identical DNS records and noted zone transfers.
The zone-transfer process is predicated by the creation of name server (NS) records. NS records help establish which servers are designated as being authoritative for that domain, which defines the domain’s priorities. Provided the secondary DNS server’s IP address is contained within the NS records, the website retains functionality, even if its primary server is down for any reason.
Zone transfers are initiated by the issuance of a Start of Authority (SOA) record, which supplies secondary DNS servers with the data needed for secondary servers to synchronize DNS zone data, working in a type of version control that triggers updates based on the SOA record’s serial number.
This is how it registers new versions. By updating the secondary DNS service with new data from the SOA record, a domain can stay in operation should the primary server fail—keeping downed servers from impacting uptime.
Authoritative Zone Transfer (AXFR) is another protocol that lets DNS servers trade zone files. AXFR synchronizes that data across all connected servers, so they can all operate with the most current information obtainable.
The use of secondary DNS servers offers numerous advantages, including the following considerations.
The primary benefit of implementing a secondary DNS server involves the same type of rationale that prompts us to buy insurance policies and lay in emergency supplies before hazardous weather strikes. By adding a secondary DNS server, we are acknowledging an unfortunate but unavoidable fact: Machines and systems sometimes fail.
A secondary DNS server addresses this fact by providing a stop-gap solution that offers the needed redundancy when a primary DNS server fails for any reason. Having a backup solution in place offers organizations the mental security of knowing that the company’s DNS services are going to remain accessible to users.
Another useful benefit of using a DNS system involves how it enables load distribution. It achieves this by supplying multiple IP addresses for one single domain name. In turn, this lets a DNS server spread out its incoming traffic through different servers, based on the use of various algorithms.
For example, if the DNS server follows a round-robin algorithm configuration, the DNS server runs through its entire list of IP addresses and spread out the load evenly among multiple devices.
A DNS system can also be used to enhance overall security. By installing a firewall in that system, incoming traffic can either be allowed as is, filtered as needed, or disallowed entirely. Further, firewalls can be established that will only allow authorized DNS requests to reach secondary DNS servers.
Another way a DNS can support security efforts is through the development of a “hidden primary,” which is a primary DNS server that’s kept out of view from the public internet. Its IP address is not recorded among the resource records for that system. Secondary name servers handle query responses instead of the primary server. The idea is to keep the primary server better protected against cyberattacks by concealing its presence as much as possible.
Security can be further strengthened by using Domain Name System Security extensions (DNSSEC), which help screen and validate DNS requests. These extensions help confirm the genuine nature of domain-name lookups. They also assist with the prevention of cyberattacks, such as DNS spoofing, in which a site is flooded with so many counterfeit DNS requests that the system becomes overwhelmed and nonfunctional.
A secondary DNS can even help with performance because it can resolve domain-name issues faster that translates to faster delivery of information. Therefore, by implementing a secondary DNS, latency problems can be reduced.
Although the benefits of using a secondary DNS far outweigh any of its disadvantages, there are a few problems that a secondary DNS can induce. They are minor in nature.
Updates to the secondary server might be impacted slightly. Further, even though secondary servers are designed to begin operation when needed, there could be a slight hiccup in their performance as they start working.
Systems must be synchronized to help ensure optimal operation. The secondary server always requires the latest DNS records, and this can become problematic, depending on the frequency of changes.
There’s a potential that using a secondary DNS adds complexity and might require dedicated labor to manage DNS servers. However, managing multiple DNS servers successfully is key to maintaining the overall health of the domain.
Although there are numerous providers of secondary DNS services, here are a few of the most pre-eminent:
Discover how separating DNS from your CDN can lead to improved performance, cost savings and resilience. Learn why managing DNS independently allows more control over traffic steering, performance monitoring and resilience across multiple CDN providers.
Selecting the right DNS provider is crucial for managing traffic, ensuring resilience and optimizing performance. Discover the 4 essential factors you must consider, from risk profile and developer needs to managing multiple CDNs and performance requirements.
Learn how managed DNS enhances performance and security, reduces latency and streamlines your operations. Discover the differences between managed and self-managed DNS, and explore the key benefits for your business.
Explore the benefits and challenges of self-hosting authoritative DNS for large enterprises. Learn about the hidden complexities of self-hosting and why managed DNS solutions might be the better choice for scalability, resilience and cost-efficiency.
IBM NS1 Connect is a fully managed cloud service for enterprise DNS, DHCP, IP address management and application traffic steering.
Cloud networking solutions from IBM provide high-performing connectivity to power your apps and business.
Consolidate datacenter support with IBM Technology Lifecycle Services for cloud networking and more.
IBM web domains
ibm.com, ibm.org, ibm-zcouncil.com, insights-on-business.com, jazz.net, mobilebusinessinsights.com, promontory.com, proveit.com, ptech.org, s81c.com, securityintelligence.com, skillsbuild.org, softlayer.com, storagecommunity.org, think-exchange.com, thoughtsoncloud.com, alphaevents.webcasts.com, ibm-cloud.github.io, ibmbigdatahub.com, bluemix.net, mybluemix.net, ibm.net, ibmcloud.com, galasa.dev, blueworkslive.com, swiss-quantum.ch, blueworkslive.com, cloudant.com, ibm.ie, ibm.fr, ibm.com.br, ibm.co, ibm.ca, community.watsonanalytics.com, datapower.com, skills.yourlearning.ibm.com, bluewolf.com, carbondesignsystem.com, openliberty.io