DNS Flashcards
DNS Facts
The Domain Name System (DNS) is a hierarchical, distributed database that maps logical host names to IP addresses. With DNS, users reference computers using logical hostnames, and those hostnames are translated to IP addresses using DNS. A DNS server is responsible for performing this service on a TCP/IP network. You should know the following facts about DNS:
- A DNS server holds a database of hostnames and their corresponding IP addresses. Clients query the DNS server to get the IP address of a given host.
- Prior to using DNS servers, name resolution used a static file, called the HOSTS file, saved on each host computer. The HOSTS file is still used, but is typically only used in the absence of a DNS server.
- The DNS hierarchy is made up of the following components:
- . (dot) domain (also called the root domain)
- Top Level Domains (TLDs) (.com, .edu, .gov)
- Second-level and additional domains
- Hosts
- A fully qualified domain name (FQDN) includes the host name and the name of all domains back to root.
- DNS is a distributed database because no one server holds all of the DNS information. Instead, multiple servers hold portions of the data.
- Each division of the database is held in a zone database file.
- Zones typically contain one or more domains, although additional servers might hold information for child domains.
- DNS servers hold zone files and process name resolution requests from client systems.
- A forward lookup uses the host name (or the FQDN) to find the IP address. A reverse lookup uses the IP address to find the host name (or FQDN).
- Entries for hostnames, IP addresses, and other information in the zone database are stored in records.
- The A record maps a host name to an IP address and is used for forward lookups.
- The PTR record maps an IP address to a host name and is used for reverse lookups.
- The CNAME record provides an alternate name (an alias) for a host.
- The SRV record identifies a service, such as an Active Directory domain controller.
- Records in the DNS database are created manually, or dynamically using Dynamic DNS (DDNS). With DDNS, hosts automatically register and update their corresponding records with the DNS server.
- When a client computer needs to find the IP address for a host name, the following process is used:
- The client examines its HOSTS file for the IP address.
- If the IP address is not in the HOSTS file, it examines its local DNS cache for the IP address.
- If the IP address is not in the cache, the client sends the request to a DNS server.
- When a DNS server receives a name resolution request from a client, the following process is used:
- The DNS server examines its local DNS cache for the IP address. Note: The DNS server cache is not the same as the client cache. A Windows 2008 server has a DNS client cache, but this cache is not used to respond to client requests.
- If the IP address is not in the server cache, it checks its HOSTS file.
- If the information is not in the HOSTS file, the server checks any zones for which it is authoritative. An authoritative server is a DNS server that has a full, complete copy of all the records for a particular zone.
- If the server does not host the zones for the requested information, it uses one of the following processes:
- If configured for forwarding, the DNS server forwards the name resolution request to another DNS server. The DNS server waits for a response from the other DNS server.
- If configured for recursion (also called referral), the DNS server queries root domain servers, top-level domain servers, and other DNS servers in an iterative manner until it finds the DNS server that hosts the target domain. For example, to resolve the host name www.microsoft.com:
- The server queries a root server for the .com server.
- It then queries the .com server for the microsoft.com server.
- It then queries the microsoft.com DNS server for the www host information.
- After the information is found or received from another server, the DNS server returns the result to the client, and places the information in its server cache.
* A caching-only DNS server has no zone information; it is not authoritative for any domains. It uses information in its server cache, or forwarding or recursion, to respond to client queries.
DNS Installation Facts
You should know the following facts about DNS installation in Windows Server 2008:
- To install DNS in Windows Server 2008, you must be a member of the Domain Admins group.
- You can install DNS on any version of Windows Server 2008 except for the Windows Server 2008 Web Server edition.
- You must assign the DNS server a static (or fixed) IP address.
- To install DNS on a server, use Server Manager and add the DNS role. To add the DNS role from a command prompt (or on Server Core), run:start /w ocsetup DNS-Server-Core-Role
- Run the oclist command to get a list of services (including DNS) installed on a server.
- Windows secondary servers can transfer data from non-Windows master servers, and vice versa, as long as the BIND versions are compatible. In some cases, Windows adds non-standard records or information to zone databases that make them incompatible with non-Windows DNS servers, especially servers running older versions of DNS.
- Use the DNS snap-in or the dnscmd command to manage DNS.
Type of Zones
- A forward lookup zone provides hostname-to-IP address resolution. Clients query the DNS server with the hostname, and receive the IP address in return.
- A reverse lookup zone provides IP address-to-hostname resolution. Clients query the DNS server with the IP address, and receive the hostname in return.
Primary Zone
The primary zone is the master copy of a zone database.
- The primary zone is the only writeable copy of the zone database.
- Changes to the zone can only be made to the primary zone.
- The server that holds the primary zone is called a primary server.
- Each zone can have only a single primary zone server.
- Zone data is stored in a text file.
Secondary Zone
A secondary zone is a read-only copy of the zone database.
- Changes cannot be made to the records in a secondary zone.
- A server that holds a secondary zone is called a secondary server.
- Secondary servers copy zone data from other servers through a process called zone transfer.
- Secondary servers can copy zone data from the primary server or other secondary servers.
- Zone data is stored in a text file.
Active Directory-integrated zone
An Active Directory-integrated zone holds zone data in Active Directory instead of a text file.
- Active Directory-integrated zones are multi-master zones, meaning that changes to the zone information can be made by multiple servers. Multiple servers hold read-write copies of the zone data.
- Only DNS servers that are domain controllers can host Active Directory-integrated zones.
- Storing zone data in Active Directory provides automatic replication, fault tolerance, and distributed administration of DNS data.
- Replication of zone data occurs during Active Directory replication and is secured by Kerberos.
Stub Zone
A stub zone is a zone with only a partial copy of the zone database.
- The stub zone only contains information about the name servers that are authoritative for the zone; it does not contain information for other hosts.
- A stub zone is not authoritative for the zone; its purpose is to identify the name servers that can be contacted for full zone information.
- The stub zone is dynamic, meaning that it will keep the list of name servers for the zone updated automatically.
- Use a stub zone to forward name requests based on zones while keeping name server lists updated automatically.
GlobalNames Zone
The GlobalNames zone is a special zone in the DNS database that is used for single-label name resolution. Use the GlobalNames zone to:
- Allow clients to use simple host names without domain information for name resolution. For example, to contact a server named web1.corp.us.westsim.private, users could simply enter the single-label name web1.
- Allow DNS clients to contact NetBIOS-only hosts without the need for a WINS server.
- Allow IPv6-only hosts to contact NetBIOS hosts (IPv6 does not support the use of WINS).
Be aware of the following when using the GlobalNames zone:
- When users enter a single-label name, the client computer first tries to resolve the name using DNS and the search suffix configuration. If that process fails, the GlobalNames zone is checked (if it exists).
- Using the GlobalNames zone does not require any changes to client machines.
- Dynamic updates are not supported on the GlobalNames zone. You must manually create each record in the GlobalNames zone.
- Use the GlobalNames zone to replace WINS servers on your network only when you have a small number of hosts that do not support DNS. For a large number of NetBIOS-only hosts, or to support dynamic registration of single-label names, continue to use a WINS server.
Zone Configuration Facts
Be aware of the following when using Active Directory-integrated zones:
- Only one server can hold the primary zone file. To place zone data on multiple servers, configure secondary servers.
- Windows stores standard zone data in the %windir%\System32\Dns directory. The file is a text file with .dns added to the zone name.
- Use the DNS snap-in or the dnscmd command to manage zones and records.
- You can also edit the zone database file directly with a text editor. However, after making changes, you must reload the zone data. Using the snap-in or dnscmd prevents errors in the file and automatically reloads the database after each change.
- You can only manage Active Directory-integrated zones with the DNS console or dnscmd. There is no text file that you can manually edit.
- Primary and Active Directory-integrated zones support dynamic updates. Use an Active Directory-integrated zone to use secure dynamic updates.
- Zone information is replicated automatically with Active Directory replication. Zone data is replicated based on the replication scope:
**All domain controllers in this domain DNS zone **
- data in Active Directory is replicated to all domain controllers, even those not running DNS. Use this option if you need to support Active Directory-integrated zones running on Windows 2000 domain controllers.
All DNS servers in this domain DNS zone
- data in Active Directory is replicated to all DNS servers that are also domain controllers within the current domain. This is the default DNS zone replication setting for Server 2003 and 2008. It replicates zone data to the DomainDNSZones partition.
All DNS servers in this forest DNS zone
- data in Active Directory is replicated to all DNS servers that are also domain controllers within the forest. This provides the broadest replication scope because it replicates zone data to the ForestDNSZones partition. Use this option when you have very important records that need to be available throughout the forest.
Application partition Using an application partition, you select the specific domain controllers to which Active Directory-integrated zone data is replicated. To use an application partition:
- Create the application partition using ntdsutil or dnscmd.
- Add domain controllers to the application partition scope.
- Configure the zone to use the configured application partition.
Use an application partition to customize which domain controllers receive the DNS data. For example, you can use this option to prevent DNS zone data from being replicated to a branch office domain controller that uses a slow WAN-link connection to the main office.
*
Zone Configuration facts Part 2
Note: The broader the replication scope, the greater the network traffic created by replication.
- You can configure a secondary server to replicate from an Active Directory-integrated zone. You cannot use a primary zone and an Active Directory-integrated zone together.
- Reverse lookup zones hold PTR (pointer) records. The PTR record maps the IP address to an A record.
- A reverse lookup zone can be a primary zone, a secondary zone, or an Active Directory integrated zone.
- When you create the reverse lookup zone, you specify whether the zone is an IPv4 or IPv6 zone. The zone name uses the network portion of the IP address as follows:
IPv4 For an IPv4 zone:
Reverse the order of the decimal octets in the network ID.
Append in-addr.arpa to the zone name.
For example, the reverse lookup zone for network 216.222.14.0/24 would be: 14.222.216.in-addr.arpa
IPv6 For an IPv6 zone:
Reverse each hexadecimal number in the prefix, separating each digit with a period.
Append ip6.arpa to the zone name.
For example, the reverse lookup zone for network 1234:5678:ABCD:FF21::/64 becomes: 1.2.f.f.d.c.b.a.8.7.6.5.4.3.2.1.ip6.arpa
Record Type SOA (Start of Authority)
The first record in any DNS database file is the SOA. It defines the general parameters for the DNS zone, and it is assigned to the DNS server hosting the primary copy of a zone. There is only one SOA record, and it is the first record in the zone database file. The SOA record includes parameters such as the authoritative server and the zone file serial number.
Record Type NS (Name Server)
The NS resource record identifies all name servers that can perform name resolution for the zone. Typically, there is an entry for the primary server and all secondary servers for the zone (all authoritative DNS servers).
A (host address)
The A record maps an IPv4 (32-bit) DNS host name to an IP address. This is the most common resource record type.
AAAA (quad-A) record
The AAAA record maps an IPv6 (128-bit) DNS host name to an IP address.
MX (Mail Exchanger) record
The MX record identifies servers that can be used to deliver e-mail.