Home
Configuring and Troubleshooting Windows Server® 2008
Contents
1. Lesson 1 Install and Configure DNS in an AD DS Domain s Install and Manage the DNS Server Role e Create a Zone e Create Resource Records s Configure Redundant DNS Servers e Configure Forwarders e Client Configuration Now that you have reviewed the concepts terminology and processes related to DNS and name resolution you are ready to install and configure the DNS server role in an AD DS domain Objectives After completing this lesson you will be able to e Install DNS e Add DNS zones e Manage DNS records e Configure DNS server settings e Configure DNS client settings 11 4 Configuring and Troubleshooting Windows Server 2008 Active Directory Domain Services Install and Manage the DNS Server Role s Installation Methods Server Manager gt Roles gt Add Role Active Directory Domain Services Installation Wizard e DNS Manager Snap In Server Manager DNS Manager console dnsmgmt msc dnscmd exe The DNS server role is not installed on Windows Server 2008 by default Like any other functionality it is added in a role based manner when a server is configured to perform the role You can install the DNS server role by using the Add Role link in Server Manager The DNS server role can also be added automatically by the Active Directory Domain Services Installation Wizard which you can start by using dcpromo exe The domain controller options page of the wizard allows you to
2. Create a conditional forwarder for contoso com that forwards to the IPv4 address 10 0 0 10 Task 3 Validate name resolution for external domains On TST DC1 open a command prompt and type nslookup www development contoso com and then press Enter The command should return the address 10 0 0 24 Switch to DNS Manager and create a host A record for www tailspintoys com that resolves to 10 0 0 143 On NYC DC2 open a command prompt and type nslookup www tailspintoys com and then press Enter The command should return the address 10 0 0 143 Results In this exercise you configured DNS name resolution between the contoso com and tailspintoys com domains gt To prepare for the next module When you finish the lab revert the virtual machines to their initial state To do this complete the following steps 1 2 3 4 On the host computer start Hyper V Manager Right click 6425C NYC DC1in the Virtual Machines list and then click Revert In the Revert Virtual Machine dialog box click Revert Repeat these steps for 6425C NYC DC2 6425C TST DC1 and 6425C BRANCHDC02 Lab Review Questions Question In this lab you used a stub zone and a conditional forwarder to provide name resolution between two distinct domains What other options you could have used Configuring Domain Name System 11 47 Module Review and Takeaways e Review Questions Common Issues Related to DNS e Real World Issues and Scenarios s Best
3. ability to resolve names in the development contoso com domain if you had chosen a stand alone DNS zone rather than an Active Directory integrated zone Why would this happen What should you do to solve this problem 11 14 Configuring and Troubleshooting Windows Server 2008 Active Directory Domain Services Lesson 2 Integration of AD DS DNS and Windows e Integrate AD DS and the DNS Namespace e Split Brain DNS e Create a Delegation for an Active Directory Domain e Active Directory Integrated Zones Application Partitions for DNS Zones DNS Application Partitions e Dynamic Updates Background Zone Loading e Service Locator Records Demonstration SRV Resource Records Registered by AD DS Domain Controllers Domain Controller Location Read Only DNS Zones You ve learned to configure DNS in a simple environment by using many of the default settings that support Active Directory domains out of the box In this lesson you will learn more about the components and processes that support AD DS and the interrelation between AD DS and DNS Objectives After completing this lesson you will be able to e Understand the integration between AD DS and DNS e Choose a DNS domain for an Active Directory domain e Create a zone delegation for a new Active Directory domain e Configure replication for Active Directory integrated zones e Describe the purpose of SRV records in the domain controller location proces
4. m Z C V rT 5 A O 2 D ur LL O Configuring Domain Name System 11 27 Demonstration SRV Resource Records Registered by AD DS Domain Controllers In this demonstration you will e Look at the service locator SRV records registered in _tcp contoso com All domain controllers in the domain _tcp siteName _sites contoso com All domain controllers in site siteName e Simulate a client s query to DNS for domain controllers e Learn how to register SRV records dynamically or statically e View systemroot system32 config netlogon dns In this demonstration you will see the SRV records registered by a domain controller in the contoso com forest You will e Use DNS Manager to see the service locator records registered in e tcp contoso com which lists all domain controllers in the domain e tcp siteName _sites contoso com which lists domain controllers that are covering a specific site e msdcs contoso com which tracks the domain controllers in a forest and is used by DCs to locate each other e Simulate a client query for a domain controller ns lookup set type srv _Idap _tcp contoso com e Learn how domain controllers register their resource records in a dynamic update zone Delete an SRV record and then stop and restart the NetLogon service The NetLogon service registers DC records at startup e View the systemroot system32 config netlogon dns file which contains the records tha
5. when entering an email address for this field For example instead of administrator microsoft com you would use administrator microsoft com Tools Tool Used for Where to find it DNS Management e DNS administration and management Administrative Tools Console Nslookup e Use to perform query testing of the DNS Command line utility domain namespace Dnscmd e Use this command line interface to manage Command line utility DNS servers This utility is useful in scripting batch files to help automate routine DNS management tasks or to perform simple unattended setup and configuration of new DNS servers on your network Ipconfig e Use this command to view and modify IP Command line utility configuration details that the computer uses This utility includes additional command line options to provide help in troubleshooting and supporting DNS clients DNSlint e Provides several automated tests to verify Command line utility that DNS servers and resource records are configured properly and pointing to valid services e You can download this command from Microsoft at http go microsoft com fwlink LinkID 214201 Configuring Domain Name System 11 49 Windows Server 2008 R2 Features Introduced in This Module Feature Description DNS Enhancements in Windows New features in DNS that allow administrators to configure digital Server 2008 R2 signing of DNS responses cache locking devolution and socket pooli
6. AD DS In this module you will explore selected topics of advanced DNS configuration and administration Objectives After completing this lesson you will be able to Understand and configure single label name resolution Configure advanced DNS server settings Audit maintain and troubleshoot the DNS server role Describe DNS enhancements in Windows Server 2008 R2 Configuring Domain Name System 11 33 Resolving Single Label Names jalapp e Client side resolution process DG server actresses order of wae 1 Query DNS with fully qualified domain name FQDN created by adding ia The folowing Sree setings are ated to al connectors wth TORAP eraties For resson of unquaihed names DNS suffix of client ad contoso com son pman en rrecn meck One Y Accord parent mftees of the prmary ONG nsis Domain name devolution aoe ad contoso com then contoso com or DNS suffix search order PETE EITO Y Regae Pu corrections ecireses OG Manage with Group Policy Use Pe comecton Cr nA 96 regu ton 2 WINS 12 seconds timeout c s Server side resolution GlobalNames Zone Specialized zone with single label CNAME RRs WINS forward lookup If zone lookup fails DNS queries WINS In the normal course of operations a user or application may want or need to refer to a host by a single label name For example a user may open Internet Explorer and browse to http legalapp It is important tha
7. Domain Name System 11 45 Exercise 2 Explore aDomain Controller Location In this exercise you will examine the resource records that allow clients to locate domain controllers The main tasks for this exercise are as follows 1 Explore _tcp 2 Explore _tcp brancha _sites contoso com gt Task 1 Explore _tcp e Examine the records in _tcp contoso com What do the records represent gt Task 2 Explore _tcp brancha _sites contoso com e Examine the records in _tcp brancha _sites contoso com What do the records represent Results In this exercise you examined the SRV records in the contoso com domain S O j Cc V m O z lt V C O m Z r C V m U A O D mr m g 11 46 Configuring and Troubleshooting Windows Server 2008 Active Directory Domain Services Exercise 3 Configure Name Resolution for External Domains In this exercise you will configure name resolution between two completely separate domains The main tasks for this exercise are as follows 1 2 3 Configure a stub zone Configure a conditional forwarder Validate name resolution for external domains Task 1 Configure a stub zone On NYC DC2 create a stub zone for tailspintoys com that refers to the IPv4 address 10 0 0 31 as the master server Task 2 Configure a conditional forwarder On TST DC1 run DNS Management as an administrator with the user name Sara Davis_Admin and the password Pa wOrd
8. Server properties gt Advanced Manually launch scavenging Right click server e Manage the cache View the cache View menu gt Advanced Features Clear server cache Right click server or Cached Lookups node The DNS Server role is fairly self maintaining however one feature is important to configure in a zone that supports dynamic updates scavenging Scavenging is the process of deleting aged records It is important not only for client and server A records but also for SRV records registered by domain controllers In certain scenarios it s possible to have SRV records that refer to incorrect moved or removed domain controllers Scavenging ensures that they are eventually removed You can implement scavenging at the server or zone level for Active Directory integrated zones The server s Properties dialog box allows you to set server aging and scavenging properties which act as the default for Active Directory integrated zones which inherit the server properties You can override the server defaults on a zone by zone basis by using the zone s Properties dialog box For standard primary zones you must set scavenging at the zone level After you ve specified the time limits after which scavenging of records is allowed you must actually perform the scavenging This is most easily managed by configuring the server for automatic scavenging which can be done on the Advanced tab of the server s Properties dialog box You can also ma
9. has a list of root servers that is updated by Windows Update though the list does not change often Conditional forwarders Conditional forwarders point to name servers against which to query for specific domain names A conditional forwarder creates a direct shortcut to a server to query for a domain and bypasses the need to recursively query a nonconditional forwarder or to go to the root of the DNS namespace with a root hint Stub zone You learned about stub domains earlier in this module because they can be used as a form of delegation for a child domain Stub domains can also be very useful for resolving names outside your enterprise Remember that the key benefit of a stub domain is that the DNS server dynamically maintains the list of name servers for the domain You can think of a stub zone as a dynamic conditional forwarder The cost is that TCP port 53 must be open to all name servers of the domain 11 36 Configuring and Troubleshooting Windows Server 2008 Active Directory Domain Services DNS Server and Zone Maintenance e Scavenge stale resource records Important in dynamic environments particularly for SRV RRs Server aging and scavenging properties Defaults for Active Directory integrated zones Zone aging and scavenging properties Active Directory integrated zone inherits server property or per zone Primary zone ignores server property must set per zone Scavenging Configure automatic scavenging
10. msft or even the local top level domain for the Active Directory domain Due to changes in the networked world including IP version 6 IPv6 and increased interconnectivity these options should be explored only after very careful consideration of their ability to support your business requirements the benefits they might provide and the cost in terms of administration and user support j C V m O z lt V j C O m Z r C V m U A O D mr m g Configuring Domain Name System 11 17 Split Brain DNS e The zone that supports AD DS Secured from Internet exposure Dynamic Fully populated with AD DS client server and service records s The zone that supports the external namespace Secure Static Populated with the records related to external resources e Some manually maintained duplication of records such as www JA Whenever you use a domain name for an AD DS domain that is also used for connections to your network from the outside world ensure that there is a separation of DNS zones that provides different information to public and internal clients This is called split brain DNS In fact you use separate DNS servers to answer queries for the same domain name Internal DNS answers queries coming only from your local clients whereas external DNS answers queries only from external clients No client should be available to access both DNS servers at the same time The intern
11. of a child namespace to access resources in the parent namespace e DNS Cache Locking Cached records will not be overwritten for the duration of the time to live TTL value DNS Socket Pool Enables a DNS server to use source port randomization when issuing DNS queries Windows Server 2008 R2 provides several enhancements to DNS These enhancements provide additional security and functionality for this important service DNS Security Extensions As DNS security threats become more topical it is important to realize that securing the DNS is critical to securing enterprise networks and the Internet DNS is often subject to man in the middle spoofing and cache poisoning attacks that are hard to defend against DNS Security Extensions DNSSEC allows for a DNS zone and all the records in the zone to be cryptographically signed When a DNS server hosting a signed zone receives a query it returns the digital signatures in addition to the records queried for A resolver or another server can obtain the public key of the public private key pair and validate that the responses are authentic and have not been tampered with To do so the resolver or server must be configured with a trust anchor for the signed zone or for a parent of the signed zone The DNSSEC implementation in Windows Server 2008 R2 DNS server provides the ability to sign both file backed and Active Directory integrated zones through an offline zone signing tool T
12. on the local segment The DNS client does not have much time in which to resolve the name In fact after 12 seconds the resolution fails at which point it is up to the client application to determine what steps to take This means that it s possible that the client will time out before all name combinations are queried 11 34 Configuring and Troubleshooting Windows Server 2008 Active Directory Domain Services Windows Server 2008 DNS Server provides a new option to support the resolution of single label names Q the GlobalNames zone The GlobalNames zone is a specialized zone that you create on your DNS servers Typically you would want it to be replicated in the ForestDNSZones partition so that it is available to all DNS servers in the forest The zone contains CNAME records with a single label names and their resolution to fully qualified domain names When a client submits a single label query the DNS server can resolve the query by retrieving the CNAME U record from the GlobalNames zone and then looking up the appropriate A record for the FQDN To use GlobalNames you must create the GlobalNames zone and then enable its use in resolution by using the dnscmd exe command Details are available in the article listed under Additional Reading mE d d AJ A LIJIHO Configuring Domain Name System 11 35 Resolve Names Outside Your Domain e Secondary zone Create a copy of a zone from another DNS server Requir
13. the following slide 1 New client queries for all 5 Client queries for all DCs in DCs in the domain the site Retrieves SRVs from Retrieves SRVs from _tcp domain _tcp site _sites domain Attempts LDAP bind to all 6 Attempts LDAP bind to all First domain controller to 7 First DC to respond respond Authenticates client Examines client IP and subnet definitions Client forms affinity Refers client to a site 8 Subsequently 4 Client stores site in registry Client binds to affinity DC DC offline Client queries for DCs in registry stored site Client moved to another site DC refers client to another site Domain controller location will be revisited in Module 13 where you will learn how SRV records and the domain controller location process serve to localize authentication to an efficient domain controller Configuring Domain Name System 11 31 Read Only DNS Zones DNS server on an RODC with Active Directory integrated zones e RODC can resolve client queries e Changes not allowed on the read only DNS zone Records cannot be added manually Dynamic updates cannot be made s Dynamic updates are referred to writeable domain controller Client attempts update RODC returns an SOA of a writeable Windows Server 2008 domain controller e RODC performs replicate single object RSO Replicates the updated DNS record for the client it referred from the domain con
14. 008 Active Directory Domain Services Client Configuration s IP configuration of client netsh interface ipv4 set dns Local Area Connection static 10 0 0 11 primary netsh interface ipv4 add dns Local Area Connection 10 0 0 12 e Dynamic Host Configuration Protocol ej tS scope option 6 tren gtr etre cup temas f oe mem net a for the appropriate IP setings D O Ottan CRS serye address actomsticaty Use the following ONS server Preferred ONS servers w o o u anseres meen w o0 0 n A DNS server is not of much use unless clients are configured to query it The DNS client is distinct from BD all Active Directory related components of the Windows operating system Therefore a client does not assume that its domain controller is a DNS server A client should have at least two DNS servers configured s The configuration can be fixed in the client s IP configuration as shown in the screen shot The netsh exe command can also be used to configure the first and additional DNS servers for a network connection as in the following example netsh interface ipv4 set dns Local Area Connection Py static 10 0 0 11 primary netsh interface ipv4 add dns Local Area Connection 10 0 0 12 E Alternatively the DNS servers can be passed to clients through Dynamic Host Configuration Protocol DHCP by using the DHCP scope option 6 DNS server U Remember that secondary and additional DNS servers are not queried if the primary DNS serve
15. Configuring Domain Name System Module 11 Configuring Domain Name System Contents Lesson 1 Install and Configure DNS in an AD DS Domain 11 3 Lab A Install the DNS Service 11 11 Lesson 2 Integration of AD DS DNS and Windows 11 14 Lesson 3 Advanced DNS Configuration and Administration 11 32 Lab B Advanced Configuration of DNS 11 42 _ Cc V mi O z lt V j C O m Z r C V m U A O 2 D mr LL O 11 2 Configuring and Troubleshooting Windows Server 2008 Active Directory Domain Services Module Overview s Install and Configure DNS in an AD DS Domain e Integration of AD DS DNS and Windows e Advanced DNS Configuration and Administration Windows and Active Directory services have a strong dependency on Domain Name System DNS You will be already familiar with DNS as a user of DNS and as an IT professional supporting users applications services and systems that rely on DNS In this module you will learn how to implement DNS to support name resolution both within your Active Directory Domain Services AD DS domain outside your domain and your intranet Objectives After completing this module you will be able to e Describe the concepts components and processes of DNS e Install and configure DNS e Describe how AD DS DNS and Windows are integrated e Describe the advanced configuration and administration tasks of DNS Configuring Domain Name System 11 3
16. DN more difficult to enter In addition URLs and UNCs have length limits which are easier to reach with lengthy DNS suffixes e A separate domain name contoso net If you use a separate domain name for your Active Directory domain register the domain so that it is not usurped by another organization Ensure that you maintain ownership of that portion of the DNS namespace In today s increasingly connected world the lines between network intranet extranet and the Internet are blurred It is becoming difficult to maintain namespace separation and less value is contributed by it For this reason many organizations are choosing to use the most familiar domain name the public domain name The public domain name is the one most closely associated with the organization and the domain name that s easiest to type As already mentioned there are steps you must take to support this configuration but the cost of the steps is typically far less than the benefits it provides With any of these choices you must manage name resolution perimeter protection and security so there are equivalent 11 16 Configuring and Troubleshooting Windows Server 2008 Active Directory Domain Services levels of administrative effort to support any of these namespace choices Therefore use a DNS name that is easy for the users of your namespace In the early years of Active Directory it was common to suggest the use of a custom top level domain such as
17. Practices Related to DNS e Tools Review Questions Question You are conducting a presentation for a potential client about the advantages of using Windows Server 2008 R2 What are the new features that you would point out when discussing the Windows Server 2008 R2 DNS server role Question You are deploying DNS servers into an Active Directory domain and your customer requires that the infrastructure is resistant to single points of failure What must you consider while planning the DNS configuration Question You must automate a DNS server configuration process so that you can automate the deployment of Windows Server 2008 Which DNS tool can you use to do this Common Issues Related to DNS Issue Troubleshooting tip Client can sometimes cache invalid DNS records Zone transfer is not working Real World Issues and Scenarios DNS and Active Directory trusts When creating trusts between two Active Directory domains the ability for domain A to lookup records in domain B and vice versa is tied to the configuration of the DNS infrastructure Active Directory domains are accessible rarely on the Internet Therefore you need conditional forwarders stub zones or secondary zones to replicate the DNS infrastructure across domains and forests Secure zones against zone dumping 11 48 Configuring and Troubleshooting Windows Server 2008 Active Directory Domain Services By default zone transfers
18. Server Manager and Event Manager As with other event logs in Windows Server 2008 you can centralize the collection of events by using subscriptions as detailed in Module 14 This is a recommended practice because it allows you to keep an eye on a central location for signs of trouble in your DNS infrastructure Occasionally it may be useful to perform debug logging which logs details of DNS transactions You can enable debug logging in the server s Properties dialog box Also in the server s Properties dialog box you can perform test recursive and iterative queries to ensure that stub zones conditional forwarders forwarders and root hints are working as expected The integration between DNS and AD DS was detailed in Lesson 2 The dcdiag exe test DNS command performs an exhaustive series of tests to ensure that this integration is working You can perform a more granular test if you suspect a specific problem Type dediag exe for more details DNS and the DNS Server role are all about resolving client queries Sometimes you need to troubleshoot the client side experience and components of DNS You can use the following commands to troubleshoot the client side of DNS e ipconfig all This command displays the IP configuration of the client including its DNS servers Make sure that the client is using the correct servers and that those servers are accessible e NSLookup This performs DNS queries directly A typical test with NSLo
19. add the DNS server role When the DNS server role is installed you will find that the DNS Manager snap in is available to add to your administrative consoles The snap in is also added automatically to the Server Manager console and in the DNS Manager console dnsmgmt msc To administer a remote DNS server add the Remote Server Administrative tools to your administrative workstation that runs Windows Vista SP1 or later operating systems When you install the DNS server role the dnscmd exe command line administrative tool is also added DNSCmd can be used to script and automate DNS configuration At the command prompt type dnscmd exe for help Configuring Domain Name System 11 5 Create a Zone e Right click M gene Forward Lookup Zones seater Sak OR OG ree eee enn oer re ee Select zone type planner nt ad Select the type of dynamic updates you want to allow e Specify replication Active Directory integrated zones only j ai All DNS servers in forest Se Se E eae these records manualy All DNS servers in domain All domain controllers a in domain for compatibility with Windows 2000 domain controllers e Enter zone name DNS domain name Manage updates After installing a DNS server you can begin adding zones to the server To create a zone right click the Forward Lookup Zones node in the console tree and click New Zone The New Zone Wizard takes you through the process of creating a zo
20. al DNS zone must support the AD DS domain in full fidelity with all of the resource records for servers clients and services in the domain Ideally it allows secure dynamic updates and stores its zone data in Active Directory itself The externally accessible DNS zone provides to outside clients only the resource records that they require for example www and ftp This zone will typically be much smaller than the zone supporting the domain internally The external zone will typically be updated manually rather dynamically The DNS Server hosting the external zone will often be placed behind the external firewall with only port 53 opened to it There may well be some need for duplicate records in the two zones If your internal users need access to the public website such as www contoso com that resource record must exist in the internal zone against which clients query Remember because the internal DNS server is considered authoritative for the zone as is the external server it will return either a resolution for a query or a negative response indicating that the record simply doesn t exist There is no second query or iterative query against the external zone Therefore you will create records that are required internally and externally such as www in both zones 11 18 Configuring and Troubleshooting Windows Server 2008 Active Directory Domain Services Create a Delegation for an Active Directory Domain e Necessary if ch
21. an respond quickly if it receives another query requesting the same information The period of time the DNS server will keep information in its cache is determined by the TTL value for a resource record Until the TTL period expires information in the cache might be overwritten if updated information about that resource record is received If an attacker successfully overwrites information in the cache they might be able to redirect traffic on your network to a malicious site Cache locking is configured as a percent value For example if the cache locking value is set to 50 the DNS server will not overwrite a cached entry for half of the duration of the TTL By default the cache locking percent value is 100 This means that cached entries will not be overwritten for the entire duration of the TTL The cache locking value is stored in the CacheLockingPercent registry key located in HKEY_LOCAL_MACHINE SYSTEM CurrentControlSet services DNS Parameters If the registry key is not present the DNS server will use the default cache locking value of 100 DNS Socket Pool The socket pool enables a DNS server to use source port randomization when issuing DNS queries This provides enhanced security against cache poisoning attacks A DNS server running Windows Server 2008 R2 or a server that has installed security update MS08 037 will use source port randomization to protect against DNS cache poisoning attacks With source port randomization the DNS serve
22. and many other scenarios e When a domain controller needs to replicate changes from its partners e When a client computer needs to authenticate to AD DS e When a user changes the password e When an Microsoft Exchange server performs a directory lookup e When an administrator opens Active Directory Users and Computers An SRV record follows the syntax shown here protocol service name TTL class type priority weight port target An example of an SRV record is shown here _Idap _tcp contoso com 600 IN SRV O 100 389 NYC DC1 contoso com The components of the record are e The protocol service name such as the LDAP service offered by a domain controller e The time to live value in seconds e The class all records in a Windows DNS server will be IN or INternet e The type SRV e The priority and weight which help clients determine which host should be preferred 11 26 Configuring and Troubleshooting Windows Server 2008 Active Directory Domain Services e The port on which the service is offered by the server Port 389 is the standard port for LDAP ona Windows DC e The target or host of the service which in this case is the domain controller named NYC DC1 contoso com When a client process looks for a domain controller it can query DNS for an LDAP service The query returns both the SRV record and the A record for the server s that provide the requested service j C U mi O z lt V mar C O
23. are disabled in Windows Server 2008 When configuring zone transfers it is a best practice to specify the IP address of the servers to which you want to transfer zone data Do not select the Allow zone transfer to Any Server especially if the server is on the Internet With this option enabled it is possible to dump the entire zone which can provide a significant amount of information about the network to possible attackers Best Practices Related to DNS If you are using Active Directory use directory integrated storage for your DNS zones This offers increased security fault tolerance and simplified deployment and management Disable recursion for servers that do not answer client queries or communicate by using forwarders As DNS servers communicate amongst themselves by using iterative queries this ensures that the server responds only to queries that are intended for it Consider the use of secondary zones to assist in off loading DNS query traffic wherever appropriate Enter the correct email address of the responsible person for each zone you add to or manage on a DNS server Applications use this field to notify DNS administrators for a variety of reasons For example query errors incorrect data returned in a query and security problems are a few ways in which this field can be used Although most Internet email addresses contain the symbol to represent the word at in email this symbol must be replaced with a period
24. ebsites Additionally you need to configure a subdomain to support name resolution required for the testing of an application by the development team 11 12 Configuring and Troubleshooting Windows Server 2008 Active Directory Domain Services Exercise 1 Add the DNS Server Role In this exercise you will add the DNS server role to NYC DC2 examine the domain zone that is automatically populated on the DNS server and then configure NYC DC2 to use itself as its primary DNS server 1 Add the DNS server role 2 Change the DNS server configuration of the DNS client 3 Examine the domain forward lookup zone 4 Configure forwarders for Internet name resolution gt Task 1 Add the DNS server role 1 On NYC DC2 run Server Manager as an administrator with the user name Pat Coleman_Admin and the password Pa wOrd 2 Add the DNS server role to NYC DC2 3 Close Server Manager 4 Restart NYC DC2 Then log on as Pat Coleman with the password Pa wOrd This is not necessary in a production environment but it speeds up the process of restarting services and replicating the DNS records to NYC DC2 for the purposes of this exercise gt Task 2 Change the DNS server configuration of the DNS client 1 Log on to NYC DC2 as Pat Coleman with the password Pa wOrd 2 Run the command prompt as an administrator with the user name Pat Coleman_Admin and the password Pa wOrd 3 Type netsh interface ipv4 set dnsservers Local Area C
25. es permissions from the master DNS server e Forwarders Send unresolved query as recursive query to other DNS server s e Root hints Begin iterative queries against root name servers DNS server has list of root servers updated with Windows Update e Conditional forwarders Send unresolved query for specific domain to other server s e Stub zone Can be for any domain dynamically updates name service records Requires TCP Port 53 to be open to all name servers in the domain There are several ways to provide resolution for DNS records outside of your domain records for which your DNS servers are not authoritative Secondary zone The first option is to make the servers authoritative by hosting a secondary zone of the external domain This requires permission to perform a zone transfer from a name server in the zone so it is typically not an option that is available for you to use for domains outside of your enterprise Forwarders Forwarders detailed in Lesson 2 are pointers to upstream DNS servers DNS servers provided by your ISP or Internet DNS servers Your DNS server can perform queries against servers listed as forwarders If you choose to point to a DNS server other than one which you or your ISP maintain it is best to ask permission before performing recursive queries against a third party DNS server Root hints Root hints point to name servers for the root of the DNS namespace The DNS server
26. figuration of the client or through Group Policy It is the DHCP Client service that performs the registration whether the client s IP address is obtained from a DHCP server or is fixed The registration occurs during the following events e When the client starts and the DHCP Client service is started e When an IP address is configured added or changed on any network connection e When an administrator runs ipconfig registerdns The client attempts to identify the DNS server that is the primary DNS server for the zone If the zone is not an Active Directory integrated zone this may require several iterations in which the client identifies a name server sends an update and is refused because the name server hosts only a secondary zone Eventually if the zone supports dynamic updates the client reaches a DNS server that can write to the zone This is the primary server for a standard file based zone or any DC that is a name server for an Active Directory integrated zone If the zone is configured for secure dynamic updates the DNS server refuses the change The client then authenticates and re sends the update In some configurations you may not want clients to update their records even in a dynamic update zone Alternatively you can configure the DHCP server to register the records on the clients behalf By default a client registers its A host address record and the DHCP server registers the PTR pointer reverse lookup rec
27. his signed zone will then replicate or zone transfer to other authoritative DNS servers When configured with a trust anchor a DNS server is capable of performing DNSSEC validation on responses received on behalf of the client The DNS client in Windows Server 2008 R2 and Windows 7 is a nonvalidating security aware stub resolver This means that the DNS client will offload the validation responsibilities to its local DNS server but the client is capable of consuming DNSSEC responses The DNS client s behavior is controlled by a policy that determines whether the client should check for validation results for names within a given namespace The client will return the results of the query to the application only if validation has been successfully performed by the server 11 40 Configuring and Troubleshooting Windows Server 2008 Active Directory Domain Services DNS Devolution Devolution is a behavior in Active Directory environments that allows client computers that are members of a child namespace to access resources in the parent namespace without the need to explicitly provide the fully qualified domain name FQDN of the resource With devolution the DNS resolver creates new FQDNs by appending the single label unqualified domain name with the parent suffix of the primary DNS suffix name and the parent of that suffix and so on stopping if the name is successfully resolved or at a level determined by devolution settings Devolu
28. ild domain zone is hosted on different DNS servers e Create the delegation in the parent DNS domain zone Right click zone gt New Delegation Refer to the server that is will be the child domain DNS server e Configure DNS client on child domain server Primary DNS server should be the parent DNS server s Install the DNS role and zone Server Manager Add role then create primary zone or DCPromo can install DNS while promoting to a domain controller e Optional but typical configuration Reconfigure child DNS client to refer to itself as primary DNS server Add parent DNS server as a forwarder on the child server Configure new zone to be Active Directory integrated and secure dynamic update In Module 1 you created a new Windows Server 2008 AD DS domain and forest When you promoted the domain controller you received a message indicating that there was no delegation for the contoso com domain You ignored the message and the domain was established with DNS on the domain controller Clients configured with the IP address of the domain controller as their DNS server will query the DC and can resolve names in the contoso com domain However no external clients can resolve contoso com names because there is no delegation no Name Service records in the com domain that point to your authoritative DNS server This is not a problem for the labs in this course because your domain is separated from the rest of the Inter
29. ious advantages to using the primary zone as the master to reduce the latency with which record updates are replicated to secondary servers The master server must allow the secondary servers to connect and initiate a zone transfer This is configured on the Zone Transfers tab of the zone properties on the master server shown on the slide You can then add the secondary zone to the forward lookup zones of the secondary server The secondary server is configured to replicate the zone from the master server Configuring Domain Name System 11 9 Configure Forwarders e Right click DNS server gt Properties gt Forwarders s For all names not in your domain resolve using your Internet service provider s DNS servers s If forwarders are not available use root servers based on root hints I x Debug Logarg Evert Logang Montomg Secuty Feeteces Forwarden Advanced Rot Hts Forwarders ore ONS servers that tus server can use to rescive ONS quenes tor records that ts server cannot rescive 37713 1032710 FF Une oct rts no forearders are avalible Ca Note conditional forwarders are defined for a gren doman they wil be ned natead of serverievel forwarders To create or vew condtonsl forwarders navigate to the Conditional Forwarders node in the scope bee In Lesson 1 you learned that a DNS server attempts to resolve a client s query by using its local zones and cache If it is unable to do so and if the query is se
30. ller in its site If a client has not authenticated before it queries _Idap _tcp domainName and retrieves a list of all domain controllers in the domain The client attempts an LDAP bind with each and the first DC to respond is selected for the next step Note that at this point it is possible that a domain controller in another site responds first The client then attempts to authenticate with the domain controller The domain controller examines the client s IP address and compares it with the information about sites and subnets If the domain controller is not in the client s site it tells the client what site the client is in The client then queries DNS for _Idap _tcp siteName domainName which returns a list of domain controllers that are covering that site Again the client attempts an LDAP bind with each and the first one to respond is selected The client then proceeds to authenticate with that domain controller The client stores its site membership in the registry and it forms an affinity with the domain controller with which it is authenticated The next time the client needs to contact a domain controller it starts with its affinity domain controller If that domain controller is not available the client retrieves its site information from the registry and queries for _Idap _tcp siteName domainName 11 30 Configuring and Troubleshooting Windows Server 2008 Active Directory Domain Services The process is summarized in
31. n T T me ve Administrator Pat Coleman_Admin Sara Davis_Admin na Estimated time 35 minutes Some of the virtual machines should already be started and available after completing Lab A However if they are not you should go through Exercises 1 and 2 in Lab A before continuing because there are dependencies between Lab A and Lab B 1 On the host computer click Start point to Administrative Tools and then click Hyper V Manager 2 In Hyper V Manager click 6425C NYC DC1 and in the Actions pane click Start 3 In the Actions pane click Connect Wait until the virtual machine starts 4 Log on by using the following credentials e User name Pat Coleman e Password Pa wOrd e Domain Contoso 5 Open Windows Explorer and then browse to D Labfiles Lab11b 6 Run Lab11b_ Setup bat with administrative credentials Use the account Administrator with the password Pa wOrd 7 The lab setup script runs When it is complete press any key to continue 8 Close the Windows Explorer window Lab11b 9 Repeat steps 2 and 3 for 6425C NYC DC2 10 Log on by using the following credentials e User name Pat Coleman e Password Pa wOrd e Domain Contoso Configuring Domain Name System 11 43 11 Repeat steps 2 and 3 for 6425C TST DC1 12 Log on by using the following credentials e User name Sara Davis e Password Pa wOrd 13 Repeat steps 2 and 3 for 6425C BRANCHDC02 Do not log on to BRANCHDCO02 Lab Scenario You a
32. ne You will be able to select one of the three types of zones e Primary zone The DNS server will be able to write to the zone e Secondary zone The DNS server will maintain a copy of a zone hosted on another DNS server The secondary zone is read only e Stub zone The DNS server will maintain a list of name servers for another domain Stub zones will be discussed in detail later in this module You can also select to store the zone data in Active Directory if the DNS server is a domain controller This creates an Active Directory integrated zone which will be discussed later in this module If you clear this option the zone data is stored in a file rather than in Active Directory After choosing the zone type you are prompted to enter the zone name the fully qualified domain name for the zone Zone Updates When you create a zone you are also prompted to specify whether dynamic updates are supported Dynamic updates reduce the management overhead of a zone because clients can add delete and update their own resource records Dynamic updates leave open the possibility that a resource record could be spoofed For example a computer could register a record named www effectively redirecting traffic from your web server to the incorrect address 11 6 Configuring and Troubleshooting Windows Server 2008 Active Directory Domain Services To eliminate the possibility of spoofing Windows Server 2008 DNS Server service sup
33. ne to the servers that request a copy Ablow zone transfers C To any server Only to servers isted on the Name Servers tab C Only to the following servers e Master server The server from which the zone will be copied Need not be the primary server Allows Zone Transfers s Secondary server Create a new forward lookup zone Choose a secondary zone Configure the master server An enterprise should strive to ensure that a zone can be resolved authoritatively by at least two DNS servers If the zone is Active Directory integrated you can simply add the DNS server role to another domain controller in the same domain as the first DNS server Active Directory integrated zones and the replication of the DNS zone by AD DS are described in the next lesson If the zone is not Active Directory integrated you must add another DNS server and configure it to host a secondary zone Remember that a secondary zone is a read only copy of the primary zone A secondary zone can be used for name resolution but not for records management All changes are pulled from the primary zone The first step in this process is to configure the zone itself to refer to the secondary servers as name servers for the zone Then add naming service records for the secondary servers to the parent zone A secondary server copies the zone from another DNS server called the master server The master server need not be the primary server but there are obv
34. net and there is no need for a delegation However within a forest it is important that there are delegations from a parent to a child domain if the child domain s zone will be hosted on separate DNS servers If the child domain is a subdomain of the existing zone no delegation is necessary For example to add a domain europe contoso com to the domain tree and to support replication and authentication in the forest clients in contoso com must be able to resolve servers services and other records in europe contoso com Before you add a child domain to a tree or a new tree to a forest you must create a delegation in the parent domain or the forest root domain To create a delegation right click the zone for the parent domain and choose New Delegation You will be prompted to enter name servers for the new domain Refer to the server that is or will be the child domain s DNS server To create a delegation for a new domain tree or for the forest root domain itself create a new zone first in the existing root DNS zone In the new zone add an Address record that uses the full DNS name of the new domain s DNS server Then add an NS record for the new domain that refers to the full DNS name of the domain controller Configuring Domain Name System 11 19 After you ve created the delegation you are ready to configure the server that will be the child domain s Q first domain controller First configure its DNS server to point t
35. ng S j V m O z lt V ua C O m Z C V m U A O 2 E _ LL O 11 50 Configuring and Troubleshooting Windows Server 2008 Active Directory Domain Services GSLidiHOdd ASN LNAGNALS AINO ASN LOW
36. ns for DNS Zones e Store DNS zones in one of the default application partitions Replication scope is the difference e Create a custom partition and define its scope An Active Directory integrated zone stores its records in the AD DS database The records can be stored in one of several partitions DomainDNSZone partition This partition is replicated to all domain controllers that are DNS servers within the domain ForestDNSZones partition This partition is replicated to all domain controllers that are DNS servers in the forest These default partitions are created when DNS is installed and configured during AD DS installation You can use the DNS management tool or the dnscmd exe command to create the partitions after AD DS is installed Domain partition This partition which also contains records for objects users and computers is replicated to all domain controllers whether or not they are DNS servers In Windows 2000 DNS zones were stored in the Domain NC If you have Windows 2000 domain controllers that are DNS servers use this replication option to support those systems e Your choice of partition is primarily a matter of selecting the replication topology you want for your DNS zones Of course the zone must be replicated to a DNS server for that DNS server to be authoritative for the zone If a DNS server does not have a replica of the zone it must have a forwarder or stub zone to perform recursive que
37. nt as a recursive query the DNS server performs the query on behalf of the client To configure a DNS server to effectively perform a recursive query the first method is to add forwarders to the DNS server Forwarders are pointers to other DNS servers Typically these servers are hosted by your Internet service provider ISP or they are configured as upstream DNS servers in your enterprise DNS infrastructure For example your Active Directory domain may use Windows DNS Server service to resolve names within the domain and then forward queries to your corporate DNS servers which host zones for other enterprise domains Forwarders are similar to the DNS servers that you configure in the IP properties of a network connection That list of DNS servers is used by the DNS Client service The list is not shared with the DNS server service Forwarders serve the same purpose for the DNS server service If forwarders are not configured the server will attempt to query a name server for the root of the DNS namespace These root servers are maintained as root hints Although the root DNS name servers do not change frequently they can change occasionally Windows Update will include updates to the root hints There are several mechanisms with which a recursive query can be made more efficient including conditional forwarders and stub zones These options will be discussed in Lesson 4 11 10 Configuring and Troubleshooting Windows Server 2
38. nually initiate scavenging by right clicking the server in the DNS Manager snap in Another server maintenance task that you may need to perform is viewing or flushing the cache This is useful when you discover that clients are obtaining incorrect resolutions from a server for zones for which it is not authoritative You can view the Cached Lookups of a server by clicking the View menu in the DNS Manager snap in and clicking Advanced Features You can then clear the server cache if necessary by right clicking the server node or the Cached Lookups node in the console tree Configuring Domain Name System 11 37 Test and Troubleshoot DNS Server and Client Server Troubleshooting e Event logs Visible in DNS Manager Server Manager and Event Viewer e Debug logging Server Properties dialog box e Recursive and iterative query tests Server Properties dialog box Client Troubleshooting s ipconfig all NSLookup set server IP address Default Primary DNS Server Ai type record type Default A record e ipconfig displaydns Display client DNS resolver cache dcdiag exe test DNS s ipconfig flushdns Purge client Performs a wide variety of DNS resolver cache tests to ensure that AD DS and DNS are working well together e ipconfig registerdns Register siNetwork Monitor client DNS records DNS events are logged in the DNS log which is displayed in DNS Manager
39. o the DNS server on which you created the delegation Install the DNS role by using Server Manager and then create the primary zone for the child domain Alternatively use the Active Directory Domain Services Installation Wizard dcpromo exe which can install DNS as part of the installation of AD DS After the child domain has been created reconfigure the child DNS server to refer to itself as its primary DNS server Typically you will add the parent DNS server as a forwarder conditional forwarder or stub zone to the child DNS server You must ensure one way or another that systems in the child domain can resolve names in the parent domain Finally use an Active Directory integrated zone that supports secure dynamic updates for the child domain r d d AJ A LIJIHO 11 20 Configuring and Troubleshooting Windows Server 2008 Active Directory Domain Services Active Directory Integrated Zones e DNS zone data is stored in AD DS e Allows multimaster writes to zone s Replicates DNS zone information by using AD DS replication Leverages efficient replication topology Uses efficient Active Directory replication processes Incremental updates e Enables secure dynamic updates contoso com e Security Can delegate zones domains RRs In Lesson 1 you learned that Windows DNS Server can store zone data in the AD DS database when the DNS server is an AD DS domain controller This creates an Active Directory integ
40. okup includes set server IP address The preceding query specifies the DNS server to query The default is the primary DNS server of the client When a response is received NSLookup identifies the server that returned the response If a reverse lookup zone is not available with a PTR record containing the IP address of the DNS server the DNS server s name will display as Unknown but its IP address will be identified The next line is 11 38 Configuring and Troubleshooting Windows Server 2008 Active Directory Domain Services set type record type This line sets the type of record to query such as SRV The default is an address host A record The last line is record This specifies the record to query which is typically a fully qualified domain name when the resolution of an A record is being tested e ipconfig displaydns This command shows the contents of the DNS resolver cache on the client e ipconfig flushdns This purges the client s DNS resolver cache e ipconfig registerdns This command triggers a dynamic update in which the client registers its A records C V m O z x lt V C O m Z Cc V m U A O D ur m g Configuring Domain Name System 11 39 DNS Enhancements in Windows Server 2008 R2 e DNS Security Extensions DNSSEC DNS zone and all the records in the zone are cryptographically signed e DNS Devolution Allows client computers that are members
41. onnection static 10 0 0 11 primary and then press Enter 4 Type netsh interface ipv4 add dnsservers Local Area Connection 10 0 0 10 and then press Enter gt Task 3 Examine the domain forward lookup zone 1 Run DNS Manager as an administrator on NYC DC1 with the user name Pat Coleman_Admin and the password Pa w0rd 2 Examine the SOA NS and A records in the contoso com forward lookup zone gt Task 4 Configure forwarders for Internet name resolution Configure two forwarders for NYC DC2 192 168 200 12 and 192 168 200 13 Because these DNS servers do not actually exist the Server FQDN will display either lt Attempting to resolve gt or lt Unable to resolve gt In a production environment you would configure forwarders to upstream DNS servers on the Internet usually those provided by your ISP Results In this exercise you added the DNS server role to NYC DC2 and simulated the configuration of forwarders to resolve Internet DNS names Configuring Domain Name System 11 13 Exercise 2 Configure Forward Lookup Zones and Resource Records In this exercise you will add a forward lookup zone for the development domain at Contoso Ltd You will then add a host and CNAME record to the zone and confirm that name resolution for the new zone is functioning The main tasks for this exercise are as follows 1 Create a forward lookup zone 2 Create Host and CNAME records 3 Test name resolution gt Task 1 Create a for
42. ord PTR records are discussed in Lesson 4 11 24 Configuring and Troubleshooting Windows Server 2008 Active Directory Domain Services Background Zone Loading When a domain controller with Active Directory integrated DNS zones starts it Enumerates all zones to be loaded e Loads root hints from files or AD DS servers e Loads all zones that are stored in files rather than in AD DS e Begins responding to queries and remote procedure calls RPCs Starts one or more threads to load the zones that are stored in AD DS It is possible for a zone that supports an AD DS domain to be quite large particularly if the A records for Dp clients are maintained in a large domain In the previous versions of Windows it took a long time for the DNS Server service to start when it had to load a large zone Windows Server 2008 loads zones in the background allowing the DNS server to start responding to L queries very quickly If a query is sent for a zone that is not yet loaded the server works to load that zone Configuring Domain Name System 11 25 Service Locator Records SRV resource records allow DNS clients to locate TCP IP based services SRV resource records are used when 1 service name Example of an SRV record A Service Locator SRV resource record resolves a query for a network service allowing a client to locate a host that provides a specific service SRV records are used in the following
43. ports secure dynamic updates A client must authenticate prior to updating its resource records so the DNS server knows whether the client is the same computer that has the permission to modify the resource record j Cc V m O z lt V mar C O m Z C V m U A O 2 D _ LL O Configuring Domain Name System 11 7 Create Resource Records e Right click the zone s Dialog box appears specific to the record type you choose New Host a3 In most environments even those with dynamic updates enabled there will be the need to add resource records to a zone To create a resource record right click the zone and choose the type of record you wish to create A dialog box appears with input controls that are appropriate for the type of record you are adding Besides entering a resource record name and an IP address you can manually set the TTL period and you can configure options for updating records and pointer records S j C V m O z lt V ntr C O m Z mr C V m U AJ O D LL O 11 8 Configuring and Troubleshooting Windows Server 2008 Active Directory Domain Services Configure Redundant DNS Servers s Active Directory integrated zone Add DNS server to another domain controller e Standard primary zone Add NS records for secondary servers Sat of Authorty SOA Name Servers Zone Transen Securty Azone transfer sends a copy of the zo
44. r returns a y negative response Additional DNS servers are queried only if the primary DNS server does not respond A and is offline q gu Configuring Domain Name System 11 11 Lab A Install the DNS Service e Exercise 1 Add the DNS Server Role e Exercise 2 Configure Forward Lookup Zones and Resource Records Logon information 6425C NYC DC1 6425C NYC DC2 Do not log on Pat Coleman Pat Coleman_Admin Estimated time 30 minutes Lab Setup For this lab you will use the available virtual machine environment Before you begin the lab you must complete the following steps 1 On the host computer click Start point to Administrative Tools and then click Hyper V Manager 2 In Hyper V Manager click 6425C NYC DC1 and in the Actions pane click Start 3 In the Actions pane click Connect Wait until the virtual machine starts Do not log on to NYC DC1 until directed to do so 4 Repeat steps 2 and 3 for 6425C NYC DC2 5 Log on to NYC DC2 by using the following credentials e User name Pat Coleman e Password Pa wOrd e Domain Contoso Lab Scenario You are an administrator at Contoso Ltd You recently added a second domain controller to your enterprise and you want to add redundancy to the DNS server hosting the domain s zone Currently the only DNS server for the contoso com zone is NYC DC1 You need to ensure that clients that resolve against the new DNS server NYC DC2 can access Internet w
45. r will randomly pick a source port from a pool of available sockets that it opens when the service starts Instead of using a predicable source port when issuing queries the DNS server uses a random port number selected from this pool known as the socket pool The socket pool makes cache poisoning Configuring Domain Name System 11 41 attacks more difficult because an attacker must correctly guess the source port of a DNS query in addition to a random transaction ID to successfully execute the attack The default size of the socket pool is 2 500 When you configure the socket pool you can choose a size value from 0 to 10000 The larger the value the greater protection you will have against DNS spoofing attacks If you configure a socket pool size of zero the DNS server will use a single socket for remote DNS queries If the DNS server is running Windows Server 2008 R2 you can also configure a socket pool exclusion list a C V m O z lt V j C O m Z r C V m U A O 2 D mr LL O 11 42 Configuring and Troubleshooting Windows Server 2008 Active Directory Domain Services Lab B Advanced Configuration of DNS e Exercise 1 Enable Scavenging of DNS Zones e Exercise 2 Explore Domain Controller Location e Exercise 3 Configure Name Resolution for External Domains Logon information 6425C NYC DC1 6425C NYC DC2 6425C TST DC1 6425C BRANCHDCO2 Pat Coleman Pat Coleman Sara Davis Do not Logo
46. rated zone The benefits of Active Directory integrated zones are significant Multimaster updates Unlike standard primary zones which can only be modified by a single primary server Active Directory integrated zones can be written to by any DC to which the zone is replicated This removes a single point of failure in the DNS infrastructure It is particularly important in geographically distributed environments that use dynamic update zones because it allows clients to update their DNS records without having to connect to a potentially distant primary server Replication of DNS zone data by using AD DS replication In Module 13 you will learn about the efficient topology generating and replication mechanisms of AD DS replication One of the characteristics of Active Directory replication is attribute level replication in which only changed attributes are replicated An Active Directory integrated zone can leverage these benefits of Active Directory replication rather than replicating the entire zone file as in traditional DNS zone transfer models Secure dynamic updates An Active Directory integrated zone can enforce secure dynamic updates Granular security As with other Active Directory objects an Active Directory integrated zone allows you to delegate administration of zones domains and resource records by modifying the access control list ACL on the object Configuring Domain Name System 11 21 Application Partitio
47. re the DNS administrator at Contoso Ltd You want to improve the health and efficiency of your DNS infrastructure by enabling scavenging and creating a reverse lookup zone for the domain You also want to examine the records that enable clients to locate domain controllers Finally you are asked to configure name resolution between contoso com and the domain of a partner company tailspintoys com air a wn Mm O z lt V air g Mm za a V Mm U N O i oy mr m O 11 44 Configuring and Troubleshooting Windows Server 2008 Active Directory Domain Services Exercise 1 Enable Scavenging of DNS Zones In this exercise you will enable scavenging of DNS zones to remove stale resource records The main tasks for this exercise are as follows 1 Enable scavenging of a DNS zone 2 Configure default scavenging settings gt Task 1 Enable scavenging of a DNS zone 1 On NYC DC2 run DNS Manager as an administrator with the user name Pat Coleman_Admin and the password Pa wOrd 2 Enable scavenging for the contoso com zone Accept the defaults for scavenging related intervals gt Task 2 Configure default scavenging settings e Configure NYC DC2 so that by default scavenging is enabled for all zones Accept the defaults for scavenging related intervals Results In this exercise you configured scavenging of the contoso com domain and enabled scavenging as the default for all zones Configuring
48. ries for names in the zone Custom application partition If the default application partitions do not give you the replication model that you require to support your DNS infrastructure you can create a custom application partition for which you can specify which servers will replicate the partition 11 22 Configuring and Troubleshooting Windows Server 2008 Active Directory Domain Services DNS Application Partitions e Create an application partition dnscmd ServerName CreateDirectoryPartition FQDN e Change zone replication scope Properties of zone gt General gt Change replication You can create an application partition by using the dnscmd exe command as in the following example dnscmd NYC DC1 contoso com createdirectorypartition MyZone contoso com You can change the replication scope of a zone from its properties Click the Change button next to Replication as shown in the figure on the slide j C V m O z lt V ntr C O m Z mr C V m U AJ O 2 D LL O Configuring Domain Name System 11 23 Dynamic Updates DHCP Client service registers records for client e During client startup If new changed IP address fixed DHCP on any network connection If ipconfig registerdns is run GE DNS Server Resource Records By default Windows systems attempt to register their records with their DNS server This behavior can be modified in the IP con
49. s e Understand read only DNS servers Configuring Domain Name System 11 15 Integrate AD DS and the DNS Namespace e An Active Directory domain must have a DNS name e Active Directory domain name vs external DNS namespace Active Directory uses same domain name Active Directory uses subdomain of public domain Active Directory uses separate domain name contoso com Active Directory requires DNS and an AD DS domain must have a DNS domain name Because DNS is also used as a globally available standards based namespace you should carefully consider where in the namespace you set your AD DS domain Let s assume that you are an administrator of Contoso Ltd which maintains the registered domain name contoso com and which has a website at www contoso com If you are planning the namespace for your AD DS domain you could choose one of the following e The same domain name as your external DNS domain name contoso com If you use the same namespace you have to implement split brain DNS which is described in the next section e A subdomain of your external domain name ad contoso com If you use a subdomain of a registered domain name you can proceed easily because you are the owner of that portion of the DNS namespace You should be careful however of going too deep in the DNS namespace Users and admins alike will be typing fully qualified domain names frequently and a lengthy domain suffix will make each FQ
50. t must be registered manually if the zone does not support dynamic updates Demonstration Steps 1 Run DNS Management with administrative credentials by using the account Pat Coleman_Admin with the password Pa wOrd Then in the console tree expand NYC DC1 Forward Lookup Zones and contoso com and then click the _tcp node Examine the SRV records 11 28 Configuring and Troubleshooting Windows Server 2008 Active Directory Domain Services TOn OD NOY ew 11 12 13 In the console tree expand NYC DC1 Forward Lookup Zones contoso com _sites Default First Site Name and then click the _tcp node Examine the SRV records Run Command Prompt with the administrative credentials used earlier Type nslookup and then press Enter Type set type srv and then press Enter Type _Idap _tcp contoso com and then press Enter Switch to DNS Manager Expand NYC DC1 Forward Lookup Zones and contoso com and then click the _tcp node Right click the SRV records for NYC DC1 contoso com and then click Delete Stop and start the netlogon service In the DNS console tree right click the _tep node and then click Refresh Examine the SRV records forNYC DC1 contoso com Open systemroot system32 config netlogon dns file in notepad Examine the default SRV records Configuring Domain Name System 11 29 Domain Controller Location Local DNS When a client authenticates it attempts to locate a domain contro
51. t you understand how the DNS Client service works to resolve a single label name First the client tries to resolve the name as a fully qualified name by appending a DNS domain suffix to the single label name The suffix is determined by using one of the two following options the first of which is configured in the Advanced TCP IP Settings of a connection and the second by using Group Policy The DNS domain suffixes appended by the client are e The client s network connection DNS suffix The client appends the suffix of its DNS connection such as ad contoso com If you can use the connection based suffix you can configure a client to use domain name devolution which means that if the connection suffix fails the client retries with the parent domain name which would be contoso com in this example The devolution stops at that point it does not query by using a top level domain name e DNS suffix search order You can specify the DNS suffixes that a client should try This is easiest to manage by using Group Policy If DNS suffix search order is used there is no devolution You must specify exactly the domain names you want the client to try If the DNS suffix does not result in a resolution the DNS client gives up and queries DNS with a single label name If this does not work NetBIOS name resolution is attempted which starts with a query to a Windows Internet Name Service WINS server and if that fails resorts to a NetBIOS broadcast
52. tion works by removing the left most label and continuing to get to the parent suffix For example if the primary DNS suffix is central contoso com and devolution is enabled with a devolution level of two an application attempting to query the host name emailsrv7 will attempt to resolve emailsrv7 central contoso com and emailsrv7 contoso com If the devolution level is three an attempt will be made to resolve emailsrv7 central contoso com but not emailsrv7 contoso com The DNS client in Windows Server 2008 R2 and Windows 7 introduces the concept of a devolution level which provides control of the label where devolution will terminate Previously the effective devolution level was two An administrator can now specify the devolution level allowing for precise control of the organizational boundary in an Active Directory domain when clients attempt to resolve resources within the domain This update to DNS devolution is also available for previous versions of Microsoft Windows DNS Cache Locking Cache locking is a new feature available if your DNS server is running Windows Server 2008 R2 When you enable cache locking the DNS server will not allow cached records to be overwritten for the duration of the TTL value Cache locking provides for enhanced security against cache poisoning attacks You can also customize the settings used for cache locking When a recursive DNS server responds to a query it will cache the results obtained so that it c
53. troller it referred the client to A DNS server on a Read Only Domain Controller RODC can be authoritative for zones that are replicated to the RODC and can resolve queries for clients that use the RODC as their DNS server Of course a key characteristic of an RODC is that it cannot make changes to Active Directory so resource records cannot be added manually to the zone on an RODC and dynamic updates are not accepted from clients Dynamic updates are serviced by referring clients to a writeable domain controller when they attempt to send an update to an RODC It is useful for the RODC to include the client s updated resource record in the zone as quickly as possible so the RODC tracks the client that attempted the update and the writable domain controller to which the client was referred After a short wait the RODC performs a replicate single object RSO operation in which it retrieves the updated DNS record for the client from the writable domain controller bypassing standard replication mechanisms 11 32 Configuring and Troubleshooting Windows Server 2008 Active Directory Domain Services Lesson 3 Advanced DNS Configuration and Administration s Resolving Single Label Names s Resolve Names Outside Your Domain e DNS Server and Zone Maintenance e Test and Troubleshoot DNS Server and Client DNS Enhancements in Windows Server 2008 R2 You ve learned how to configure a simple DNS implementation and how DNS supports
54. ward lookup zone e Create a new forward lookup zone named development contoso com The zone should be a primary zone stored in Active Directory and replicated to all domain controllers in the contoso com domain Configure the zone so that it does not allow dynamic updates Note Ina production environment you would most likely just replicate to all DNS servers However for this lab you will replicate to all domain controllers to ensure quick and guaranteed replication gt Task 2 Create Host and CNAME records In the development contoso com zone create a host A record for APPDEVO1 with the IP address 10 0 0 24 z 2 Create a CNAME record www development contoso com that resolves to appdev01 development contoso com gt Task 3 Test name resolution e At the command prompt type nslookup www development contoso com and then press Enter Examine the output of the command What does the output tell you Results In this exercise you created a new forward lookup zone development contoso com with host and CNAME records and verified that names in the zone can be resolved LI Note Do not shut down the virtual machines after you finish this lab because the settings you have configured here will be used in the next lab Lab Review Questions Question If you did not configure forwarders on NYC DC2 what would be the result for clients that use NYC DC2 as their primary DNS server Question What would happen to clients
Download Pdf Manuals
Related Search
Related Contents
TB Touch Aqua 8 8GB Blue, White Trust Wireless mouse - compact size Typhoon Presenter Notebook Mouse DELL PowerConnect N2024 Jarden consumer Solutions Electric and Ceran-Top Ranges User's Manual Croozer Dog BEDIENUNGSANLEITUNG Sony PCS-TL33 Webcam User Manual devising and using evaluation standards the french paradox Copyright © All rights reserved.
Failed to retrieve file