Fall 2002 1 Ch 8- DNS© Jörg Liebeherr and Magda El Zarki, 2002 Domain Name Service (DNS)

Slides:



Advertisements
Similar presentations
DNS – Domain Name system Converting domain names to IP addresses since 1983.
Advertisements

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.
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.
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.
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.
CPSC 441: DNS1 Instructor: Anirban Mahanti Office: ICT Class Location: ICT 121 Lectures: MWF 12:00 – 12:50 Notes derived.
Application Layer 2-1 Chapter 2 Application Layer Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012.
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.
Chapter 2 Application Layer
2: Application Layer1 Chapter 2 Application Layer Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012.
NET0183 Networks and Communications Lecture 25 DNS Domain Name System 8/25/20091 NET0183 Networks and Communications by Dr Andy Brooks.
CS 4396 Computer Networks Lab
1 Domain Name System (DNS). 2 DNS: Domain Name System Internet hosts: – IP address (32 bit) - used for addressing datagrams – “name”, e.g.,
DNS & P2P A PPLICATIONS د. عـــادل يوسف أبو القاسم.
Domain Name System (DNS)
Data Communications and Computer Networks Chapter 2 CS 3830 Lecture 10 Omar Meqdadi Department of Computer Science and Software Engineering University.
DNS. 2 DNS: Domain Name System DNS services Hostname to IP address translation Host aliasing – Canonical and alias names Mail server aliasing Load distribution.
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,
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.
IT 424 Networks2 IT 424 Networks2 Ack.: Slides are adapted from the slides of the book: “Computer Networking” – J. Kurose, K. Ross Chapter 2: Application.
DNS: Domain Name System
Review: –Which protocol is used to move messages around in the Internet? –Describe how a message is moved from the sender’s UA to the receiver’s.
1 DNS: Domain Name System People: many identifiers: m SSN, name, Passport # Internet hosts, routers: m IP address (32 bit) - used for addressing datagrams.
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.
1 Application Layer Lecture 6 Imran Ahmed University of Management & Technology.
DNS: Domain Name System People: many identifiers: – SSN, name, Passport # Internet hosts, routers: – IP address (32 bit) - used for addressing datagrams.
Lecture 6: Video Streaming 2-1. Outline  Network basics:  HTTP protocols  Studies on HTTP performance from different views:  Browser types [NSDI 2014]
25.1 Chapter 25 Domain Name System Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
DNS. 2 DNS: Domain Name System DNS services Hostname to IP address translation Host aliasing – Canonical and alias names Mail server aliasing Load distribution.
2: Application Layer1 DNS: Domain Name System People have many identifiers: SSN, name, passport number Internet hosts, routers have identifiers, too: IP.
CPSC 441: DNS 1. DNS: Domain Name System Internet hosts: m IP address (32 bit) - used for addressing datagrams m “name”, e.g., - used by.
CS 3830 Day 10 Introduction 1-1. Announcements r Quiz #2 this Friday r Program 2 posted yesterday 2: Application Layer 2.
EE 122: Lecture 20 (Domain Name Server - DNS) Ion Stoica Nov 15, 2001 (* based on the some on-line slides of J. Kurose & K. Rose and of Raj Jain)
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)
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,
1. Internet hosts:  IP address (32 bit) - used for addressing datagrams  “name”, e.g., ww.yahoo.com - used by humans DNS: provides translation between.
COMP 431 Internet Services & Protocols
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.
Important r On Friday, could you ask students to please me their groups (one per group) for Project 2 so we can assign IP addresses. I’ll send.
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.
Internet Applications
Chapter 17 DNS (Domain Name System)
Introduction to Networks
Chapter 19 DNS (Domain Name System)
Session 6 INST 346 Technologies, Infrastructure and Architecture
Chapter 9: Domain Name Servers
Introduction to Communication Networks
Domain Name System (DNS)
Chapter 7: Application layer
Cookies, Web Cache & DNS Dr. Adil Yousif.
Domain Name System (DNS)
Chapter 19 DNS (Domain Name System)
DNS: Domain Name System
Domain Name System (DNS)
FTP, SMTP and DNS 2: Application Layer.
Presentation transcript:

Fall Ch 8- DNS© Jörg Liebeherr and Magda El Zarki, 2002 Domain Name Service (DNS)

Fall Ch 8- DNS© Jörg Liebeherr and Magda El Zarki, 2002 Outline What is DNS? What services does it provide? How does it operate? Message format Types of messages

Fall Ch 8- DNS© Jörg Liebeherr and Magda El Zarki, 2002 What is DNS? DNS is a host name to IP address translation service DNS is  a distributed database implemented in a hierarchy of name servers  an application level protocol for message exchange between clients and servers

Fall Ch 8- DNS© Jörg Liebeherr and Magda El Zarki, 2002 Why DNS? It is easier to remember a host name than it is to remember an IP address. An name has more meaning to a user than a 4 byte number. Applications such as FTP, HTTP, , etc., all require the user to input a destination. The user generally enters a host name. The application takes the host name supplied by the user and forwards it to DNS for translation to an IP address.

Fall Ch 8- DNS© Jörg Liebeherr and Magda El Zarki, 2002 DNS Services Besides the address translation service, DNS also provides the following services:  Host aliasing: a host with a complicated name can have one or more aliases that are simpler to remember,e.g., relay1.west- coast.media.com -> media.com. The longer name is the canonical hostname, the shorter the alias hostname.

Fall Ch 8- DNS© Jörg Liebeherr and Magda El Zarki, 2002 DNS Services (cont’d)  Mail server aliasing: same as above, aliases can exist for long canonical host names.  Load Balancing: a set of servers can have one name mapped onto several machines. DNS provides the full list of names to the end user’s application which generally takes the first one in the list. DNS rotates the names on the list.

Fall Ch 8- DNS© Jörg Liebeherr and Magda El Zarki, 2002 How does it work? DNS works by exchanging messages between client and server machines. A client application will pass the destination host name to the DNS process (in Unix referred to as the gethostbyname() routine) to get the IP address. The application then sits and waits for the response to return.

8 DNS Why not centralize DNS? single point of failure traffic volume distant centralized database maintenance doesn’t scale!

9 Root DNS Servers com DNS servers org DNS serversedu DNS servers poly.edu DNS servers umass.edu DNS servers yahoo.com DNS servers amazon.com DNS servers pbs.org DNS servers Distributed, Hierarchical Database Client wants IP for 1 st approx: client queries a root server to find com DNS server client queries com DNS server to get amazon.com DNS server client queries amazon.com DNS server to get IP address for

10 DNS: Root name servers contacted by local name server that can not resolve name root name server:  contacts authoritative name server if name mapping not known  gets mapping  returns mapping to local name server 13 root name servers worldwide 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 36 other locations) i Autonomica, Stockholm (plus 28 other locations) k RIPE London (also 16 other locations) m WIDE Tokyo (also Seoul, Paris, SF) a Verisign, Dulles, VA c Cogent, Herndon, VA (also LA) d U Maryland College Park, MD g US DoD Vienna, VA h ARL Aberdeen, MD j Verisign, ( 21 locations)

11 TLD and Authoritative Servers Top-level domain (TLD) servers:  responsible for com, org, net, edu, etc, and all top- level country domains uk, fr, ca, jp.  Network Solutions maintains servers for com TLD  Educause for edu TLD Authoritative DNS servers:  organization’s DNS servers, providing authoritative hostname to IP mappings for organization’s servers (e.g., Web, mail).  can be maintained by organization or service provider

2: Ap plic ati on La yer 12 Local Name Server does not strictly belong to hierarchy each ISP (residential ISP, company, university) has one.  also called “default name server” when host makes DNS query, query is sent to its local DNS server  acts as proxy, forwards query into hierarchy

Fall Ch 8- DNS© Jörg Liebeherr and Magda El Zarki, 2002 DNS Queries Recursive:  The client machine sends a request to the local name server, which, if it does not find the address in its database, sends a request to the root name server, which, in turn, will route the query to an intermediate or authoritative name server. Note that the root name server can contain some hostname to IP address mappings. The intermediate name server always knows who the authoritative name server is.

Fall Ch 8- DNS© Jörg Liebeherr and Magda El Zarki, 2002 DNS Queries (cont’d) Iterative:  The local server queries the root server. If address not in its database, will have the name/address of an intermediate or authoritative name server and forward that information to the local name server so that it can directly communicate with the intermediate or authoritative name server. This is to prevent the overloading of the root servers that handle millions of requests.

15 requesting host cis.poly.edu gaia.cs.umass.edu root DNS server local DNS server dns.poly.edu authoritative DNS server dns.cs.umass.edu 7 8 TLD DNS server DNS name resolution example Host at cis.poly.edu wants IP address for gaia.cs.umass.edu iterated query: rcontacted server replies with name of server to contact r“I don’t know this name, but ask this server”

16 requesting host cis.poly.edu gaia.cs.umass.edu root DNS server local DNS server dns.poly.edu authoritative DNS server dns.cs.umass.edu 7 8 TLD DNS server 3 recursive query: rputs burden of name resolution on contacted name server rheavy load? DNS name resolution example

17 DNS: caching and updating records once (any) name server learns mapping, it caches mapping  cache entries timeout (disappear) after some time  TLD servers typically cached in local name servers  Thus root name servers not often visited update/notify mechanisms under design by IETF  RFC 2136 

Fall Ch 8- DNS© Jörg Liebeherr and Magda El Zarki, 2002 Operation of DNS DNS uses caching to increase the speed with which it does the translation. The DNS data is stored in the database in the form of resource records (RR). The RRs are directly inserted in the DNS messages. The RRs are a 4 tuple that consist of: {name, value, type, TTL}.

Fall Ch 8- DNS© Jörg Liebeherr and Magda El Zarki, 2002 RRs TTL: time to live, used to indicate when an RR can be removed from the DNS cache. Type =  A - then NAME is a hostname and Value its IP address  NS - then NAME is a domain name and Value is the IP address of an authoritative name server  CNAME - then NAME is an alias for a host and Value is the canonical name for the host  MX - then NAME is an alias for an host and Value is the the canonical name for the server

20 DNS records DNS: distributed db storing resource records (RR) oType=NS oname is domain (eg., foo.com) ovalue is hostname of authoritative name server for this domain RR format: (name, value, type, ttl) oType=A oname is hostname ovalue is IP address oType=CNAME oname is alias name for some “canonical” (the real) name, eg., is really servereast.backup2.ibm.co m o value is canonical name oType=MX ovalue is name of mailserver associated with name

21 DNS protocol, messages DNS protocol : query and reply messages, both with same message format msg header ridentification: 16 bit # for query, reply to query uses same # rflags:  query or reply  recursion desired  recursion available  reply is authoritative

22 DNS protocol, messages Name, type fields for a query RRs in response to query records for authoritative servers additional “helpful” info that may be used

Fall Ch 8- DNS© Jörg Liebeherr and Magda El Zarki, 2002 Message Fields Identification - identifies a query and is copied in the reply message to match it to the query at the client side. Flags - one bit flag set to indicate whether the message is a query or a reply. Another bit to identify if reply is from an authoritative sender or not. A third bit is used to indicate that recursion method is desired.

Fall Ch 8- DNS© Jörg Liebeherr and Magda El Zarki, 2002 Fields cont’d Questions - contains the name that is being queried and the type, ie type A or MX. Answers - contains the RRs for the name(s) that were requested Authority - contains records of authoritative servers Additional Info - e.g., if type of query is MX, then this info can be a Type - A RR containing the IP address of the canonical hostname

25 Inserting records into DNS example: new startup “Network Utopia” register name networkuptopia.com at DNS registrar (e.g., Network Solutions)  provide names, IP addresses of authoritative name server (primary and secondary)  registrar inserts two RRs into com TLD server: (networkutopia.com, dns1.networkutopia.com, NS) (dns1.networkutopia.com, , A) create authoritative server Type A record for Type MX record for networkutopia.com

Fall Ch 8- DNS© Jörg Liebeherr and Magda El Zarki, 2002 Summary DNS provides a mechanism for maintaining the user friendliness of the Internet by hiding some of the operational details. DNS servers have to be created manually. Recently an update protocol was introduced that allows DNS to exchange data for additions and deletions.