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

Similar documents
DNS: Domain Name System

Domain Name System Richard T. B. Ma

CMPE 80N: Introduction to Networking and the Internet

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

CMPE 80N: Introduction to Networking and the Internet

Chapter 2 Application Layer

DNS and P2P File Sharing

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

Domain Name System (DNS)

internet technologies and standards

DNS: Domain Name System

DATA COMMUNICATOIN NETWORKING

The Application Layer: DNS

DNS: Distributed Name System

Domain Name System (DNS) RFC 1034 RFC

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

Cours du 22 novembre

Distributed Systems. Naming

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

Domain Name System DNS

FTP: the file transfer protocol

DNS. Spring 2016 CS 438 Staff 1

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

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

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

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

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

NET0183 Networks and Communications

DNS and electronic mail. DNS purposes

Domain Name System (DNS)

2.5 DNS The Internet s Directory Service

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

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

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

Chapter 2: outline. 2.6 P2P applications 2.7 socket programming with UDP and TCP

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

Computer Networks & Security 2014/2015

Computer Networks. Instructor: Niklas Carlsson

Network Layer 4- density - A Top Down Approach

Application-layer protocols

Internet-Praktikum I Lab 3: DNS

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

CSE/ISE 311: Systems Administra5on Networking 2

FTP: the file transfer protocol

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

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

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

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

The Domain Name System

3. The Domain Name Service

DNS records. RR format: (name, value, type, TTL) Type=NS

DNS: Domain Name System

Application layer Protocols application transport

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

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

Communicating Applications

The Domain Name System

DNS Domain Name System

Chapter 23 The Domain Name System (DNS)

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

Network(Security(Protocols(

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

The Domain Name System

Lecture 5: Network Attacks I. Course Admin

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

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

CS244A Review Session Routing and DNS

CS640: Computer Networks. Naming /ETC/HOSTS

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

Introduction to Network Operating Systems

CS3600 SYSTEMS AND NETWORKS

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

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)

Types of hypertext. Hypertext documents can either be 1.Static 2.Dynamic

- Domain Name System -

Domain Name System (DNS) Fundamentals

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

Resilient Networking. Thorsten Strufe. Module 5: Name Resolution / DNS

Understanding DNS (the Domain Name System)

The Domain Name System (DNS)

DNS : Domain Name System

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

Domain Name System (DNS) Session-1: Fundamentals. Ayitey Bulley

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

DNS Basics. DNS Basics

416 Distributed Systems. Feb 24, 2016 DNS and CDNs

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

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

ECE 4321 Computer Networks. Network Programming

Computer Networks: Domain Name System

1 Introduction: Network Applications

Overview of Computer Networks

The Domain Name System

DNS & IPv6. Agenda 4/14/2009. MENOG4, 8-9 April Raed Al-Fayez SaudiNIC CITC rfayez@citc.gov.sa, DNS & IPv6.

Domain Name System Security

Network Layer, Part 1 Internet Architecture. History

Application Protocols in the TCP/IP Reference Model

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

Domain Name System WWW. Application Layer. Mahalingam Ramkumar Mississippi State University, MS. September 15, 2014.

Transcription:

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

DNS Outline DNS Hierarchial Structure Root Name Servers Top-Level Domain Servers Authoritative Name Servers Local Name Server Caching and Updating DNS Records DNS Protocols and Messages Computer Networks DNS 2

DNS: Domain Name System People: many identifiers: SSN, name, passport # Internet hosts, routers: IP address (32 bit) - used for addressing datagrams name, e.g., www.yahoo.com - used by humans Q: map between IP addresses and name? Domain Name System: distributed database implemented in hierarchy of many name servers application-layer protocol host, routers, name servers to communicate to resolve names (address/name translation) note: core Internet function, implemented as application-layer protocol complexity at network s edge Computer Networks DNS 3

DNS DNS servers often run on Unix machines running BIND (Berkeley Internet Name Domain) Runs over UDP Uses port 53 Computer Networks DNS 4

DNS DNS services hostname to IP address translation host aliasing Aliases, where canonical name is real name mail server aliasing load distribution replicated Web servers: set of IP addresses for one name Why not centralize DNS? single point of failure traffic volume distant centralized database maintenance doesn t scale! Distributed by design Computer Networks DNS 5

DNS Three classes of servers (approximation): Root DNS servers Top-level domain (TLD) servers Authoritative name servers Additionally: Local name server Computer Networks DNS 6

Distributed, Hierarchical Database Root DNS Servers com DNS servers org DNS servers edu DNS servers yahoo.com DNS servers amazon.com DNS servers pbs.org DNS servers poly.edu umass.edu DNS servers DNS servers Example: Client wants IP for www.amazon.com {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 www.amazon.com Computer Networks DNS 7

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 e NASA Mt View, CA f Internet Software C. Palo Alto, CA (and 36 other locations) 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) k RIPE London (also 16 other locations) i Autonomica, Stockholm (plus 28 other locations) m WIDE Tokyo (also Seoul, Paris, SF) b USC-ISI Marina del Rey, CA l ICANN Los Angeles, CA 13 root name servers worldwide ( (a-m) Computer Networks DNS 8

Top-Level Domain (TLD) Top-level domain (TLD) servers: Responsible for com, org, net, edu, etc, and all toplevel country domains such as uk, fr, ca and jp. Network Solutions maintains servers for com TLD. Educause for edu TLD. VeriSign for net TLD. Computer Networks DNS 9

Authoritative Servers 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. Computer Networks DNS 10

Local Name Server Does not strictly belong to hierarchy. Each ISP (residential ISP, company, university) has one Also called default name server You can run one in your home/dorm! When a host makes a DNS query, the query is sent to its local DNS server. ISP provides IP address of local DNS server using DHCP. Acts as proxy, forwards query into the name server hierarchy. Computer Networks DNS 11

DNS Name Resolution Example Host at cis.poly.edu wants IP address for gaia.cs.umass.edu Iterated query contacted server replies with name of server to contact. I don t know this name, but ask this server. local DNS server dns.poly.edu 1 2 8 requesting host cis.poly.edu root DNS server 3 4 5 7 TLD DNS server 6 authoritative DNS server dns.cs.umass.edu Computer Networks DNS 12

DNS Name Resolution (example) Recursive query Puts burden of name resolution on contacted name server. Heavy load? 2 root DNS server 3 7 6 TLD DNS server local DNS server dns.poly.edu 5 4 1 8 requesting host cis.poly.edu authoritative DNS server dns.cs.umass.edu gaia.cs.umass.edu Computer Networks DNS 13

DNS: Caching and Updating Records Once (any) name server learns mapping, it caches mapping. Cache entries timeout (disappear) after some time (e.g two days) {specified as TTL ==Time- To-Live}. IP addresses of TLD servers are typically cached in local name servers. Thus root name servers are not visited frequently. Originally thought DNS names quite static, but increasingly not so update/notify mechanisms under design by IETF RFC 2136: http://www.ietf.org/rfc/rfc2136.txt Computer Networks DNS 14

DNS Records DNS: distributed database storing resource records (RR) RR format: (name, value, type, ttl) Type=A name is hostname value is IP address Type=NS name is domain (e.g. foo.com) value is hostname of authoritative name server for this domain Type=CNAME name is alias name for some canonical (the real) name www.ibm.com is really servereast.backup2.ibm.com value is canonical name Type=MX value is name of mailserver associated with name Computer Networks DNS 15

DNS Protocol and Messages DNS protocol: query and reply messages, both with the same message format. msg header identification: 16 bit # for query, reply to query uses same # flags: query or reply recursion desired recursion available reply is authoritative Computer Networks DNS 16

DNS Protocol and Messages Name, type fields for a query Resource records in response to query Records for authoritative servers Additional helpful info that may be used Computer Networks DNS 17

Inserting records into DNS Example: new startup Network Utopia How do people get IP address of your Web site? How do they send you email? 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, 212.212.212.1, A) Create authoritative server Type A record for www.networkuptopia.com; Type MX record for networkutopia.com for mail. Computer Networks DNS 18

DNS Summary DNS Hierarchial Structure Root Name Servers Top-Level Domain Servers Authoritative Name Servers Local Name Server Caching and Updating DNS Records DNS Protocols and Messages Computer Networks DNS 19