Domain Name System (DNS) Name resolution for both small and large networks Host names IP Addresses Like a phone book, but stores more information Older.

Slides:



Advertisements
Similar presentations
Web Server Administration
Advertisements

Domain Name System. DNS is a client/server protocol which provides Name to IP Address Resolution.
DNS Domain Name System. Domain names and IP addresses People prefer to use easy-to-remember names instead of IP addresses Domain names are alphanumeric.
1 DNS. 2 BIND DNS –Resolve names to IP address –Resolve IP address to names (reverse DNS) BIND –Berkeley Internet Name Domain system Version 4 is still.
Domain Name System (or Service) (DNS) Computer Networks Computer Networks Term B10.
1 EEC-484/584 Computer Networks Lecture 5 Wenbing Zhao (Part of the slides are based on Drs. Kurose & Ross ’ s slides for their Computer.
EEC-484/584 Computer Networks Lecture 5 Wenbing Zhao (Part of the slides are based on Drs. Kurose & Ross ’ s slides for their Computer.
EEC-484/584 Computer Networks Lecture 5 Wenbing Zhao (Part of the slides are based on Drs. Kurose & Ross ’ s slides for their Computer.
Domain Name System (or Service) (DNS) Computer Networks Computer Networks Spring 2012 Spring 2012.
EEC-484/584 Computer Networks Lecture 5 Wenbing Zhao (Part of the slides are based on Drs. Kurose & Ross ’ s slides for their Computer.
2: Application Layer1 FTP, SMTP and DNS. 2: Application Layer2 FTP: separate control, data connections r FTP client contacts FTP server at port 21, specifying.
1 Domain Name System (DNS) Reading: Section 9.1 COS 461: Computer Networks Spring 2006 (MW 1:30-2:50 in Friend 109) Jennifer Rexford Teaching Assistant:
EEC-484/584 Computer Networks Lecture 5 Wenbing Zhao (Part of the slides are based on Drs. Kurose & Ross ’ s slides for their Computer.
1 Domain Name System (DNS). 2 DNS: Domain Name System Internet hosts, routers: –IP address (32 bit) - used for addressing datagrams –“name”, e.g., gaia.cs.umass.edu.
EEC-484/584 Computer Networks Lecture 5 Wenbing Zhao (Part of the slides are based on Drs. Kurose & Ross ’ s slides for their Computer.
Domain Name System (DNS) Network Information Center (NIC) : HOSTS.TXT.
2: Application Layer1 Chapter 2 Application Layer Computer Networking: A Top Down Approach, 4 th edition. Jim Kurose, Keith Ross Addison-Wesley, July 2007.
Application Layer session 1 TELE3118: Network Technologies Week 12: DNS Some slides have been taken from: r Computer Networking: A Top Down Approach.
Naming Jennifer Rexford Advanced Computer Networks Tuesdays/Thursdays 1:30pm-2:50pm.
Jennifer Rexford Fall 2014 (TTh 3:00-4:20 in CS 105) COS 561: Advanced Computer Networks Domain.
The Domain Name System (DNS)
Domain Name Services Oakton Community College CIS 238.
Name Resolution and DNS. Domain names and IP addresses r People prefer to use easy-to-remember names instead of IP addresses r Domain names are alphanumeric.
11.1 © 2004 Pearson Education, Inc. Exam Managing and Maintaining a Microsoft® Windows® Server 2003 Environment Lesson 11: Introducing WINS, DNS,
2: Application Layer1 Chapter 2 Application Layer Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012.
CS 4396 Computer Networks Lab
Data Communications and Computer Networks Chapter 2 CS 3830 Lecture 10 Omar Meqdadi Department of Computer Science and Software Engineering University.
1 EE 122: Domain Name System Ion Stoica TAs: Junda Liu, DK Moon, David Zats (Materials with thanks to Vern Paxson,
DNS and C# SWE 344 Internet Protocols & Client Server Programming.
CS 471/571 Domain Name Server Slides from Kurose and Ross.
Domain names and IP addresses Resolver and name server DNS Name hierarchy Domain name system Domain names Top-level domains Hierarchy of name servers.
Chapter 2 Application Layer Computer Networking: A Top Down Approach, 5 th edition. Jim Kurose, Keith Ross Addison-Wesley, April A note on the use.
14 DNS : The Domain Name System. 14 Introduction - Problem Computers are used to work with numbers Humans are used to work with names ==> IP addresses.
Domain Name System (DNS)
DNS: Domain Name System People: many identifiers: – SSN, name, Passport # Internet hosts, routers: – IP address (32 bit) - used for addressing datagrams.
25.1 Chapter 25 Domain Name System Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Naming and the DNS. Names and Addresses  Names are identifiers for objects/services (high level)  Addresses are locators for objects/services (low level)
2: Application Layer1 DNS: Domain Name System People have many identifiers: SSN, name, passport number Internet hosts, routers have identifiers, too: IP.
Configuring Name Resolution and Additional Services Lesson 12.
CS 3830 Day 10 Introduction 1-1. Announcements r Quiz #2 this Friday r Program 2 posted yesterday 2: Application Layer 2.
Discovery Jennifer Rexford COS 461: Computer Networks Lectures: MW 10-10:50am in Architecture N101
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.
Lecture 5: Web Continued 2-1. Outline  Network basics:  HTTP protocols  Studies on HTTP performance from different views:  Browser types [NSDI 2014]
Lecture 7: Domain Name Service (DNS) Reading: Section 9.1 ? CMSC 23300/33300 Computer Networks
1 EEC-484/584 Computer Networks Lecture 5 Wenbing Zhao (Part of the slides are based on Drs. Kurose & Ross ’ s slides for their Computer Networking book.
Chapter 2 Application Layer Computer Networking: A Top Down Approach, 4 th edition. Jim Kurose, Keith Ross Addison-Wesley, July 2007.
1 Kyung Hee University Chapter 19 DNS (Domain Name System)
Linux Operations and Administration
2: Application Layer 1 Chapter 2: Application layer r 2.1 Principles of network applications r 2.2 Web and HTTP r 2.3 FTP r 2.4 Electronic Mail  SMTP,
Web Server Administration Chapter 4 Name Resolution.
1 CMPT 471 Networking II DNS © Janice Regan,
Application Layer, 2.5 DNS 2-1 Chapter 2 Application Layer Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley.
WHAT IS DNS??????????.
CSEN 404 Application Layer II Amr El Mougy Lamia Al Badrawy.
Spring 2006 CPE : Application Layer_DNS 1 Special Topics in Computer Engineering Application layer: Domain Name System Some of these Slides are.
@Yuan Xue A special acknowledge goes to J.F Kurose and K.W. Ross Some of the slides used in this lecture are adapted from their.
@Yuan Xue A special acknowledge goes to J.F Kurose and K.W. Ross Some of the slides used in this lecture are adapted from their.
Understand Names Resolution
Internet Applications
Domain Name System (DNS)
Chapter 17 DNS (Domain Name System)
Introduction to Networks
Chapter 19 DNS (Domain Name System)
Domain Name System (DNS)
IMPLEMENTING NAME RESOLUTION USING DNS
Domain Name System (DNS)
Chapter 19 DNS (Domain Name System)
Domain Name System (DNS)
FTP, SMTP and DNS 2: Application Layer.
Naming in Networking Jennifer Rexford COS 316 Guest Lecture.
Presentation transcript:

Domain Name System (DNS) Name resolution for both small and large networks Host names IP Addresses Like a phone book, but stores more information Older Windows OSes used WINS and NetBIOS, Windows Server 2008 depends on DNS Active Directory uses DNS

DNS Details de facto standard for name resolution on the Internet DNS is based on domains –e.g..com,.net,.org – Top level domains (TLD) – umb.edu, name.tld – Second level domains Top level domains are tracked by Internet Consortium of Assigned Names and Numbers (ICANN) Businesses can apply for a second level domain (e.g. thru godaddy.com)

DNS Details (cont’d) Properties of DNS –Hierarchical name space divided into zones –Zones contain IP addresses, services, computers –Zones typically corresponding to domains, but they don’t have to –Zone files distributed over a collection of DNS servers Authoritative DNS server contains a readable and writeable copy of the zone file Secondary DNS servers contain a read-only copy of the zone file –Two types of zones: Forward lookup: Host names -> IP addresses Reverse lookup: IP addresses -> Host names

13 root servers (see Labeled A through M DNS Root Servers B USC-ISI Marina del Rey, CA L ICANN Los Angeles, CA E NASA Mt View, CA F Internet Software C. Palo Alto, CA (and 17 other locations) I Autonomica, Stockholm (plus 3 other locations) m WIDE Tokyo A Verisign, Dulles, VA C Cogent, Herndon, VA (also Los Angeles) D U Maryland College Park, MD G US DoD Vienna, VA H ARL Aberdeen, MD J Verisign, ( 11 locations) K RIPE London (also Amsterdam, Frankfurt)

Domain Name System comeduorgac uk zw arpa unnamed root for reverse lookup bar westeast foomy ac cam usr in- addr generic domainscountry domains my.east.bar.edu usr.cam.ac.uk /24

Zones versus Domains Multiple DNS Zones in 1 domain e.g. 1 zone for cs.umb.edu 1 zone for math.umb.edu Different administrator for each zone since he/she knows the layout of computers in that zone better

Delegate Name Resolution Recursive query –Ask server to get answer for you –e.g. request 2 and response 9 in the next diagram Iterative query –Ask server who to ask next –e.g. all other request-response pairs

DNS Resolver and Local DNS Server Application DNS resolver Local DNS server 1 10 DNS cache DNS query 2 DNS response 9 Root server 3 4 Top-level domain server 5 6 Second-level domain server 7 8 Caching based on a time-to-live (TTL) assigned by the local DNS server responsible for the host name to reduce latency in DNS translation. Delegate name resolution

DNS Caching Performing all these queries take time –And all this before the actual communication takes place –e.g., 1-second latency before starting Web download Caching can substantially reduce overhead –The top-level servers very rarely change –Popular sites (e.g., visited often –Local DNS server often has the information cached How DNS caching works –DNS servers cache responses to queries –Responses include a “time to live” (TTL) field –Server deletes the cached entry after TTL expires

Negative Caching Remember things that don’t work –Misspellings like and –These can take a long time to fail the first time –Good to remember that they don’t work –… so the failure takes less time the next time around

Zone file example $ORIGIN example.com. $TTL SOA dns1.example.com. hostmaster.example.com. ( ; serial ; refresh after 6 hours 3600 ; retry after 1 hour ; expire after 1 week ) ; minimum TTL of 1 day ; NS dns1.example.com. NS dns2.example.com. dns1 A AAAA aaaa:bbbb::1 dns2 A AAAA aaaa:bbbb::2 MX 10 mail.example.com. MX 20 mail2.example.com. mail A AAAA aaaa:bbbb::5 mail2 A AAAA aaaa:bbbb::6 ; ; This sample zone file illustrates sharing the same IP addresses for multiple services: ; services A AAAA aaaa:bbbb::10 A AAAA aaaa:bbbb::11 ftp CNAME services.example.com. www CNAME services.example.com. ; ;

Resource Records Host(A) records – map a hostname to its IP address A Load-balancing using round-robin DNS A A A If the machines are on different subnets, DNS will return one that is “closest” to the requester.

Canonical Name(CNAME) Records Allow you to give multiple hostnames to one IP address One machine answers 1 IP address, but listens to multiple hostnames For example: ftp CNAME collosus.hasselltech.net

Mail Exchanger(MX) Records Identify the mail server(s)for a specific zone or domain Instruct the connecting computers to send all mail destined for a certain domain to a specific machine Multiple MX records can have different preference numbers. The lowest one has the highest priority MX 10 MX 100 queue.perigee.net

Nameserver(NS) Records Defines the nameservers that can answer queries for a specific domain NS NS ns2.hasselltech.net.

Start of Authority (SOA) Records Specifies the primary nameservers that are authoritative for a particular zone Also controls how long a non-authoritative nameserver can keep the information it retrieved from the authoritative one –Refresh interval: how long before it needs to refresh –Retry interval: how long to wait before it is allowed to contact the authoritative one –Minimum TTL: how long they can use the information

Example of SOA IN SOA collossus.hasselltech.net. admin.hasselltech.net. ( ; serial number 100; refresh 50; retry 86400; expire 3600 ); default TTL

Pointer (PTR) Records Similar to A records Perform the mapping of IP addresses to hostnames e.g in-addr.arpa IN PTR alpha.abc.com Internet

Service (SRV) Records Indicate the range and availability of services in a zone Also have a preference number e.g _kerbos._tcp._sites.dc._msdcs 600 SRV colossus.hasselltch.net service TTL preference port server

Using Primary and Secondary Nameservers DNS has built-in redundancy for primary and secondary nameservers Each has a copy of the zone file Each zone has one primary nameserver, but with many secondary nameservers Secondary nameservers have read-only copies of the zone file