The Domain Name System (DNS)



Similar documents
Lecture 2 CS An example of a middleware service: DNS Domain Name System

The Domain Name System (DNS)

Names & Addresses. Names & Addresses. Names vs. Addresses. Identity. Names vs. Addresses. CS 194: Distributed Systems: Naming

Application Protocols in the TCP/IP Reference Model

CS 348: Computer Networks. - DNS; 22 nd Oct Instructor: Sridhar Iyer IIT Bombay

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

INTERNET DOMAIN NAME SYSTEM

Chapter 9: Name Services. 9.1 Introduction 9.2 Name services and the DNS 9.3 Directory services 9.6 Summary

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

Understanding DNS (the Domain Name System)

DNS Domain Name System

CS3600 SYSTEMS AND NETWORKS

Distributed Systems. 09. Naming. Paul Krzyzanowski. Rutgers University. Fall 2015

CS 355. Computer Networking. Wei Lu, Ph.D., P.Eng.

Domain Name System Richard T. B. Ma

Part 5 DNS Security. SAST01 An Introduction to Information Security Martin Hell Department of Electrical and Information Technology

DNS: Domain Name System

Understand Names Resolution

Domain Name System DNS

- Domain Name System -

The Domain Name System

Domain Name Servers. Domain Types WWW host names. Internet Names. COMP476 Networked Computer Systems. Domain Name Servers

Domain Name System (or Service) (DNS) Computer Networks Term B10

Names vs. Addresses. Flat vs. Hierarchical Space. Domain Name System (DNS) Computer Networks. Lecture 5: Domain Name System

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

Domain Name System Security

Domain Name System (DNS)

The Application Layer: DNS

Introduction to Network Operating Systems

NET0183 Networks and Communications

Outline. Definition. Name spaces Name resolution Example: The Domain Name System Example: X.500, LDAP. Names, Identifiers and Addresses

Domain Name System (DNS)

CS3250 Distributed Systems

Domain Name System. Heng Sovannarith

DNS Domain Name System

Domain Name System (DNS) Reading: Section in Chapter 9

Domain Name System (DNS) RFC 1034 RFC

The Domain Name System

Internet-Praktikum I Lab 3: DNS

How To Map Between Ip Address And Name On A Domain Name System (Dns)

Chapter 25 Domain Name System Copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

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

DNS : Domain Name System

Naming. Name Service. Why Name Services? Mappings. and related concepts

How to Add Domains and DNS Records

The Domain Name System

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

3. The Domain Name Service

Copyright

Chapter 23 The Domain Name System (DNS)

Applications & Application-Layer Protocols: The Domain Name System and Peerto-Peer

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

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

DATA COMMUNICATOIN NETWORKING

Computer Networks: Domain Name System

CMPE 80N: Introduction to Networking and the Internet

DNS. Computer Networks. Seminar 12

Chapter 24 The Domain Name System (DNS)

Introduction to the Domain Name System

Introduction to DNS CHAPTER 5. In This Chapter

THE DOMAIN NAME SYSTEM DNS

The Use of DNS Resource Records

CS640: Computer Networks. Naming /ETC/HOSTS

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

ECE 4321 Computer Networks. Network Programming

My Services Online Service Support. User Guide for DNS and NTP services

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

Talk-101 User Guide. DNSGate

DNS and BIND. David White

Section 1 Overview Section 2 Home... 5

Hostnames. HOSTS.TXT was a bottleneck. Once there was HOSTS.TXT. CSCE515 Computer Network Programming. Hierarchical Organization of DNS

Domain Name Server. Training Division National Informatics Centre New Delhi

How To Guide Edge Network Appliance How To Guide:

Domain Name System (DNS)

CS 43: Computer Networks Naming and DNS. Kevin Webb Swarthmore College September 17, 2015

Domain Name System (DNS)

Internetworking with TCP/IP Unit 10. Domain Name System

1 DNS Packet Structure

Application-layer protocols

Domain Name System. DNS is an example of a large scale client-server application. Copyright 2014 Jim Martin

Networking Domain Name System

THE MASTER LIST OF DNS TERMINOLOGY. First Edition

THE MASTER LIST OF DNS TERMINOLOGY. v 2.0

4.1 NAMING ENTITIES 184 NAMING CHAP Names, Identifiers, and Addresses

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

How do I get to

Forouzan: Chapter 17. Domain Name System (DNS)

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

IP addresses have hierarchy (network & subnet) Internet names (FQDNs) also have hierarchy. and of course there can be sub-sub-!!

The Application Layer. CS158a Chris Pollett May 9, 2007.

Transcription:

The Domain Name System (DNS) Each Internet host is assigned a host name and an IP address Host names are structured character strings, e.g., www.cs.iastate.edu IP addresses are 32 bit integers, e.g., 129.186.3.6 DNS is the naming service of the Internet that resolve host names to IP addresses DNS allows users of Internet applications to refer to remote hosts by name rather than by address 1 Host name translated into IP address. The numbers 1 5 show the sequence of steps in the process 1

DNS Name Space Names in the DNS name space are called domain names A domain name identifies a realm of administrative authority within the Internet Domain names are structured names, i.e., they consist of multiple components Example domain names: cs.iastate.edu, ieee.org, ox.ac.uk The DNS name space is represented by a tree with two types of nodes Leaf nodes represent hosts Non leaf nodes represent domains Two types of top level domains Generic top level domains: com, edu, gov, etc. Country code top level domains: us, uk, fr, etc. 3 There are two types of top level domains Generic top level domains: com, edu, gov, etc. Country code top level domains: us, uk, cn, etc. root zone The DNS name space partitioned into zones 4 2

Zones The DNS name space is partitioned into zones Each zone corresponds to some administrative authority responsible for that portion of the name space Administrative responsibility over any zone may be divided by creating additional zones E.g., Princeton University zone is responsible for all subdomains except for EE and CS; EE and CS are separate zones Each zone is implemented by two or more name servers There is one primary name server that stores data for the zone There is one or more secondary name servers that download zone data from the primary server 5 DNS is implemented by a hierarchy of name servers. The root zone is implemented by 13 root server clusters which are authoritative for queries to the top level domains of the Internet 6 3

Resource Records Zone data are stored in resource records. Each resource record is a 5 tuple (Name, Value, Type, Class, TTL) The Name field specifies a domain or a host The Type field specifies how the Value field should be interpreted The Class field is set to IN for Internet The TTL field indicates how long the resource record may be cached Type of Record Associated Entity Value A Host IP address of the host NS Domain Name of a name server for the domain CNAME Host Canonical name of the host; used to define an alias MX Domain Name of a mail server for the domain 7 Resource Records in Root Name Server (edu, a3.nstld.com, NS) (a3.nstld.com, 192.5.6.32, A) (com, a.gtld servers.net, NS) (a.gtld servers.net, 192.5.6.30, A) (type NS and type A records for other top level domains) A root name server maintains an NS record and an A record for each toplevel domain (e.g., edu, com, us, uk). There are 13 root name servers, with names in the form letter.rootservers.net, where letter ranges from A to M. 8 4

Resource Records in edu Name Server <princeton.edu, dns.princeton.edu, NS> < dns.princeton.edu, 128.112.129.15, A> <purdue.edu, ns.purdue.edu, NS> <ns.purdue.edu, 128.210.7.163, A> (type NS and type A records for other domains under the edu domain) The edu name server maintains an NS record and an A record for each domain under the edu domain 9 Resource Records in Princeton Name Server (cs.princeton.edu, dns1.cs.princeton.edu, NS) (dns1.cs.princeton.edu, 128.112.136.10, A) (ee.princeton.edu, helios.ee.princeton.edu, NS) (helios.ee.princeton.edu, 128.196.28.166, A) (jupiter.physics.princeton.edu, 128.196.4.1, A) (saturn.physics.princeton.edu, 128.196.4.2, A) (type A records for other hosts in Princeton University) EE and CS do not belong to the Princeton zone, so Princeton name server does not contain resource records for EE and CS 10 5

Resource Records in CS Name Server (www.cs.princeton.edu, coreweb.cs.princeton.edu, CNAME) (coreweb.cs.princeton.edu, 128.112.136.35, A) (cs.princeton.edu, mail.cs.princeton.edu, MX) (mail.cs.princeton.edu, 128.112.136.72, A) (penguins.cs.princeton.edu, 128.112.155.166, A) (type A records for other hosts in CS) 11 Name Resolution The client program running on each Internet host is initialized with the address of a local name server The local name server knows the address of one or more root name servers To resolve a name, a client sends a query to the local name server The local name server queries other name servers on the client s behalf if it cannot resolve the name 12 6

Iterative vs. Recursive Name Resolution In iterative name resolution, if the queried name server does not have a match for the queried name, it returns the IP address of a lower level name server The local name server then queries the lower level name server; It continues this process until it locates a name server that can resolve the queried name In recursive name resolution, if the queried name server does not have a match for the queried name, it requests a lower level name server to resolve the queried name The queried name server does not refer the local name server to a different name server as in iterative name resolution 13 Should be dns.princeton.edu Iterative name resolution: the numbers 1 10 show the sequence of steps in the process. 14 7

8: 128.112.155.166 3: penguins.cs.princeton.edu 7: 128.112.155.166 4: penguins.cs.princeton.edu 6: 128.112.155.166 5: penguins.cs.princeton.edu Recursive name resolution: the numbers 1 10 show the sequence of steps in the process. 15 Comparison between Recursive and Iterative Name Resolutions Recursive name resolution puts higher demand on each name server Recursive name resolution often has lower communication cost than iterative name resolution Located in Ames Resolving www.cs.vu.nl: recursive name resolution has lower communication cost than iterative name resolution 16 8

Caching (1) Caching is used in DNS name servers A name server can store DNS query results for a period of time determined in the TTL field of the resource record Benefits of caching Reduces the burden on the root servers Reduces DNS traffic across the Internet Increases performance in Internet applications 17 Caching (2) With iterative name resolution, only local name servers perform caching With recursive name resolution, all name servers can perform caching Server for node Should resolve Receives and caches cs penguins princeton cs address of penguins.cs.princeton.edu edu princeton address of penguins.cs.princeton.edu #<cs.princeton.edu> root edu address of penguins.cs.princeton.edu #<cs.princeton.edu> #<princeton.edu> Recursive name resolution of penguins.cs.princeton.edu. Name servers cache intermediate results. The notation #<name> represents the address of the name server responsible for name. 18 9