1 Week 7 – DNS and ADDS Integration Review of DNS Concepts, Components, and Processes Install and Configure DNS in an AD DS Domain AD DS, DNS, and Windows.

Slides:



Advertisements
Similar presentations
Chapter 8 Managing Windows Server 2008 Network Services
Advertisements

MCTS Guide to Microsoft Windows Server 2008 Network Infrastructure Configuration Chapter 6 Managing and Administering DNS in Windows Server 2008.
Web Server Administration
2.1 Installing the DNS Server Role Overview of the Domain Name System Role Overview of the DNS Namespace DNS Improvements for Windows Server 2008 Considerations.
Implementing Domain Name System
Domain Name System. DNS is a client/server protocol which provides Name to IP Address Resolution.
DNS的配置和排错 刘道军老师主讲 Module 1 如有疑问请与我联系: D
70-294: MCSE Guide to Microsoft Windows Server 2003 Active Directory, Enhanced Chapter 2: Name Resolution and DNS.
Chapter 9: Configuring DNS for Active Directory
4.1 © 2004 Pearson Education, Inc. Exam Planning, Implementing, and Maintaining a Microsoft Windows Server 2003 Active Directory Infrastructure.
Hands-On Microsoft Windows Server 2003 Networking Chapter 6 Domain Name System.
70-293: MCSE Guide to Planning a Microsoft Windows Server 2003 Network, Enhanced Chapter 8: Managing and Troubleshooting DNS.
11.1 © 2004 Pearson Education, Inc. Exam Managing and Maintaining a Microsoft® Windows® Server 2003 Environment Lesson 11: Introducing WINS, DNS,
Hands-On Microsoft Windows Server 2003 Administration Chapter 9 Administering DNS.
MCTS Guide to Microsoft Windows Server 2008 Network Infrastructure Configuration Chapter 5 Introduction to DNS in Windows Server 2008.
70-293: MCSE Guide to Planning a Microsoft Windows Server 2003 Network, Enhanced Chapter 7: Planning a DNS Strategy.
Domain Name Server © N. Ganesan, Ph.D.. Reference.
Course 6425A Module 2: Configuring Domain Name Service for Active Directory® Domain Services Presentation: 50 minutes Lab: 45 minutes This module helps.
Chapter 10 Configuring DNS
Changes to DNS in Windows Server 2003 By David Pracht.
Domain Name Services Oakton Community College CIS 238.
Understanding Active Directory
Windows Server 2008 Chapter 8 Last Update
Copyright line. Configuring DNS EXAM OBJECTIVES  An Introduction to Domain Name System (DNS)  Configuring a DNS Server  Creating DNS Zones  Configuring.
Hands-On Microsoft Windows Server 2008 Chapter 8 Managing Windows Server 2008 Network Services.
Configuring and Managing the DNS Server Role Lesson 4.
70-411: Administering Windows Server 2012
11.1 © 2004 Pearson Education, Inc. Exam Managing and Maintaining a Microsoft® Windows® Server 2003 Environment Lesson 11: Introducing WINS, DNS,
DNS and Active Directory Integration
Chapter Overview Understanding DNS Creating Zones
© Wiley Inc All Rights Reserved. MCSE: Windows Server 2003 Active Directory Planning, Implementation, and Maintenance Study Guide, Second Edition.
Name Resolution Domain Name System.
Module Overview Installing the DNS Server Role Configuring the DNS Server Role Configuring DNS Zones Configuring DNS Zone Transfers Managing and Troubleshooting.
Implementing DNS Module D 7: Implementing DNS
1 Objectives Discuss the basics of the Domain Name System (DNS) and its terminology Configure DNS clients Install a standard DNS server on Server 2008.
CN2140 Server II Kemtis Kunanuraksapong MSIS with Distinction MCT, MCITP, MCTS, MCDST, MCP, A+
Windows Server 2008 R2 Domain Name System Chapter 5.
Module 2: Implementing DNS to Support Active Directory
70-291: MCSE Guide to Managing a Microsoft Windows Server 2003 Network Chapter 7: Domain Name System.
CHAPTER 4 PLANNING A NAME RESOLUTION STRATEGY. Determining Name Resolution Requirement What is name resolution ? ◦ The name into 32-bit IP address conversion.
Module 5: Planning a DNS Strategy. Overview Planning DNS Servers Planning a Namespace Planning Zones Planning Zone Replication and Delegation Integrating.
Zone Properties. Zone Properties Continued Aging allows zone to remove “stale” or “old” records for clients who have not updated within a certain period.
70-291: MCSE Guide to Managing a Microsoft Windows Server 2003 Network Chapter 6: Name Resolution.
70-291: MCSE Guide to Managing a Microsoft Windows Server 2003 Network, Enhanced Chapter 6: Name Resolution.
October 8, 2015 University of Tulsa - Center for Information Security Microsoft Windows 2000 DNS October 8, 2015.
CITA 310 Section 1 Name Resolution (Textbook Chapter 4)
DNS Zones. DNS records kept in zones DNS server is authoritative for a domain if it hosts the zone for that domain Sub-domains can be kept in same zone.
Implementing Active Directory Lesson 2. Skills Matrix Technology SkillObjective DomainObjective # Installing a New Active Directory Forest Configure a.
How to configure DNS for a Windows 2000 domain? 1.Start the Install/Remove Programs Control Panel Applet (Start - Settings - Control Panel - Add/Remove.
Objectives Discuss the basics of the Domain Name System (DNS) and its terminology Configure DNS clients Install a standard DNS server on Server 2008 Create.
1 Week 8 – Manage Sites and Replication Configure Sites and Subnets Configure the Global Catalog and Application Partitions Configure Replication.
Configuring and Troubleshooting Domain Name System
Configuring Name Resolution and Additional Services Lesson 12.
Windows Server 2003 DNS 安裝設定與管理維護 林寶森
Domain Name System (DNS). DNS Server Service Overview of Domain Name System What Is a Domain Namespace? Standards for DNS Naming.
Module 6: Designing Name Resolution. Module Overview Collecting Information for a Name Resolution Design Designing a DNS Server Strategy Designing a DNS.
DNS DNS overview DNS operation DNS zones. DNS Overview Name to IP address lookup service based on Domain Names Some DNS servers hold name and address.
Linux Operations and Administration
Web Server Administration Chapter 4 Name Resolution.
NT1330 Client Server Networking 2
DNS, DHCP and VPN Borislav Varadinov Telerik Software Academy academy.telerik.com System Administrator
Configuring and Managing the DNS Server Role Lesson 4.
KAPLAN SCHOOL OF INFORMATION SYSTEMS AND TECHNOLOGY IT375 Window Enterprise Administration Course Name – IT Introduction to Network Security Instructor.
11 IMPLEMENTING ACTIVE DIRECTORY Chapter 2. Chapter 2: IMPLEMENTING ACTIVE DIRECTORY2 REQUIREMENTS FOR ACTIVE DIRECTORY  Microsoft Windows Server 2003.
Understand Names Resolution
Module 5: Resolving Host Names by Using Domain Name System (DNS)
IMPLEMENTING NAME RESOLUTION USING DNS
Configuring and Troubleshooting DNS
Configuring and Managing the DNS Server Role
Managing Name Resolution
Presentation transcript:

1 Week 7 – DNS and ADDS Integration Review of DNS Concepts, Components, and Processes Install and Configure DNS in an AD DS Domain AD DS, DNS, and Windows Advanced DNS Configuration and Administration

2 Why DNS? Computers connect using IP addresses Humans prefer names DNS resolves names to IP addresses DNS ServerClient technet.microsoft.com technet.microsoft.com?

3 The DNS Hierarchy

4 Zones A database stored on a DNS server Supports resolution for a portion of the DNS namespace starting with a domain: contoso.com A server hosting a zone for a domain is authoritative for that domain DNS Server

5 Resource Records (RRs) Host or Address (A or AAAA) : name-to-IPv4/IPv6 address  Name: hqdc01 Data: Alias or Canonical Name (CNAME) : alias-to-name  Name: ftp Data: internetserver.contoso.com Mail Exchange (MX): points to the server  Data: exchange.contoso.com Name service (NS): points to a name server  Name: contoso.com Data: nameserver01.contoso.com Server Locator Record (SRV): locates DC, GC servers

6 Resource Record Management Manual Dynamic  Client registers its own records  Secure dynamic updates: prevents spoofing

7 Zone Replication File-based zone  Primary zone: writable copy of the zone hosted by one (and only one) DNS server  Secondary zone: read-only copy of the zone hosted by zero or more DNS servers  Zone transfer copies zone data from primary zone to secondary zones Requires permission on source server for zone Traditionally the entire zone (can be quite large) is copied Active Directory integrated zone  Zone is hosted on domain controllers  Multimaster replication: important in dynamic update environments  Data replicated using efficient Active Directory replication topology and processes  Incremental updates

8 Subdomains A zone supports resolution for a portion of the DNS namespace, starting with a domain: contoso.com europe.contoso.com?  Subdomain Records to support resolution for the subdomain  Delegation NS records that point to name server(s) for subdomain List of name server(s) is static and updated manually  Stub zone NS records that point to name server(s) for subdomain List of name servers is updated automatically Requires TCP port 53 to be open between the host (parent) DNS server and all name servers in the stub domain

9 DNS Client (Resolver) Client application makes request DNS Client service examines DNS resolver cache  Pre-loaded with HOSTS file at service start or HOSTS file change  Caches query responses (including negative answers!)  ipconfig /flushdns nslookup.exe  Queries the DNS server without checking the DNS resolver cache technet.microsoft.com? DNS Resolver Cache HOSTS File DNS Client Service

10 Query to DNS Server DNS Client queries primary DNS server  Requests recursive or iterative query Recursive: DNS server continues performing query for client and returns a definitive answer Iterative: DNS server returns only what it knows (“best guess”) and client continues query  Queries secondary DNS server only if primary server doesn’t respond If primary server returns negative answer, secondary server not queried as “second opinion” Ensure that each DNS server is able to resolve all client queries DNS Client ServiceDNS Server

11 DNS Server Resolution DNS server checks its local zones  Resolution returned as an authoritative response DNS server checks its cache  Resolution returned as a positive response If no resolution found  Iterative query: DNS server returns best guess  Recursive query: DNS server performs query DNS Server Cache DNS Client Service Client’s DNS Server technet.microsoft.com?

12 Recursion Iterative query to root DNS servers  Root DNS servers configured in DNS server’s “root hints”  Root DNS server returns referral to.com name servers Iterative query to.com server .com returns referral to microsoft.com name servers Iterative query to microsoft.com server Cache response Return to client as positive answer technet.microsoft.com?

13 Install and Manage the DNS Server Role Methods  Server Manager  Roles  Add Role  Active Directory Domain Services Installation Wizard DNS Manager snap-in  Server Manager  DNS Manager console (dnsmgmt.msc) dnscmd.exe

14 Create a Zone Right-click Forward Lookup Zones Select zone type Specify replication (Active Directory integrated zones only)  All DNS servers in forest  All DNS servers in domain  All domain controllers in domain (for compatibility with Windows® 2000 DCs) Enter zone name (DNS domain name) Manage updates

15 Create a Zone: Dynamic Update

16 Create Resource Records Right-click the zone Dialog box appears specific to the record type you choose

17 Configure Redundant DNS Servers Active Directory–integrated zone  Add DNS server to another DC Standard Primary Zone  Add NS records for secondary servers Master server  The server from which the zone will be copied  Need not be the primary server  Allow Zone Transfers Secondary server  Create a new forward lookup zone  Choose a secondary zone  Configure the master server

18 Configure Forwarders Right-click DNS server  Properties  Forwarders For all names not in your domain, resolve using your Internet service provider’s (ISP’s) DNS servers If forwarders are not available, use root servers based on root hints

19 Client Configuration IP configuration of client  netsh interface ipv4 set dns "Local Area Connection" static primary  netsh interface ipv4 add dns "Local Area Connection" Dynamic Host Configuration Protocol (DHCP) scope option 6

20 AD DS, DNS, and Windows An AD DS domain has a DNS domain name DNS zones can be stored in the Active Directory database Active Directory can replicate DNS zones to specific domain controllers Windows clients can update their own DNS records Active Directory can load large Active Directory–integrated zones in the background DCs register service locator records in DNS Clients use these records to locate DCs

21 Integrate AD DS and the DNS Namespace An Active Directory domain must have a DNS name 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 ad.contoso.com contoso.net

22 Split-Brain DNS The zone that supports AD DS  Secured from Internet exposure  Dynamic  Fully populated with AD DS client, server, and service records The zone that supports the external namespace  Secure  Static  Populated with the records related to external resources Some (manually maintained) duplication of records, such as www contoso.com

23 Create a Delegation for an Active Directory Domain Necessary if child domain zone hosted on different DNS servers Create the delegation in the parent DNS domain (zone)  Right-click zone  New Delegation  Refer to the server that is/will be the child domain DNS server Configure DNS client on child domain server  Primary DNS server should be the parent DNS server Install the DNS role and zone  Server Manager: Add role, then create primary zone or  DCPromo can install DNS while promoting to a DC 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

24 Active Directory–Integrated Zones DNS zone data is stored in AD DS Allows multimaster writes to zone Replicates DNS zone information using AD DS replication  Leverages efficient replication topology  Uses efficient Active Directory replication processes: incremental updates Enables secure dynamic updates Security: Can delegate zones, domains, Resource records

25 Application Partitions for DNS Zones Store DNS zones in one of the default application partitions Or create a custom partition and define its scope To all domain controllers that are DNS servers in the AD DS domain To all domain controllers in the replication scope for the application partition To all domain controllers that are DNS servers in the AD DS forest To all domain controllers in the AD DS domain (as in Windows 2000) Domain Config Schema DomainDNSZone ForestDNSZones Custom Partition

26 DNS Application Partitions Create an application partition  dnscmd ServerName /CreateDirectoryPartition FQDN Change zone replication scope  Properties of zone  General  Change replication

27 Dynamic Updates Client sends Start of Authority (SOA) query DNS server returns SOA RR Client sends dynamic update request(s) to identify the primary DNS server DNS server responds that it can perform update Client sends unsecured update to DNS server Resource Records DNS Server If zone permits only secure updates, update is refused 6 6 Client sends secured update to DNS server 7 7 DHCP Client service registers records for client During client startup If new/changed IP address (fixed/DHCP) on any network connection If ipconfig /registerdns is run

28 Background Zone Loading When a domain controller with Active Directory-integrated DNS zones starts, it: Enumerates all zones to be loaded Loads root hints from files or AD DS servers Loads all zones that are stored in files rather than in AD DS Begins responding to queries and remote procedure calls (RPCs) Starts one or more threads to load the zones that are stored in AD DS

29 Service Locator (SRV) Records SRV resource records allow DNS clients to locate TCP/IP- based services. SRV resource records are used when: A domain controller needs to locate replication partners A client computer authenticates to AD DS A user changes his or her password A Microsoft Exchange server performs a directory lookup An admin opens Active Directory Users and Computers _ldap._tcp.contoso.com 600 IN SRV hqdc01.contoso.com protocol.service.name TTL class type priority weight port target SRV record syntax: Example of an SRV record

30 Domain Controller Location 1. New client queries for all DCs in the domain  Retrieves SRVs from _tcp.domain 2. Attempts LDAP bind to all 3. First DC to respond  Examines client IP and subnet definitions  Refers client to a site 4. Client stores site in registry 5. Client queries for all DCs in the site  Retrieves SRVs from _tcp.site._sites.domain 6. Attempts LDAP bind to all 7. First DC to respond  Authenticates client  Client forms affinity 8. Subsequently  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

31 Read-Only DNS Zones DNS server on an RODC with Active Directory– integrated zones RODC can resolve client queries Changes not allowed on the read-only DNS zone  Records cannot be added manually  Dynamic updates cannot be made Dynamic updates are “referred” to writeable DC  Client attempts update  RODC returns an SOA of a writeable Windows Server 2008 domain controller

32 Resolving Single-Label Names Client-side resolution process 1. Query DNS with fully qualified domain name (FQDN) created by adding DNS suffix of client: ad.contoso.com - Domain name “devolution” ad.contoso.com then contoso.com or DNS suffix search order - Manage with Group Policy 2. WINS  12 seconds = timeout! Server-side resolution  GlobalNames Zone: Specialized zone with single-label CNAME RRs  WINS forward lookup: If zone lookup fails, DNS queries WINS

33 Resolve Names Outside Your Domain Secondary zone  Create a copy of a zone from another DNS server  Requires permissions from the master DNS server Forwarders  Send unresolved query as recursive query to other DNS server(s) Root hints  Begin iterative queries against root, “.”, name servers  DNS server has list of root servers updated with Windows Update Conditional forwarders  Send unresolved query for specific domain to other server(s) Stub zone  Can be for any domain; dynamically updates NS records  Requires TCP Port 53 to be open to all name servers in the domain

34 Reverse Lookup Zone Query for IP address, response with host name IP address is reversed (specific–to–generic) and appended with in-addr.arpa domain  IP address:  Query: in-addr.arpa Special domain to support this: in-addr.arpa  Pointer (PTR) record with name (IP octet) and data (hostname)  Fixed IP client registers its PTR  DHCP server registers PTR for client Not required, but recommended  Services/applications use reverse lookup as a security check: Who is this request coming from? DNS Server Client in-addr.arpa file34.contoso.com

35 DNS Server and Zone Maintenance 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: Server properties  Advanced Manually launch scavenging: Right-click server Manage the cache  View the cache: View menu  Advanced Features  Clear server cache: Right-click server or Cached Lookups node

36 Test and Troubleshoot DNS Server Event logs  Visible in DNS Manager, Server Manager, and Event Viewer Debug logging  Server Properties dialog box Recursive and iterative query tests  Server Properties dialog box dcdiag.exe /test:DNS  Performs a wide variety of tests to ensure that AD DS and DNS are working well together Network Monitor (packet capture)

37 Test and Troubleshoot DNS Client ipconfig /all NSLookup  set server=IP address [Default: Primary DNS Server]  set type=record type [Default: A]  record ipconfig /displaydns : display client DNS resolver cache ipconfig /flushdns : purge client DNS resolver cache ipconfig /registerdns : register client DNS records