š§© Windows DNS
Windows DNS (running on the Domain Controller) is the authoritative internal DNS service for the Active Directory domain. It provides the DNS infrastructure required for domainājoined systems, authentication, service discovery, and reverse lookups.
š¦ Windows DNS Responsibilities
Windows DNS hosts and maintains all DNS zones required for Active Directory:
Forward Lookup Zones
refol.usā primary AD domain zone_msdcs.refol.usā forestāwide service location zone
These zones contain:
- A/AAAA records for domainājoined hosts
- SRV records for LDAP, Kerberos, GC, and DC discovery
- CNAMEs and other service records
- Dynamically updated records from DHCP and domainājoined clients
Reverse Lookup Zones
Windows DNS also manages reverse lookup zones such as:
20.168.192.in-addr.arpa
These zones provide:
- PTR records for IP ā hostname mapping
- Reverse lookups used by AD, logging systems, and management tools
Delegated Subzones
When a subdomain is hosted outside the Domain Controllerās DNSāfor example, on CloudflareāWindows DNS must be told to hand off authority for that subzone. This is done through DNS delegation. Without a delegation, the DC assumes full ownership of the entire parent zone and returns NXDOMAIN for valid external records. Delegation ensures queries for the external subdomain are routed to the correct nameservers while the DC remains authoritative only for the parent zone.
š See: Windows DNS Delegation
Dynamic DNS Integration
Windows DNS supports:
- Secure dynamic updates from domainājoined machines
- DHCPātriggered DNS updates
- Automatic registration of DC service records
This functionality is essential for:
- Kerberos authentication
- Group Policy processing
- Domain controller location
- AD replication
š© Why Windows DNS Must Remain Authoritative
Active Directory depends on DNS for nearly every operation.
Windows DNS is the only service that:
- Understands AD SRV record requirements
- Supports secure dynamic updates
- Maintains authoritative AD zones
- Integrates with domain controllers
- Provides correct reverse lookup behavior
- Hosts
_msdcsand other ADācritical subzones
No external DNS resolver (public or local) can replace these functions.
š§ Relationship With Piāhole
Piāhole acts as the firstāhop DNS resolver for clients on the network, but it is not authoritative for the AD domain and does not maintain internal DNS records.
Because Windows DNS is authoritative for refol.us and its subzones, Piāhole must forward all queries for the internal domain to the Domain Controller.
This ensures:
- Internal hostnames resolve correctly
- AD service records are reachable
- Kerberos and LDAP discovery works
- Reverse lookups return the correct PTRs
- DHCP dynamic DNS updates remain functional
Piāhole handles filtering and upstream resolution for public domains, while Windows DNS handles authoritative resolution for internal domains.
š See: Pi-hole Active Directory Integration
šØ Conditional Forwarding Requirement
To maintain proper AD functionality, Piāhole must be configured to conditionally forward the internal domain:
refol.us ā <Domain Controller IP>
This preserves the correct DNS flow:
Clients ā Piāhole ā Windows DNS (authoritative for refol.us)
Windows DNS then provides the authoritative internal answer, while Piāhole continues to manage all external DNS traffic.