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



Similar documents
Domain Name System Richard T. B. Ma

DNS: Domain Name System

Domain Name System DNS

CMPE 80N: Introduction to Networking and the Internet

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

CMPE 80N: Introduction to Networking and the Internet

Naming and the DNS. Focus. How do we name hosts etc.? Application Presentation Topics. Session Domain Name System (DNS) /URLs

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

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

The Application Layer: DNS

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

Chapter 2 Application Layer

DNS and P2P File Sharing

DNS: Distributed Name System

DNS. Spring 2016 CS 438 Staff 1

Domain Name System (DNS) RFC 1034 RFC

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

Domain Name System (DNS)

Goals of Today s Lecture. Separating Naming and Addressing. Host Names vs. IP addresses. Domain Name System (DNS) EE 122: Domain Name System

NET0183 Networks and Communications

C 1. Last Time. CSE 486/586 Distributed Systems Domain Name System. Review: Causal Ordering. Review: Causally Ordered Multicast.

internet technologies and standards

DNS: Domain Name System

Distributed Systems. Naming

Domain Name System (DNS)

FTP: the file transfer protocol

Cours du 22 novembre

DATA COMMUNICATOIN NETWORKING

Ch 6: Networking Services: NAT, DHCP, DNS, Multicasting

Network(Security(Protocols(

Ch 6: Networking Services: NAT, DHCP, DNS, Multicasting, NTP

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

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

Application layer Protocols application transport

Network programming, DNS, and NAT. Copyright University of Illinois CS 241 Staff 1

2.5 DNS The Internet s Directory Service

DNS and electronic mail. DNS purposes

Internet-Praktikum I Lab 3: DNS

DNS Domain Name System

CS640: Computer Networks. Naming /ETC/HOSTS

Announcements! DNS: Domain Name System! Goals of Todayʼs Lecture! Transmission Control Protocol (TCP)! Reliable Delivery! Reliable Delivery, conʼt!

The Domain Name System

Application Layer. Abusayeed Saifullah. CS 5600 Computer Networks. These slides are adapted from Kurose and Ross

3. The Domain Name Service

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

Distributed Systems. 22. Naming Paul Krzyzanowski. Rutgers University. Fall 2013

Digital Communication in the Modern World Application Layer cont. DNS, SMTP

Computer Names. based on chapter 10 of CompTIA Network+ Exam Guide, 4th edition, by Mike Meyers OVERVIEW

CSE/ISE 311: Systems Administra5on Networking 2

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

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

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

FTP: the file transfer protocol

Computer Networks & Security 2014/2015

Application-layer protocols

Understanding DNS (the Domain Name System)

Computer Networks. Instructor: Niklas Carlsson

CS3600 SYSTEMS AND NETWORKS

DNS Basics. DNS Basics

The Domain Name System (DNS)

Chapter 23 The Domain Name System (DNS)

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

The Domain Name System (DNS)

The Domain Name System

Networking Overview. (as usual, thanks to Dave Wagner and Vern Paxson)

DNS : Domain Name System

Domain Name System (DNS) Omer F. Rana. Networks and Data Communications 1

Domain Name System. CS 571 Fall , Kenneth L. Calvert University of Kentucky, USA All rights reserved

Application Protocols in the TCP/IP Reference Model

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

DNS: Domain Names. DNS: Domain Name System. DNS: Root name servers. DNS name servers

DNS Domain Name System

CS3250 Distributed Systems

Network Layer 4- density - A Top Down Approach

Introduction to Network Operating Systems

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

The Domain Name System

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

- Domain Name System -

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

Computer Networks: Domain Name System

Resilient Networking. Overview of DNS Known attacks on DNS Denial-of-Service Cache Poisoning. Securing DNS Split-Split-DNS DNSSEC.

The Domain Name System

Introduction to the Domain Name System

CS244A Review Session Routing and DNS

Domain Name System (DNS) Fundamentals

416 Distributed Systems. Feb 24, 2016 DNS and CDNs

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

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

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

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

ECE 4321 Computer Networks. Network Programming

HW2 Grade. CS585: Applications. Traditional Applications SMTP SMTP HTTP 11/10/2009

Computer Networks Prof. S. Ghosh Department of Computer Science and Engineering Indian Institute of Technology, Kharagpur Lecture - 34 DNS & Directory

THE DOMAIN NAME SYSTEM DNS

The Domain Name System

Understand Names Resolution

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

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

Transcription:

Names vs. Addresses Computer Networks Lecture 5: Domain Name System Names are easier for human to remember www.umich.edu vs. 141.213.4.4 Addresses can be changed without changing names move www.umich.edu to 128.212.5.5 useful for renumbering when changing providers Name could map to multiple addresses google.com maps to multiple replicas of the Web site and to different nearby addresses in different geographies to reduce latency or to provide localized content Multiple names could map to the same address aliases such as graphics.eecs.umich.edu and www.eecs.umich.edu Flat vs. Hierarchical Space Example of flat name space: Examples of hierarchical name space: Examples of hierarchical address space: Why form hierarchy? Advantage of hierarchical space: Domain Name System (DNS) DNS consists of: 1. an hierarchical name space: name allocation decentralized to domains host.sub-subdomain.....subdomain.domain[.root] host: machine name, can be an alias sub-subdomain: department (engin, eecs, physics, math) subdomain: institution, company, geography, service provider (umich, mi, comcast) domain: most significant segment (edu, com, org, net, gov, us, it) Examples of Fully Qualified Domain Names (FQDNs): www.eecs.umich.edu, maps.google.com

DNS Hierarchical Name Space unnamed root..com.edu.org.ac.uk.zw.arpa Domain Name System (DNS) DNS consists of: 2. an hierarchical name resolution infrastructure: a distributed database storing resource records (RRs) generic domains country domains client-, query-reply protocol umich ac inaddr Berkeley Internet Name Domain (BIND): the most common implementation of the DNS name resolution architecture engin eecs cam 12 login holly usr 34 holly.eecs.umich.edu usr.cam.ac.uk Top-Level Domain (TLD) 56 12.34.56.0/24 DNS Resource Record RR format: (name, value, type, ttl) type=a - name is hostname - value is IP address type=ns - name is domain (e.g., umich.edu) - value is IP address of authoritative name for this domain type=cname - name is alias name for some canonical (real) name for example: graphics.eecs.umich.edu is really www.eecs.umich.edu - value is canonical name DNS Resource Record DNS lookup returns only entries matching type: Hence when web browser couldn t find an Address entry, mail may still find a Mail exchange entry Try: % dig smtp.eecs.umich.edu A % dig smtp.eecs.umich.edu MX type=mx - value is name of mail exchange associated with name

DNS Name Servers DNS database is partitioned into zones A zone holds one or more domains, analogy: DNS domains zones File System folders volumes Name : a process managing a zone Authoritative or primary name : the owner of a zone providing authoritative mappings for organization s names (e.g., web and mail) can be maintained by an organization or its service provider DNS Name Servers Zones may be replicated (for what purpose?) secondary s: replicas Zone transfer: downloading a zone from the primary to the replicas A name can be the primary for one or more zones, and the secondary for one or more zones DNS Name Resolution Example: host at cis.poly.edu wants IP address for gaia.cs.umass.edu requesting host cis.poly.edu 9 DNS response DNS query 2 local DNS dns.poly.edu 7 4 8 6 5 3 Root Top-level.edu domain authoritative.umass.edu DNS dns.cs.umass.edu DNS Name Resolution: Client Side Client: has linked in consults /etc/resolv.conf to find local name forms FQDN queries up to 3 local name s in turn if no response, double timeout and retry for 4 rounds gaia.cs.umass.edu

DNS Name Resolution: Client Side Local name : when a host makes a DNS query, the query is sent to its local name each ISP (residential ISP, company, university) has one also called default name acts as a proxy, forwards query into the DNS hierarchy parses FQDN from right to left always goes to ROOT first consults /etc/named.conf, named.root, and zonefile to find name s caches resolved name DNS Root Name Servers E NASA Mt View, CA F Internet Software C Palo Alto, CA (and 17 other locations) 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) B USC-ISI Marina del Rey, CA L ICANN Los Angeles, CA K RIPE London (also Amsterdam, Frankfurt) I Autonomica, Stockholm (plus 3 other locations) 13 root name s worldwide M WIDE Tokyo Recursive vs. Iterative Query Recursive query: local name must resolve the name (or return not found ); if necessary, by asking other name s for resolution 9 DNS response DNS query 2 Iterative query: contacted replies with the name of address of sub-domain I don t know this name, but ask this other name requesting name visits each name referred to 7 4 8 6 5 3 Why not always do recursive resolution? DNS Caching Once a (any) name learns of a mapping, it caches the mapping to reduce latency in DNS translation Cache entries timeout (disappear) after some time-to-live (TTL) TTL is assigned by the authoritative (owner of the host name) Local name s typically also cache TLD name s cache to reduce visits to root name s all other name s cache referrals cache both positive and negative results

DNS Name Resolution Exercises Show the DNS resolution paths, assuming the DNS hierarchy shown and assuming caching, starting with empty caches: thumper.cisco.com looks up bas.cs.princeton.edu thumper.cisco.com looks up opt.cs.princeton.edu thumper.cisco.com looks up cat.ee.princeton.edu thumper.cisco.com looks up ket.physics.princeton.edu bas.cs.princeton.edu looks up dog.ee.princeton.edu opt.cs.princeton.edu looks up cat.ee.princeton.edu DNS Design Points DNS serves a core Internet function At which protocol layer does the DNS operate? host, routers, and name s communicate to resolve names (name to address translation) complexity at network s edge Why not centralize DNS? application transport network link physical bas opt DNS is exploited for load balancing, how? Peterson & Davie 2nd. ed., pp. 627, 628 DNS Protocol, Message Format Same message format for both query and reply messages flags: - query or reply - recursion desired - recursion available - reply is authoritative 16 bit # for query, reply returns the same # name and type fields of query Resource Records (RRs) in response to query records for authoritative s additional helpful info