Domain Name System (DNS)



Similar documents
DNS: Domain Name System

Chapter 2 Application Layer

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

Domain Name System Richard T. B. Ma

DATA COMMUNICATOIN NETWORKING

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

DNS and P2P File Sharing

internet technologies and standards

CMPE 80N: Introduction to Networking and the Internet

NET0183 Networks and Communications

The Application Layer: DNS

DNS: Domain Name System

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

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

Domain Name System (DNS) RFC 1034 RFC

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

Domain Name System DNS

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

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

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

Computer Networks & Security 2014/2015

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

DNS. Spring 2016 CS 438 Staff 1

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

DNS and electronic mail. DNS purposes

Application-layer protocols

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

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

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

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

2.5 DNS The Internet s Directory Service

Domain Name System (DNS)

FTP: the file transfer protocol

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

Internet-Praktikum I Lab 3: DNS

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

3. The Domain Name Service

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

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

Lecture 5: Network Attacks I. Course Admin

1 Introduction: Network Applications

CS640: Computer Networks. Naming /ETC/HOSTS

Chapter 23 The Domain Name System (DNS)

FTP: the file transfer protocol

CS3600 SYSTEMS AND NETWORKS

The Domain Name System

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

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

DNS: Domain Name System

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

Domain Name System (DNS) Fundamentals

Computer Networks 1 (Mạng Máy Tính 1) Lectured by: Dr. Phạm Trần Vũ MEng. Nguyễn CaoĐạt

CSE/ISE 311: Systems Administra5on Networking 2

DNS Domain Name System

Understanding DNS (the Domain Name System)

DNS Basics. DNS Basics

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

The Domain Name System (DNS)

The Domain Name System (DNS)

Application Protocols in the TCP/IP Reference Model

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

The Domain Name System

Network Layers. CSC358 - Introduction to Computer Networks

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

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

Introduction to Network Operating Systems

OpenSRS Service DNS Configuration Guide

CS3250 Distributed Systems

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

416 Distributed Systems. Feb 24, 2016 DNS and CDNs

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

Communicating Applications

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

Application. Transport. Network. Data Link. Physical. Network Layers. Goal

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

Computer Networks - CS132/EECS148 - Spring

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

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

DNS : Domain Name System

Chapter 2 Application Layer

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

The Domain Name System

Introduction to DNS CHAPTER 5. In This Chapter

Overview of Computer Networks

THE DOMAIN NAME SYSTEM DNS

Introduction to Computer Networks

Transcription:

Domain Name System (DNS) Instructor: Anirban Mahanti Office: ICT 745 Email: mahanti@cpsc.ucalgary.ca Class Location: ICT 121 Lectures: MWF 12:00 12:50 Notes derived from Computer Networking: A Top Down Approach Featuring the Internet, 2005, 3 rd edition, Jim Kurose, Keith Ross, Addison-Wesley. Slides are adapted from the companion web site of the book, as modified by Anirban Mahanti (and Carey Williamson). CPSC 441: DNS 1 DNS: Domain Name System Internet hosts: IP address (32 bit) - used for addressing datagrams name, e.g., ww.yahoo.com - used by humans DNS: provides translation between host name and IP address distributed database implemented in hierarchy of many name servers Distributed for scalability & reliability CPSC 441: DNS 2 DNS Services Hostname to IP address translation Host aliasing Canonical and alias names Mail server aliasing Load distribution Replicated Web servers: set of IP addresses for one canonical name CPSC 441: DNS 3 1

DNS Infrastructure root DNS server Host at cis.poly.edu wants IP address for gaia.cs.umass.edu Infrastructure: Client resolver Local DNS server Authoritative DNS Server Root DNS Server Top-Level Domain DNS Server 2 local DNS server dns.poly.edu 1 8 requesting host cis.poly.edu 3 TLD DNS server 4 5 7 6 authoritative DNS server dns.cs.umass.edu gaia.cs.umass.edu CPSC 441: DNS 4 Distributed, Hierarchical Database Root DNS Servers TLD com DNS servers ca DNS servers edu DNS servers Servers yahoo.com amazon.com DNS servers DNS servers ucalgary.ca DNS servers usask.ca DNS servers poly.edu umass.edu DNS servers DNS servers Root servers and TLD servers typically do not contain hostname to IP mappings; they contain mappings for locating authoritative servers. CPSC 441: DNS 5 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 CPSC 441: DNS 6 2

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 and mail). Can be maintained by organization or service provider CPSC 441: DNS 7 Local Name Server Each ISP (residential ISP, company, university) has one. Also called default name server When a host makes a DNS query, query is sent to its local DNS server Acts as a proxy, forwards query into hierarchy. Reduces lookup latency for commonly searched hostnames CPSC 441: DNS 8 Recursive queries root DNS server recursive query: puts burden of name resolution on contacted name server heavy load? 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 7 6 5 3 4 authoritative DNS server dns.cs.umass.edu gaia.cs.umass.edu TLD DNS server CPSC 441: DNS 9 3

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 http://www.ietf.org/html.charters/dnsind-charter.html CPSC 441: DNS 10 DNS records DNS: distributed db 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 IP address of authoritative name server for this domain Type=CNAME name is alias name for some cannonical (the real) name www.ibm.com is really servereast.backup2.ibm.com value is cannonical name Type=MX value is name of mailserver associated with name CPSC 441: DNS 11 DNS protocol, messages DNS protocol : query and reply messages, both with 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 CPSC 441: DNS 12 4

DNS protocol, messages Name, type fields for a query RRs in reponse to query records for authoritative servers additional helpful info that may be used CPSC 441: DNS 13 Inserting records into DNS Example: just created startup Network Utopia Register name networkuptopia.com at a registrar (e.g., Network Solutions) Need to provide registrar with names and IP addresses of your authoritative name server (primary and secondary) Registrar inserts two RRs into the com TLD server: (networkutopia.com, dns1.networkutopia.com, NS) (dns1.networkutopia.com, 212.212.212.1, A) Put in authoritative server Type A record for www.networkuptopia.com and Type MX record for networkutopia.com How do people get the IP address of your Web site? CPSC 441: DNS 14 Application Layer: Summary Our study of network apps now complete! Application architectures client-server P2P hybrid application service requirements: reliability, bandwidth, delay Internet transport service model connection-oriented, reliable: TCP unreliable, datagrams: UDP specific protocols: HTTP FTP SMTP, POP, IMAP DNS socket programming (assignment two + tutorial sessions) CPSC 441: DNS 15 5

Application Layer: Summary Most importantly: learned about protocols typical request/reply message exchange: client requests info or service server responds with data, status code message formats: headers: fields giving info about data data: info being communicated control vs. data msgs in-band, out-of-band centralized vs. decentralized stateless vs. stateful reliable vs. unreliable msg transfer complexity at network edge CPSC 441: DNS 16 6