Skip to main content

Authoritative DNS Servers Delegation and Internal DNS Explained

DNS (Domain Name System) plays a critical role in how users and systems find resources on the internet or within internal networks. Whether it's managing an internal domain in an enterprise or delegating parts of a domain for traffic distribution, DNS setups vary widely depending on needs. In this blog post, we’ll break down the different types of DNS setups, including authoritative DNS servers, DNS delegation, and how internal DNS functions within organizations.


1. Authoritative DNS Server

An Authoritative DNS server is the final source of truth for a specific domain. When someone queries a domain (e.g., example.com), the authoritative DNS server for that domain holds the DNS records (A records, CNAME, MX, etc.) and responds with the corresponding IP address.

Key Points:

  • Who can host it? Authoritative DNS servers are often hosted by domain registrars (e.g., GoDaddy, Namecheap) or cloud DNS providers (e.g., AWS Route 53, Cloudflare). However, organizations can also host their own authoritative DNS servers internally for greater control.
  • External DNS Resolution: Authoritative DNS servers are used to resolve public-facing domain names (e.g., www.example.com) for users all over the world.

Example:

If you purchase example.com from GoDaddy and use their DNS hosting service, GoDaddy’s authoritative DNS servers will store your DNS records and respond to DNS queries for that domain.


2. Internal DNS

An Internal DNS server is used within an enterprise network to resolve internal domain names. It is commonly found in Active Directory environments, where DNS is integrated with the network for resolving resources like workstations, servers, and internal applications.

Key Points:

  • Internal Name Resolution: Internal DNS servers typically manage private, non-public domains (e.g., company.local or internal.company.com) that are only used within the organization.
  • Not Publicly Exposed: Internal DNS servers are not exposed to the public internet. External queries for public domains like www.example.com are usually forwarded to external DNS resolvers.
  • Self-Hosted DNS: Many organizations prefer to manage their DNS infrastructure internally for better security and performance control.

Example:

Within a company, an internal DNS server might resolve the domain internal.company.com for local resources. Employees querying internal.company.com will get responses from the company’s internal DNS server, which is not accessible from the public internet.


3. DNS Delegation

DNS Delegation is the process of delegating responsibility for a subdomain to another DNS server. It’s commonly used when an organization wants a different system to manage DNS for a subdomain (e.g., delegating gslb.example.com to an F5 GTM for Global Server Load Balancing).

Key Points:

  • Delegating Subdomains: You can delegate authority for subdomains (e.g., sub.example.com) to another DNS server, while still retaining control of the main domain.
  • NS Records: Delegation is done by adding Name Server (NS) records in the authoritative DNS server for the main domain. These records point queries for the subdomain to the new authoritative DNS server.
  • Use Cases: Common in scenarios involving Global Server Load Balancing (GSLB), where DNS queries for a subdomain are delegated to a specialized system like F5 GTM, which dynamically resolves the best server based on proximity and load.

Example:

A company hosts example.com on an internal DNS server but wants to delegate gslb.example.com to F5 GTM to handle global traffic distribution. NS records are added in the internal DNS pointing gslb.example.com to F5 GTM’s DNS listeners. Now, queries for gslb.example.com are handled by F5 GTM, while example.com remains managed by the internal DNS.


4. DNS Forwarding

DNS Forwarding is used when an internal DNS server cannot resolve a query and forwards it to an external DNS server (e.g., public DNS resolvers like Google’s 8.8.8.8 or Cloudflare’s 1.1.1.1). This is commonly used in enterprise environments where internal DNS servers handle internal domains but need external DNS servers to resolve public domains.

Key Points:

  • Forwarding Queries: If an internal DNS server doesn’t have a record for an external domain (like google.com), it forwards the query to an external public DNS resolver.
  • Efficient Query Handling: Forwarding ensures that internal DNS servers don’t need to store records for external domains while still resolving public resources when needed.
  • Common in Enterprises: Internal DNS servers (like those in Active Directory) often use forwarders to resolve public domains outside the internal network.

Example:

An internal DNS server manages the domain internal.company.local. When a user queries google.com, the internal DNS forwards the request to Google’s public DNS server (8.8.8.8) to get the IP address of google.com.


5. Self-Hosted vs. Third-Party DNS Hosting

There are two main approaches for hosting authoritative DNS:

  1. Third-Party DNS Hosting: Services like GoDaddy, AWS Route 53, or Cloudflare offer DNS hosting. This is easy to set up, highly available, and widely used for public domains. These services act as the authoritative DNS server for your domain.

    Pros:

    • Simple and fast to configure.
    • High availability and distributed globally.
    • Advanced features like DDoS protection.

    Cons:

    • Limited control over DNS infrastructure.
    • Potential costs for advanced services.
  2. Self-Hosted DNS: In this case, the company hosts its own authoritative DNS servers, usually within its own infrastructure. This is common in large enterprises that need full control over their DNS configurations and data.

    Pros:

    • Full control over DNS infrastructure.
    • Enhanced security and customization.
    • Can manage both internal and external records directly.

    Cons:

    • More complex to manage and maintain.
    • Requires internal resources and expertise.
    • May lack the global reach of third-party providers.

Final Thoughts: Choosing the Right DNS Strategy

Understanding the different types of DNS (internal, authoritative, delegation) and how they interact is crucial for managing your domain’s DNS infrastructure effectively. Whether you're running an internal DNS for local name resolution or delegating subdomains to load balancers like F5 GTM, having the right DNS setup can improve performance, security, and scalability.

Organizations with complex needs often blend these DNS strategies—using internal DNS for local resources, authoritative DNS for public-facing domains, and delegation to handle specific subdomains via systems like F5 GTM for global load balancing.

By selecting the appropriate DNS setup, you can ensure that your network’s name resolution works efficiently, both inside and outside your organization.


This guide should help you navigate the world of DNS servers and delegation, making it easier to design an optimized DNS architecture that meets the unique needs of your organization.

Comments

Popular posts from this blog

How to import Putty Saved Connections to mRemoteNG

Just started using mRemoteNG and its being very cool to connect to different remote connection with different protocols e.g Window Remote Desktop, VNC to Linux, SSH, HTTP connection etc. from a single application. As new user I configured some remote desktop connection which was quite easy to figure out. But when I wanted to add SSH connections, it came in my mind to import all of the saved connections in the putty. But I couldn't figure it out how can it be done, though it was quite easy and here are the steps. Open your mRemoteNG Create a folder if you want segregation of multiple networks Create a new connection Enter the IP address of remote server under connection in Config pane Under the config pane, select protocol " SSH version 2 ".  Once you select protocol to SSH version 2 you are given option to import putty sessions, as shown in the snap below. In the above snap, I have imported CSR-AWS session from my saved sessions in Putty.

BGP MED: Managing Inbound Traffic with Multi-Exit Discriminator

The Multi-Exit Discriminator (MED) is used in BGP to control inbound traffic into your AS. It tells a neighboring AS which entry point into your network it should prefer when there are multiple links between your AS and the neighboring AS. The lower the MED value , the more preferred the path. MED is only honored between the same neighboring AS . Example Scenario : You are connected to ISP1 via two routers, CE1 and CE2 , and want to control which router ISP1 uses to send traffic into your AS. Network Topology : CE1 (connected to ISP1): 10.0.1.1/30 CE2 (connected to ISP1): 10.0.2.1/30 iBGP Router (Internal) connected to both CE1 (10.0.1.2/30) and CE2 (10.0.2.2/30). Configuration on CE1 (Lower MED, More Preferred) : Create a route map to set the MED to 50 for CE1: route-map SET_MED permit 10 set metric 50 Apply this route map to the neighbor in the BGP configuration for CE1: router bgp 65001 neighbor 10.0.1.1 remote-as 65000 neighbor 10.0.1.1 route-map SET_MED out Configuratio...