dns 101 - what it is and how it works

Post on 05-Dec-2014

11.292 Views

Category:

Technology

5 Downloads

Preview:

Click to see full reader

DESCRIPTION

DNS 101 - What it is and how it works provides a great explanation of what DNS, or Domain Name System is and how it works.

TRANSCRIPT

DNS 101:What it is, how it works

What is it?

DNS = Domain Name SystemOne large distributed database: The DNS

Client/Server system with:Name Servers - contain information about some segments of the database

Resolvers - create queries and send them across the network to a name server

A Brief History ofDNS and BIND

Late 60’s: US DoD Advanced Research Projects Agency creates ARPAnet

Updates sent to SRI-NIC; HOSTS.TXT published twice a week.

Early 80’s: TCP/IP added to BSD, and ARPAnet growth explodes

1984, Paul Mockapetris releases RFCs 882 and 883 (later superseded by 1034 and 1035); JEEVES released

1985, Berkeley releases first version of BIND, written by Kevin Dunlap

1993, BIND 4.9 is released by DEC, managed by Paul Vixie, assisted by others; 1994, BIND 4.9.2 is released by Vixie Enterprises; 1995, BIND 4.9.3 released by ISC

The DNS Tree StructureThe Distributed Database

Who Manages What?Delegation of Authority

How does it work?Anatomy of a DNS Lookup

•Your PC Asks:

•Q: Where is www.cira.ca?

How does it work?Anatomy of a DNS Lookup

•Office-mail asks:

•Q: Where is www.cira.ca?

•A: I don’t know, but I can tell you who knows about .ca.•ca01.cira.ca

How does it work?Anatomy of a DNS Lookup

•Office-mail asks:

•Q: Where is www.cira.ca?

•A: I don’t know, but I can tell you who knows about .ca.•ca01.cira.ca•192.228.21.9

How does it work?Anatomy of a DNS Lookup

•Office-mail asks:

•Q: Where is www.cira.ca?

•A: I don’t know, but I can tell you who knows about cira.ca.•ns01.cira.ca•192.228.22.70

How does it work?Anatomy of a DNS Lookup

•Office-mail asks:

•Q: Where is www.cira.ca?

•A: It’s at 192.228.23.21

How does it work?Anatomy of a DNS Lookup

•A: www.cira.ca is at 192.228.23.21

How does it work?Anatomy of a DNS Lookup

•Your PC Asks:

•Q: Where is www.microsoft.ca?

How does it work?Anatomy of a DNS Lookup

•Office-mail asks:

•Q: Where is www.microsoft.ca?

•A: I don’t know, but I can tell you who knows about .ca.•ca01.cira.ca•192.228.21.9

How does it work?Anatomy of a DNS Lookup

•Office-mail asks:

•Q: Where is www.microsoft.ca?

•A: I don’t know, but I can tell you who knows about microsoft.ca.•ns4.msft.net

How does it work?Anatomy of a DNS Lookup

•Office-mail asks:

•Q: Where is ns4.msft.net?

•A: I don’t know, but I can tell you who knows about .net.•a.gtld-servers.net

How does it work?Anatomy of a DNS Lookup

•Office-mail asks:

•Q: Where is ns4.msft.net?

•A: I don’t know, but I can tell you who knows about msft.net.•ns4.msft.net•207.46.66.75

How does it work?Anatomy of a DNS Lookup

•Office-mail asks:

•Q: Where is www.microsoft.ca?

•A: www.microsoft.ca is an alias for microsoft.ca. microsoft.ca has two IP addresses: 207.46.130.108 and 207.46.250.119.

How does it work?Anatomy of a DNS Lookup

•A: www.microsoft.ca is an alias for microsoft.ca. microsoft.ca has two IP addresses: 207.46.130.108 and 207.46.250.119.

How does it work?Anatomy of a DNS Lookup

www.smallbusiness.ca hosted by hostingco.ca

hostingco.ca puts their customer domains on separate name servers from their own domain

How does it work?Anatomy of a DNS Lookup

•Q: Where is www.smallbusiness.ca?

•A: I don’t know, but I can tell you who knows about smallbusiness.ca.•ns3.hostingco.ca

How does it work?Anatomy of a DNS Lookup

•Q: Where is ns3.hostingco.ca?

•A: I don’t know, but I can tell you who knows about hostingco.ca•ns1.hostingco.ca•192.0.2.10

How does it work?Anatomy of a DNS Lookup

•Q: Where is ns3.hostingco.ca?

•A: ns3.hostingco.ca is at 192.0.2.8

How does it work?Anatomy of a DNS Lookup

•Q: Where is www.smallbusiness.ca?

•A: It’s at 192.0.2.81.

What if Something Breaks?Data Replication and Authority

What if Something Breaks?Dot-ca Data Replication

What Can The Data Say?Record Types

Address Records (A) -- www.cira.ca is at 192.228.23.21

Pointer Records (PTR) -- 192.228.23.21 is the address for www.cira.ca

Name Server Records (NS) -- ns01.cira.ca is a nameserver for cira.ca

Mail Exchanger Records (MX) -- mail.cira.ca handles mail for cira.ca

Canonical Name (CNAME) -- www.cira.ca is an alias for cira.ca (cira.ca is the canonical name of www.cira.ca)

What Does it Look Like?Sample .ca Zone Data

•microsoft.ca. IN NS ns1.msft.net.• IN NS ns2.msft.net.• IN NS ns3.msft.net.• IN NS ns4.msft.net.• IN NS ns5.msft.net.

•webnames.ca. IN NS relay.cdnnet.ca.• IN NS ns1.cs.ubc.ca.• IN NS blackwidow.webnames.ca.

•cira.ca. IN NS ns01.cira.ca.• IN NS ns02.cira.ca.• IN NS ns03.cira.ca.

•relay.cdnnet.ca. IN A 192.73.5.1•blackwidow.webnames.ca. IN A 207.232.123.229

•ns01.cira.ca. IN A 192.228.22.70•ns02.cira.ca. IN A 192.228.22.71•ns03.cira.ca. IN A 192.228.30.8

top related