In Windows, the Active Directory domains tightly integrates with Domain Name Service (DNS) to an extent that an AD is worthless without DNS in it’s domain.
Domain Name Service (DNS) is a kind of phonebook/Database that maintains the list of mappings between computer names and IP addresses.
Once an IP address is assigned by DHCP server, a computer automatically gets registered in DNS that is configured in its TCP-IP preferred primary/secondary DNS servers.
A DNS namespace consists of zones which defines scope i.e., which machines fall under that zone. Thus a DNS zone is a Text/Database file (NTDS.Dit) that defines what machines it knows about in the namespace.
Windows DNS supports four basic types of Zones. They are
- Active Directory integrated zones: DNS DB is stored as an AD object. Supports DNS zone transfers via AD replication. If all DNS servers are DCs, you don’t require 2ndary zones.
- Primary Zone: Is a master zone in a non-AD integrated DNS network. All DNS updates run through this server and this server communicates to secondary zone server for pushing updates.
- Secondary Zone: Is a read only copy of Primary Zone. Explicit zone transfer is required for pulling up updates from the primary zone
- Stub Zone: Is a special zone where you only have list of DNS servers for DNS servers n other domains. Usually, preferred while you setup communication between two domains in separate forests. Stub Zone auto populates list of all active NS servers for the configured domain.
- Classification of DNS zones by type of data they store:
- Forward Lookup Zone: Looks up a Host IP Address by Host Name. i.e., maps Host Name –> Host IP Address
- Reverse Lookup Zone: Looks up a Host Name by Host IP Address. i.e., maps Host IP Address –> Host Name
- Stub Zones: Contains list of all available NS servers to be contacted for an external domain name resolutions
- Conditional Forwarders: Contains list of NS servers to which a DNS request has to be redirected based on domain name for external domains
Note: one can’t create Stub Zone as well Conditional Forwarder a same domain. Only either of them is supported at one.
Features of Windows DNS:
- Conditional Forwarders: is a feature that lets you _redirect_ all DNS requests to other internal/external domain DNS servers by domain names. You need to manually maintain the list of servers added for DNS redirection in conditional forwarders.
- Root Hints: is a feature that lets DNS server to direct the requests to external internet world NS servers for all DNS queries that couldn’t be resolved internally
- Forwarders: Is a list of internal DNS servers to be used in case a query is not resolved in the current DNS zone
Features of Active Directory integrated zones:
- DNS zone transfers are taken care by AD replication
- Supports multi-master replication i.e., DNS updates can be done on any of the AD-integrated DNS server and they get auto replicated to other servers
- DNS updates are Secured
- Backward compatibility to support existing Secondary Zones