DNS: How it works. DNS: How it works (more or less ) DNS: How it Works. Technical Seminars Spring 2010 1. Paul Semple psemple@rm.



Similar documents
Module 2. Configuring and Troubleshooting DNS. Contents:

Module 6: Managing and Monitoring Domain Name System

Lesson Plans Managing a Windows 2003 Network Infrastructure

Copyright

Windows 2008 Server. Domain Name System Administración SSII

5 Configuring a DNS Infrastructure

How to Add Domains and DNS Records

Course 2277: Implementing, Managing, and Maintaining a Microsoft Windows Server 2003 Network Infrastructure: Network Services

Implementing, Managing, and Maintaining a Microsoft Windows Server 2003 Network Infrastructure: Network Services (5 days)

Implementing, Managing and Maintaining a Microsoft Windows Server 2003 Network Infrastructure: Network Services Course No.

Understanding DNS (the Domain Name System)

CHAPTER ANSWERS IMPLEMENTING, MANAGING, AND MAINTAINING A MICROSOFT WINDOWS SERVER 2003 NETWORK INFRASTRUCTURE

Module 11. Configuring Domain Name System. Contents: Lesson 1: Install and Configure DNS in an AD DS Domain Lab A: Install the DNS Service 11-11

How to Configure the Windows DNS Server

Implementing, Managing, and Maintaining a Microsoft Windows Server 2003 Network Infrastructure

SKV PROPOSAL TO CLT FOR ACTIVE DIRECTORY AND DNS IMPLEMENTATION

Copyright International Business Machines Corporation All rights reserved. US Government Users Restricted Rights Use, duplication or disclosure

Installing and Setting up Microsoft DNS Server

Networking Domain Name System

- Domain Name System -

Networking Domain Name System

Preliminary Course Syllabus

Managing Name Resolution

Implementing Domain Name Service (DNS)

Implementing, Managing, and Maintaining a Microsoft Windows Server 2003 Network Infrastructure

How To Guide Edge Network Appliance How To Guide:

DNS Resolving using nslookup

INTEGRATING VITALQIP WITH MICROSOFT WINDOWS NETWORKING/ ACTIVE DIRECTORY

SSSD DNS Improvements in AD Environment

KB Windows 2000 DNS Event Messages 1 Through 1614

User Service and Directory Agent: Configuration Best Practices and Troubleshooting

HTG XROADS NETWORKS. Network Appliance How To Guide: EdgeDNS. How To Guide

Configuring Sponsor Authentication

Networking Domain Name System

Use Domain Name System and IP Version 6

Local DNS Attack Lab. 1 Lab Overview. 2 Lab Environment. SEED Labs Local DNS Attack Lab 1

This is a distance learning course.

DNS. Computer Networks. Seminar 12

EXAM TS: Windows Server 2008 Network Infrastructure, Configuring. Buy Full Product.

DNS. Computer networks - Administration 1DV202. fredag 30 mars 12

Domain Name Server. Training Division National Informatics Centre New Delhi

Lesson Plans Configuring Windows Server 2008 Network Infrastructure

Understand Names Resolution

Domain Name System (DNS) Fundamentals

DNS and Interface User Guide

Lesson 13: DNS Security. Javier Osuna GMV Head of Security and Process Consulting Division

Understanding Windows Server 2003 Networking p. 1 The OSI Model p. 2 Protocol Stacks p. 4 Communication between Stacks p. 13 Microsoft's Network

Domain Name System :49:44 UTC Citrix Systems, Inc. All rights reserved. Terms of Use Trademarks Privacy Statement

ECE 4321 Computer Networks. Network Programming

NETASQ SSO Agent Installation and deployment

Domain Name Service (DNS) Training Division, NIC New Delhi

DNS. The Root Name Servers. DNS Hierarchy. Computer System Security and Management SMD139. Root name server. .se name server. .

How To Set Up A Network On Windows 2008 With A Simple Network On A Cheap Computer (For Free) (For A Free Download) (Windows) (Permanent) (Free Download) For A Free Install) (Unlimited) (Power

Active Directory Integration: Install and Setup Guide. Insights

Motivation. Domain Name System (DNS) Flat Namespace. Hierarchical Namespace

Chapter 15: Advanced Networks

Enabling single sign-on for Cognos 8/10 with Active Directory

Best Practices: Integrating Mac OS X with Active Directory. Technical White Paper April 2009

MCSE Objectives. Exam : TS:Exchange Server 2007, Configuring

KAREL UCAP DNS AND DHCP CONCEPTS MANUAL MADE BY: KAREL ELEKTRONIK SANAYI ve TICARET A.S. Organize Sanayi Gazneliler Caddesi 10

Wireshark DNS. Introduction. nslookup

ILTA HAND 6B. Upgrading and Deploying. Windows Server In the Legal Environment

ChangeAuditor 5.8 For Active Directory

Client Server Networks

Installation of MicroSoft Active Directory

6425C - Windows Server 2008 R2 Active Directory Domain Services

How-to: DNS Enumeration

Section 1 Overview Section 2 Home... 5

Introduction to Network Operating Systems

Wireshark Lab: DNS. 1. nslookup

70-417: Upgrading Your Skills to MCSA Windows Server 2012

Windows Active Directory. DNS, Kerberos and LDAP T h u r s d a y, J a n u a r y 2 7, 2011 INLS 576 Spring 2011

HTG XROADS NETWORKS. Network Appliance How To Guide: DNS Delegation. How To Guide

Lesson Plans LabSim for Microsoft s Configuring Windows Server 2008 Active Directory

Internetworking Microsoft TCP/IP on Microsoft Windows NT 4.0

ChangeAuditor 5.5. For Active Directory Event Reference Guide

Apple Technical White Paper Best Practices for Integrating OS X with Active Directory

How to set up the Integrated DNS Server for Inbound Load Balancing

Lab - Observing DNS Resolution

How to Install the Active Directory Domain Services (AD DS) Role in Windows Server 2008 R2 and Promote a Server to a Domain Controller

Hands On Activities: TCP/IP Network Monitoring and Management

Introduction. Assessment Test

Domain Name System (DNS) Session-1: Fundamentals. Ayitey Bulley

FreeIPA 3.3 Trust features

Virtual Managment Appliance Setup Guide

Wireshark Lab: DNS v6.01

Talk-101 User Guide. DNSGate

MCSE Core exams (Networking) One Client OS Exam. Core Exams (6 Exams Required)

LogLogic Microsoft Domain Name System (DNS) Log Configuration Guide

DC Agent Troubleshooting

Appendix D: Configuring Firewalls and Network Address Translation

Glossary of Technical Terms Related to IPv6

Application Protocols in the TCP/IP Reference Model

Best Practices: Integrating Mac OS X with Active Directory. Technical White Paper September 2007

NetSpective Global Proxy Configuration Guide

Application Protocols in the TCP/IP Reference Model. Application Protocols in the TCP/IP Reference Model. DNS - Concept. DNS - Domain Name System

Transcription:

DNS: How it works Paul Semple psemple@rm.com DNS: How it works (more or less ) Paul Semple psemple@rm.com 1

Objectives What DNS is and why we need it DNS on Windows Server networks / Community Connect Troubleshooting What is DNS? What is DNS? A system for translating easily remembered hostnames into their IP addresses (names to numbers) 2

What is DNS? A system for translating easily remembered hostnames into their IP addresses A distributed database What is DNS? A system for translating easily remembered hostnames into their IP addresses A distributed database Fault Tolerant What is DNS? A system for translating easily remembered hostnames into their IP addresses A distributed database Fault Tolerant A Namespace 3

DNS Namespace Why do we need DNS? To locate Active Directory Resources (e.g. to find a Domain Controller for logon) Why do we need DNS? To locate Active Directory Resources (e.g. to find a Domain Controller for logon) To locate pages on the Internet and for email 4

Why do we need DNS? To locate Active Directory Resources (e.g. to find a Domain Controller for logon) To locate pages on the Internet and for email Connecting to printer shares etc How Name Resolution Works Root Server (.) www.rm.com Com server DNS Client Local DNS Server rm.com server www.rm.com A 194.154.15.247 Cached lookups 5

So name resolution relies on finding a server with authoritative data for a domain How is this data stored? Zone Files DNS data is divided into manageable sets of data called zones. Contain name and IP address information Primary and Secondary - %systemroot%\system32\dns (*.dns) Active Directory Integrated Forward and Reverse DNS Zone Transfers 6

DNS Primary and Secondary Zones They re still out there, they work, however, there are drawbacks: Zone Transfer process problematic Bandwidth/Network Resources Single Point of failure (Primary Server) Improved by Update Notification and Incremental Zone transfers Active Directory Integrated (ADI) Zones Benefits: Less network traffic Multimaster model Clients able to register in DNS more efficiently Less Administrative effort Secure Dynamic Updates No Single Point of Failure Stub Zones A zone with pointers to another domain Useful for users needing to access resources in separate Domains 7

Stub Zones Usually a DNS Server contacts a Root server on the Internet if it can t resolve a host name A Stub Zone is a DNS Zone that holds only A copy of the SOA record for the zone. Copies of NS records for all name servers authoritative for the zone. Copies of A records for all name servers authoritative for the zone Stub Zones streamline name resolution Name Resolution using Stub Zones Client sends recursive query to DNS server hosting stub zone DNS server uses stub zone s resource records to help resolve query Stub zone identifies authoritative DNS servers for original zone DNS server queries authoritative servers without having to find them first http://support.microsoft.com/kb/811118 Forwarders 8

Conditional Forwarding New feature in Windows Server 2003 Allows forwarding to DNS servers based on queried domain name Examples - forward queries for: reskit.local to 10.0.0.1 ad.reskit.local to 169.254.33.9 and 169.254.8.22 and 169.254.8.77 Like Stub Zones can improve the performance of DNS queries WHOIS 9

Stub Zones and Conditional Forwarding Compared Stub zones are dynamic, conditional forwarders are static Stub Zones can be stored as Active Directory Integrated Requires permission from the administrator of the other domain uses zone transfer A stub zone can also be used to keep the DNS server hosting a parent zone aware of all the DNS servers which authoritative for a child zone Conditional Forwarders can be used to forward to a specific Name Server (Firewall) Resource Records The A Record Used to Map a hostname to an IP address The NS Record Show which DNS name servers are responsible for the domain The MX record Indicates which server or servers are responsible for handling mail for the domain example.co.uk IN MX 10 mail.example.co.uk example.co.uk IN MX 100 mail.connect.co.uk Resource Records CNAME records make an alias 10

Resource Records The PTR Record Maps an IP address to a hostname A reverse lookup Start of Authority Record The first resource record in any Domain Name System (DNS) Zone file should be a Start of Authority (SOA) resource record. Service Lookups 11

Service Lookups _kerberos The data section of this shows a server that is available to take part in Kerberos authentication (this is the way that Windows servers can securely determine who you are, and what you are allowed to do on the network). _ldap This shows servers that can be used to query the Active Directory using LDAP (the Lightweight Directory Access Protocol). _gc Any servers which can be found with this entry are Global Catalogue servers. On a Community Connect network this should be all of your domain controllers. _kpasswd This is used to show servers which can be used for Kerberos password changes in the domain. DNS and Logon Netlogon service on the client queries DNS for the SRV (Service Location) records LDAP Kerberos Global Catalog - needed for logon in Multi-domain Forest 12

The twilight _msdcs Zone Records beginning with an underscore are for servers to locate resources, for example _GC, means Global Catalog and _DC means Domain controller. In Microsoft Windows Server 2003 these _MSDCS records have been moved to their own zone. Replication can be controlled Troubleshooting NSLOOKUP NETDIAG DCDIAG DNSLINT DNSCMD NLTEST IPCONFIG DNS LOGGING (good old ) EVENT VIEWER NSLOOKUP A command-line administrative tool for testing and troubleshooting DNS servers Specific issues include: Desktop Agent - Failed to retrieve any server names from the station location component. Program sets cannot be updated 13

NSLOOKUP In-Depth NETDIAG Can be used to Verify entries in C:\WINNT\System32\config\netlogon.dns These errors indicate missing SRV records: A domain controller for the domain could not be contacted DNS name does not exist, error code 0x0000232B RCODE_NAME_ERROR The DNS SRV records required to locate a domain controller for the domain are not registered in DNS NETDIAG /TEST:DNS and NETDIAG /FIX both very useful! DCDIAG DCDIAG /TEST:DNS can be used to validate DNS health Can also be used for some very targeted tests: /test:dns [DNS test] /DnsBasic /DnsForwarders /DnsDelegation /DnsDynamicUpdate Performs the specified DNS test. If no test is specified, defaults to /DnsAll. Performs basic DNS tests, including network connectivity, DNS client configuration, service availability, and zone existence. Performs the /DnsBasic tests, and also checks the configuration of forwarders. Performs the /DnsBasic tests, and also checks for proper delegations. Performs the /DnsBasic tests, and also determines whether dynamic update is enabled in the Active Directory zone. /DnsRecordRegistration Performs the /DnsBasic tests, and also checks whether the A, CNAME, and well-known SRV records are registered. In addition, creates an inventory report based on results. 14

DNSLINT Download from http://support.microsoft.com/kb/321045 Provides an overview of DNS health dnslint /ad /s localhost /v DNSCMD Create zones and delete zones View and update resource records in a zone Age of records and more NLTEST Another command line tool for your troubleshooting armoury You can use with the /dsregdns switch to force a local or remote DC to re-register its' DNS records IPCONFIG Basic diagnostic tool Ensure clients are pointing to the correct DNS Server(s) Ensure the Forest Root points to itself only IPCONFIG /ALL IPCONFIG /DISPLAYDNS IPCONFIG /FLUSHDNS 15

DNS Logging DNS Logging Scenarios for creating a DNS Debug Log Web page not found - 404 error. Email delivery error. Cannot find a server by its a UNC path. Secondary DNS servers do not receive notifications or updates. DNS Logging 20100407 11:56:25 948 PACKET 02A26140 UDP Snd 172.16.10.14 f6f5 R Q [8385 A DR NXDOMAIN] A (8)intranet(3)CC4(3)net(0) NXDOMAIN indicates no record exists 20100407 11:56:25 94C PACKET 02A36730 UDP Rcv 172.16.10.14 2bd1 Q [0001 D NOERROR] A (8)intranet(5)Local(0) NOERROR - good news! The query successfully resolved Intranet 16

DNS Server Event Viewer Some common events are: Event ID 2: Indicates that the DNS server has started Event ID 3: Indicates that the DNS server has shut down Critical events to look out for: 4000, 4004, 4007, 4014, 4015: Normally indicates that Active Directory and DNS aren t playing well together. Check the AD is working normally, then restart DNS Scavenging why its needed and how to configure it large numbers of stale Resource Records can eventually take up server disk space and cause unnecessarily long zone transfers. Name resolution problems on the network (including MSMQ). RDP unexpected result? Degradation of server performance TEC396803 DNSUpdateProxy DHCP Server can be configured to dynamically register client records It becomes the owner of the record If the server fails other servers may not be able to update the records 17

Scavenging period tells DNS how often to check the zone for stale records No-refresh interval suppresses client reregistration (reduces replication) Refresh Interval - the number of days after the No-refresh Interval expires that DDNS will wait for the client to refresh its record before the record becomes stale "I'm hitting this 'scavenge now' button like a snare drum and nothing is happening. Why? "I woke up this morning, my DNS zones are nearly empty and Active Directory is sitting in a corner rocking back and forth crying. What happened?" Other useful tools Monitoring DNS with the DNS Console Monitoring DNS with System Monitor Can't logon or join the domain? Ping: Domain Name, _MSDCS GUID (replication) 18

Advanced tools Connectivity or Configuration? Wireshark (formerly Ethereal) http://www.wireshark.org/download.html In-depth packet sniffing Summary Well over 70 percent of all support calls that come to Microsoft support services that start out as Active Directory or Exchange calls end up being DNS calls (Source: http://mcpmag.com/articles/2004/05/01/10- DNS-Errors-That-Will-Kill-Your-Network.aspx?Page=1) 19