3.1 Setting up DNS in Active Directory and Linux

Basics

You can use Windows Active Directory to establish a domain controller to process authentication requests from users who connect to your domain and are seeking information from devices on your network. You can also configure DNS on a domain controller which will store the contents of a DNS database in Active Directory which can then be replicated to all other domain controllers that may be in your domain.

You should know the following terms:

  • Windows Active Directory
  • Forward lookup zones
  • Reverse lookup zones

Once you have completed configuring DNS in Active Directory, you should verify the DNS records have been captured correctly. Service Location (SRV) locator resource records are used to identify domain controllers for Active Directory. Review the article, How to verify that SRV DNS records have been created for a domain controller from Microsoft to verify you have configured your DNS correctly.

If you are using a Linux-based server. BIND is a nameserver service responsible for performing domain-name-to-IP conversion on Linux-based DNS servers. RedHat shares step-by-step directions for setting up DNS on a Linux-based server in the article How to use the Linux BIND command to install and configure DNS.

Forward and Reverse Lookup Zones

Your DNS server will have two main categories of lookup zones. Forward lookup zones will translate a host name to an IP address. Reverse lookup zones do the opposite, converting an IP address to a host name.

Your forward and reverse records will be stored in separate files. A file used for a forward lookup can’t perform the operation backwards. Reverse lookups can be used for helping monitor email by verifying the identity of a sending server to protect against spam or bot attacks.

The forward lookup records have a one-to-many relationship. That means that multiple host names can be mapped to a single IP address so a user can find the correct IP address by any of the names in the file. On the contrary, the reverse lookup file has a one-to-one relationship. IP addresses in a reverse lookup file are mapped to a single host name.

DNS Forwarders

If your DNS server cannot map a request back to a host, that request can be forwarded on to other servers. According to DNS Made Easy, “The DNS forwarder should be thought of as the designated server to which a particular subset of queries (either for external addresses or specific internal addresses) are forwarded by other DNS servers within the network. It then sends (forwards) those requests for resolution to other DNS servers.” 

Without DNS forwarding, all DNS servers on your network will respond to external DNS queries, which can slow down network performance and put your network at risk. If a DNS server cannot resolve an internal request, it should not send that request out beyond your internal network. That could put your network and the devices on it at risk. Having a single forwarder will consolidate those requests and that server can build up a cache of addresses to improve the response to subsequent queries in the future and conserve network resources.
 

Here are additional resources you may find useful:

Complete the following task or self-assessment:

Depending on your role, you may or may not have access to configure Active Directory. If not, collaborate with someone who does.

  • Verify that DNS records are being captured correctly.
  • Look for or ask for help to view the forward and reverse lookup zone files and review the information in them.