BACK

AD LAYER 3: DNS

 

Domain Name System- DNS

DNS is a Hierarchical distributed database of Fully Qualified Domain Names (FQDN) to IP mappings.

Returns IPs to answer queries presenting FQDNs
Returns IPs to answer queries presenting DNS hostnames (in the DNS server's name space)
Returns IPs to answer queries presenting partial FQDNs (in the DNS server's name space or up the DNS tree)
Returns FQDNs to answer queries presenting IPs - when reverse lookup (in-arpa) zones (PTR records) exist

DNS can be thought of of a sort of the evolved descendent of the /etc/hosts file, but vastly more manageable and scalable.

FQDN (Fully Qualified Domain Name) = hostname and full DNS suffix; FQDNs are unique in the DNS namespace. (If in an AD containing a DNS root, they are unique within that space, if in the public DNS namespace they are unique globally within that namespace.)

RFC 1034 "DOMAIN NAMES - CONCEPTS AND FACILITIES," November 1987, is an introduction to DNS <http://www.ietf.org/rfc/rfc1034.txt>

DNS domains are NOT equal to Microsoft domains. Microsoft marketing co-opted the term domain back with NT4, before adopting the later de-facto standard TCP/IP), presumably as an attempt to gain market share against UNIX and the Internet. This caused confusion then, and continues to do so now. However, now, with AD being built on DNS, usually the Microsoft domain trees parallel exactly DNS domains.

DNS defined with history and some nice pix and references - http://en.wikipedia.org/wiki/Domain_Name_System

DNS names are alpha-numeric and include the hyphen and the reserved character"." Domain names must start (and end ?) with a letter. MS DNS supports the underscore character too. Internet DNS names are limited to 255 bytes. AD DNS names are limited to 155 bytes, 63 bytes per level - this is due to the additional overhead of the DNS structures in the _msdcs zone.

One should be familiar with ccTLDs (country code Top Level Domains), gTLDs (generic Top Level Domains), and ARPA's (Advanced Research Projects Agency) role in the public DNS namespace.

DNS record types
Note that DNS hostnames are listed inside of DNS zones - together these form a FQDN
RR = Resource Record

DNS RR type Common Name Description
A Address FQDN to IP
PTR reverse IP to FQDN
SRV SeRVice service type to IP and port. The DNS service record is used to great effect with the netlogon service and Microsoft Kerberos to dynamically configure client ability to locate KDCs etc.
MX Mail eXchange domain name to its email server FQDN(s)
NS Name Server Maps a domain name to a list of DNS servers authoritative for that domain. Delegations depend on NS records.
SOA Start Of Authority Specifies the DNS server providing authoritative information about an Internet domain.
CNAME Canonical NAME alias
AAAA address IPv6 FQDN to 32-bit IPv6 IP

DNS Zones

FORWARD ZONES

REVERSE ZONES

Primary zone

Secondary zone

Zone transfers

Authoritative DNS servers

Stub zone

DNS Forwarder

DNS Conditional Forwarder

Dynamic DNS (DDNS)

Recursive DNS Queries

Iterative DNS Queries

DNS Caching

DNS Suffixes

Non-Recursive (AKA DNS Slave) Server: You configure this DNS server role by selecting the option "Do not use recursion for this domain" on the Forwarders tab. This server is one that contacts another DNS server (the forwardee) to resolve any queries for which it cannot provide an response from data that is cached on it or (authoritivly) from records in its local zones. Configuring the server as a Non-Recursive / slave server / exclusive mode, forces the server to send queries to a forwarder and not try to resolve the query if the forwarder cannot provide an answer. This eliminates the traffic that would be generated if the DNS server tried to then resolve the query on its own by contacting a root name server.

The root zone "." is represented by a dot or period. A computer that hosts a root zone cannot be configured to use a forwarder because the computer is considered to be at the top of the DNS namespace. If your network is not connected to the Internet or if your network uses a proxy server to connect to the Internet, you should have a root zone on at least one DNS server on your network. When you install the DNS Server service on a server running Windows Server 2003 and the DNS service cannot contact a root name server, the service creates a root zone on the computer. Usually this is undesirable and results in problems and troubleshooting. You can delete this zone if you do not want the server to host the/a root zone.

DNS ports

DNS scavenging

ADI-DNS:

AD Service Locators

AD Service locators. How Microsoft extended DNS SRV records to leverage DDNS to provide a IP based method (vs the 16th char NetBIOS method) for client/server clients to locate (full IP and port socket) AD services like DCs, GCs, KDCs, domains, sites, etc.. PPT made from a informative website's page on AD SRV records.

NETLOGON Service registers dynamic SRV RRs for:

DNS DELEGATIONS

EXAMPLE: A DNS zone can contain host and other zones. For example ex.net could have a record hq.ex.net which is a host named hq. (And?)/Or hq could be a sub-domain with it's own records, like cio.hq.ex.net. These sub-zones or children or sub-domains or child domains can all be hosted by the ex.net DNS zone. Maybe ns1.ex.net and ns2.ex.net are authoritative for ex.net and everything under it. Now hq.ex.net want to control its own DNS and be authoritative for it, via perhaps ns1.hq.ex.net and ns2.hq.ex.net. From ex.net, hq.ex.net is delegated to the hq.ex.net DNS servers. In the ex.net zone NS records are added for hq.ex.net. A client looking for cio.hq.ex.net gets ex.net from the whatever.net server, then hq.ex.net from ns1.ex.net, then cio.hq.ex.net from ns1.hq.ex.net - one "walks down the DNS tree" via NS delegation records.

Question: How do clients walk UP the DNS tree?

How to Enable Active Directory Integrated DNS (Optional--Recommended) http://support.microsoft.com/?kbid=237675

1. In DNS Manager, expand the DNS Server object.
2. Expand the Forward Lookup Zones folder.
3. Right-click the zone you created, and then click Properties.
4. On the General tab, the Zone Type value is set to Primary. Click Change to change the zone type.
5. In the Change Zone Type dialog box, click DS Integrated Primary, and then click OK.
6. The DNS server writes the zone database into Active Directory.
7. Right-click the zone named ".", and then click Properties.
8. On the General tab, the Zone Type value is set to Primary. Click Change to change the zone type.
9. In the Change Zone Type dialog box, DS Integrated Primary, and then click OK.

BIND and Microsoft Windows DNS

There are at least thirteen DNS root servers.

There are alternate DNS systems in place - point to them and get a whole 'nother perspective on the 'net!

See also the Name Resolution section of this site

Nice Link: Frequently asked questions about Windows 2000 DNS and Windows Server 2003 DNS - support.microsoft.com/kb/291382

BACK