Domain Name System (DNS)

Slides:



Advertisements
Similar presentations
DNS: Domain Name System CMPSCI 491G: Computer Networking Lab V. Arun Slides adapted from Liebeherr & Zarki, Kurose & Ross, Kermani.
Advertisements

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.
Web Server Administration
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.
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.
Domain Name System IP assigns 32-bit addresses to hosts (interfaces)
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.
McGraw-Hill©The McGraw-Hill Companies, Inc., Chapter 25 Domain Name System.
Domain Name System (DNS) Network Information Center (NIC) : HOSTS.TXT.
CSEE W4140 Networking Laboratory Lecture 10: DNS Jong Yul Kim
Application Layer At long last we can ask the question - how does the user interface with the network?
COMS/CSEE 4140 Networking Laboratory Lecture 09 Salman Abdul Baset Spring 2008.
Application Layer session 1 TELE3118: Network Technologies Week 12: DNS Some slides have been taken from: r Computer Networking: A Top Down Approach.
CSEE W4140 Networking Laboratory Lecture 10: DNS Jong Yul Kim
W4140 Network Laboratory Lecture 11 Nov 27 - Fall 2006 Shlomo Hershkop Columbia University.
CompSci 356: Computer Network Architectures Lecture 20: Domain Name System and Content distribution networks Chapter Xiaowei Yang
25.1 Chapter 25 Domain Name System Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
DOMAIN NAME SYSTEM. Introduction  There are several applications that follow client server paradigm.  The client/server programs can be divided into.
Domain Name System ( DNS )  DNS is the system that provides name to address mapping for the internet.
DNS. Outline r Domain Name System r DNS Hierarchy r Resolution.
Module 12: Domain Name System (DNS)
Chapter 25 Domain Name System
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.
Ch25 Ameera Almasoud 1 Based on Data Communications and Networking, 4th Edition. by Behrouz A. Forouzan, McGraw-Hill Companies, Inc., 2007.
11.1 © 2004 Pearson Education, Inc. Exam Managing and Maintaining a Microsoft® Windows® Server 2003 Environment Lesson 11: Introducing WINS, DNS,
DNS (Domain Name System)
CS 4396 Computer Networks Lab
The Domain Name System. Computer Center, CS, NCTU 2 History of DNS  Before DNS ARPAnet  HOSTS.txt contains all the hosts’ information  Maintained by.
Data Communications and Computer Networks Chapter 2 CS 3830 Lecture 10 Omar Meqdadi Department of Computer Science and Software Engineering University.
Chapter 16 – DNS. DNS Domain Name Service This service allows client machines to resolve computer names (domain names) to IP addresses DNS works at the.
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.
DNS and C# SWE 344 Internet Protocols & Client Server Programming.
Domain names and IP addresses Resolver and name server DNS Name hierarchy Domain name system Domain names Top-level domains Hierarchy of name servers.
25.1 Chapter 25 Domain Name System Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Network Protocols Chapter 25 (Data Communication & Networking Book): Domain Name System (DNS) 1.
Chapter 17 Domain Name System
25.1 Chapter 25 Domain Name System Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Chapter 29 Domain Name System (DNS) Allows users to reference computer names via symbolic names translates symbolic host names into associated IP addresses.
Fall 2006Computer Networks25-1 Chapter 25. Domain Name System 25.1 Name Space 25.2 Domain Name Space 25.3 Distribution of Name Space 25.4 DNS in the Internet.
Domain Name System CH 25 Aseel Alturki
October 8, 2015 University of Tulsa - Center for Information Security Microsoft Windows 2000 DNS October 8, 2015.
Pharming Group 10: Phuc H. Dao Anita Lugonja. Motivation To give students an opportunity to learn about DNS poisoning To give students an opportunity.
Internet and Intranet Protocols and Applications Lecture 5 Application Protocols: DNS February 20, 2002 Joseph Conron Computer Science Department New York.
1 Kyung Hee University Chapter 18 Domain Name System.
Configuring Name Resolution and Additional Services Lesson 12.
Domain Name System (DNS). DNS Server Service Overview of Domain Name System What Is a Domain Namespace? Standards for DNS Naming.
CS 3830 Day 10 Introduction 1-1. Announcements r Quiz #2 this Friday r Program 2 posted yesterday 2: Application Layer 2.
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.
1 Kyung Hee University Chapter 19 DNS (Domain Name System)
BZUPAGES.COM. Presented to: Sir. Muizuddin sb Presented by: M.Sheraz Anjum Roll NO Atif Aneaq Roll NO Khurram Shehzad Roll NO Wasif.
Domain Name System (DNS)
Web Server Administration Chapter 4 Name Resolution.
COMP 431 Internet Services & Protocols
Internet Naming Service: DNS* Chapter 5. The Name Space The name space is the structure of the DNS database –An inverted tree with the root node at the.
Domain Name System. McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 So what is DNS Resolution? DNS Resolution is the procedure used to resolve a IP.
1 Internet Service DNS & BIND OPS335 Seneca College of Applied Technology.
System Administration(SAD622S) Name of Presenter: Shadreck Chitauro Lecturer 18 July 2016 Faculty of Computing and Informatics.
Domain Name System (DNS)
Networking Applications
Chapter 17 DNS (Domain Name System)
Chapter 19 DNS (Domain Name System)
Chapter 25 Domain Name System.
IMPLEMENTING NAME RESOLUTION USING DNS
Net 323 D: Networks Protocols
Chapter 19 DNS (Domain Name System)
Presentation transcript:

Domain Name System (DNS)

Outline Functions of DNS Design goals of DNS History of DNS Elements of DNS Name space and resource records Name servers Name resolvers

Functions of DNS Map an easy-to-remember name to an IP address Without DNS, to send an IP packet, we’d have to remember 66.102.7.99 64.236.24.28 128.195.1.79 With DNS www.google.com 66.102.7.99 www.cnn.com 64.236.24.28 www.ics.uci.edu 128.195.1.79 DNS also provides inverse look up that maps an IP address to an easy-to-remember name

Design goals of DNS The primary goal is a consistent name space which will be used for referring to resources. Consistent: same names should refer to same resources Resources: IP addresses, mail servers Enable Distributed management The size of the name database will be large. The updates will be frequent. Design goals determine its structure A hierarchical name space

Before there was DNS …. …. there was the HOSTS.TXT file Before DNS (until 1985), the name-to-IP address was done by downloading a single file (hosts.txt) from a central server with FTP. Names in hosts.txt are not structured. The hosts.txt file still works on most operating systems. It can be used to define local names.

Elements of DNS Domain name space and resource records (RRs) Name servers Name resolvers

Domain Namespace .(root) Top-level domains org edu com gov uci mit ics eng www smtp spirit Domain namespace is a hierarchical and logical tree structure. The label from a node to root in the DNS tree represents a DNS name Each subtree below a node is a DNS domain. DNS domain can contain hosts or other domains (subdomains) Examples of DNS domains: .edu, uci.edu, ics.uci.edu

Distributed Management .(root) Top-level domains org edu com gov Managed by ICS Managed by UCI uci mit eng ics www spirit smtp Below top-level domain, administration of name space is delegated to organizations Each organization can delegate further

Domain names Names of hosts can be assigned independent of host locations on a link layer network, IP network or autonomous system My computer’s DNS name xiaowei.net needs not change even if my computer’s IP address has changed In practice, allocation of the domain names generally follows the allocation of IP address, e.g., All hosts with network prefix 128.143/16 have domain name suffix virginia.edu All hosts on network 128.143.136/24 are in the Computer Science Department of the University of Virginia

Fully Qualified Domain Names .(root) org edu com gov uci mit ics eng www spirit smtp Every node in the DNS domain tree can be identified by a unique Fully Qualified Domain Name (FQDN). A FQDN (from right to left) consists of labels (“ics”,“uci”,”edu”) separated by a period (“.”) from root to the node. Each label can be up to 63 characters long. The total number of characters of a DNS name is limited to 255. FQDN contains characters, numerals, and dash character (“-”) FQDNs are not case-sensitive

Top-level domains Three types of top-level domains: Generic Top Level Domains (gTLD): 3-character code indicates the function of the organization Used primarily within the US Examples: gov, mil, edu, org, com, net Country Code Top Level Domain (ccTLD): 2-character country or region code Examples: us, va, jp, de Reverse domains: A special domain (in-addr.arpa) used for IP address-to-name mapping There are more than 200 top-level domains.

Generic Top Level Domains (gTLD) com Commercial organizations edu Educational institutions gov Government institutions int International organizations mil U.S. military institutions net Networking organizations org Non-profit organizations gTLDs are authoritatively administered by the Internet central name registration authority ICANN

Elements of DNS Domain name space and resource records (RRs) Domain namespace is a hierarchical tree structure A domain can be delegated to an organization We’ll discuss resource records shortly Name servers Name resolvers

Name Servers and Resolvers Hostname (neon.tcpip-lab.edu) HTTP Resolver IP address (128.143.71.21) I IP address (128.143.71.21) Hostname neon.tcpip-lab.edu Name server Name servers are server programs which hold information about the domain tree's structure and information associated with names Resolvers are programs that extract information from name servers in response to client queries.

Hierarchy of name servers The resolution of the hierarchical name space is done by a hierarchy of name servers Each server is responsible (authoritative) for a contiguous portion of the DNS namespace, called a zone. DNS server answers queries about hosts in its zone

DNS domain and zones . (root) .uci.edu .edu .mit.edu eng.uci..edu ics.uci.edu Domain Zone and domain Each zone is anchored at a specific domain node, but zones are not domains. A DNS domain is a branch of the namespace A zone is a portion of the DNS namespace generally stored in a file (It could consists of multiple nodes) A server can divide part of its zone and delegate it to other servers

Primary and secondary name servers For each zone, there must be a primary name server and a secondary name server for reliability reason The primary server (master server) maintains a zone file which has information about the zone. Updates are made to the primary server The secondary server copies data stored at the primary server. Adding a host: When a new host is added (“spirit.ics.uci.edu”) to a zone, the administrator adds the IP information on the host (IP address and name) to a configuration file on the primary server

Root name servers The root name servers know how to find the authoritative name servers for all top-level zones. There are only 13 root name servers Root servers are critical for the proper functioning of name resolution

Addresses of root servers (2005) A.ROOT-SERVERS.NET. (VeriSign, Dulles, VA) 198.41.0.4 B.ROOT-SERVERS.NET. (ISI, Marina Del Rey CA) 192.228.79.201 C.ROOT-SERVERS.NET. (Cogent Communications) 192.33.4.12 D.ROOT-SERVERS.NET. (University of Maryland) 128.8.10.90 E.ROOT-SERVERS.NET. (Nasa Ames Research Center) 192.203.230.10 F.ROOT-SERVERS.NET. (Internet Systems Consortium) 192.5.5.241 G.ROOT-SERVERS.NET. (US Department of Defense) 192.112.36.4 H.ROOT-SERVERS.NET. (US Army Research Lab) 128.63.2.53 I.ROOT-SERVERS.NET. (Stockholm, Sweden) 192.36.148.17 J.ROOT-SERVERS.NET. (Herndon, VA) 192.58.128.30 K.ROOT-SERVERS.NET. (London, United Kingdom) 193.0.14.129 L.ROOT-SERVERS.NET. (IANA, Los Angeles) 198.32.64.12 M.ROOT-SERVERS.NET. (WIDE, Tokyo) 202.12.27.33

Domain name resolution User program issues a request for the IP address of a hostname Local resolver formulates a DNS query to the name server of the host Name server checks if it is authorized to answer the query. If yes, it responds. Otherwise, it will query other name servers, starting at the root tree When the name server has the answer it sends it to the resolver.

Recursive and Iterative Queries There are two types of queries: Recursive queries Iterative (non-recursive) queries The type of query is determined by a bit in the DNS query Recursive query: When the name server of a host cannot resolve a query, the server issues a query to resolve the query Iterative queries: When the name server of a host cannot resolve a query, it sends a referral to another server to the resolver

Recursive queries In a recursive query, the resolver expects the response from the name server If the server cannot supply the answer, it will send the query to the “closest known” authoritative name server (here: In the worst case, the closest known server is the root server) The root sever sends a referral to the “edu” server. Querying this server yields a referral to the server of “uci.edu” A “referral” is IP address to an intermediate name server … and so on root server 1st query: spirit.ics.uci.edu Referral to edu name server 2nd query: spirit.ics.uci.edu Referral to uci.edu name server Name edu server server 3rd query: spirit.ics.uci.edu response query Referral to ics.uci.edu name sever uci.edu server 4th query: spirit.ics.uci.edu Resolver IP address of spirit.ics.uci.edu ics.uci.edu server

Iterative queries root server In an iterative query, the name server sends a closest known authoritative name server if it does not know the answer to the query. The resolver queries the referral. This involves more work for the resolver Name server 1st query: spirit.ics.uci.edu referral to root server referral to edu server edu server query 2nd query referral to uci.edu server uci.edu server 3rd query referral to ics.uci.edu server Resolver 4th query ics.uci.edu server IP address of spirit.ics.uci.edu

Caching To reduce DNS traffic, name servers caches information on domain name/IP address mappings When an entry for a query is in the cache, the server does not contact other servers Note: If an entry is sent from a cache, the reply from the server is marked as “unauthoritative” Caching-only servers

Inverse query .(root) arpa org edu com gov uci mit in-addr ics eng 4.195.128 www spirit smtp What’s the host name for IP address 128.195.4.150 IP address is converted to domain name: 150.4.195.128.in-addr.arpa Resolver sends query for this address

Canonical names and aliases ;; ANSWER SECTION: www.ics.uci.edu. 86400 IN CNAME arachne.ics.uci.edu. arachne.ics.uci.edu. 86400 IN A 128.195.1.79 Hosts can have several names. One is called canonical names and others are called aliases

Resource Records The database records of the DNS distributed database are called resource records (RR) Resource records are stored in configuration files (zone files) at name servers. Resource records for a zone db.mylab.com $TTL 86400 mylab.com. IN SOA PC4.mylab.com. hostmaster.mylab.com. ( 1 ; serial 28800 ; refresh 7200 ; retry 604800 ; expire 86400 ; minimum ttl ) ; mylab.com. IN NS PC4.mylab.com. ; localhost A 127.0.0.1 PC4.mylab.com. A 10.0.1.41 PC3.mylab.com. A 10.0.1.31 PC2.mylab.com. A 10.0.1.21 PC1.mylab.com. A 10.0.1.11

Resource Records Max. age of cached data in seconds db.mylab.com $TTL 86400 mylab.com. IN SOA PC4.mylab.com. Hostmaster.mylab.com. ( 1 ; serial 28800 ; refresh 7200 ; retry 604800 ; expire 86400 ; minimum ttl ) ; mylab.com. IN NS PC4.mylab.com. localhost A 127.0.0.1 PC4.mylab.com. A 10.0.1.41 PC3.mylab.com. A 10.0.1.31 PC2.mylab.com. A 10.0.1.21 PC1.mylab.com. A 10.0.1.11 Max. age of cached data in seconds Start of authority (SOA) record. Means: “This name server is authoritative for the zone Mylab.com” PC4.mylab.com is the name server hostmaster@mylab.com is the email address of the person in charge Name server (NS) record. One entry for each authoritative name server Address (A) records. One entry for each hostaddress

Summary Functions of the Domain Name System Map a DNS name to an IP address Design goals Provide a consistent namespace Enable distributed management Key elements A hierarchical tree structure name space Name servers that store name to resource record mapping Resolvers that query servers to resolve names