Chapter 23 The Domain Name System (DNS)



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

NET0183 Networks and Communications

Domain Name System (DNS)

Domain Name System Richard T. B. Ma

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

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

Domain Name System (DNS)

The Application Layer: DNS

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

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

Domain Name System DNS

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

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

Introduction to Network Operating Systems

DNS: Domain Name System

- Domain Name System -

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

Internet-Praktikum I Lab 3: DNS

CMPE 80N: Introduction to Networking and the Internet

DNS Domain Name System

DNS Basics. DNS Basics

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

Domain Name System (DNS) RFC 1034 RFC

Introduction to the Domain Name System

CS3600 SYSTEMS AND NETWORKS

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

3. The Domain Name Service

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

19 Domain Name System (DNS)

Internetworking with TCP/IP Unit 10. Domain Name System

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

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

Understanding DNS (the Domain Name System)

THE DOMAIN NAME SYSTEM DNS

DATA COMMUNICATOIN NETWORKING

The Domain Name System

DNS: Domain Name System

DNS : Domain Name System

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

CS640: Computer Networks. Naming /ETC/HOSTS

ECE 4321 Computer Networks. Network Programming

Understand Names Resolution

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

The Domain Name System (DNS)

416 Distributed Systems. Feb 24, 2016 DNS and CDNs

DNS. Spring 2016 CS 438 Staff 1

DNS. Computer Networks. Seminar 12

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

1 DNS Packet Structure

Applications and Services. DNS (Domain Name System)

The Domain Name System

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

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

1. Domain Name System

Chapter 2 Application Layer

Domain Name Server. Training Division National Informatics Centre New Delhi

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

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

The Domain Name System (DNS)

Computer Networks: Domain Name System

DNS and P2P File Sharing

How to Add Domains and DNS Records

Domain Name System. Heng Sovannarith

Forouzan: Chapter 17. Domain Name System (DNS)

Teldat Router. DNS Client

Introduction to DNS CHAPTER 5. In This Chapter

THE MASTER LIST OF DNS TERMINOLOGY. v 2.0

Applies To: Windows Server 2003, Windows Server 2003 R2, Windows Server 2003 with SP1, Windows Server 2003 with SP2

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

FAQ (Frequently Asked Questions)

Domain Name System (DNS) Fundamentals

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

Configuring DNS. Finding Feature Information

DNS Domain Name System

CS3250 Distributed Systems

Agenda. Network Services. Domain Names. Domain Name. Domain Names Domain Name System Internationalized Domain Names. Domain Names & DNS

internet technologies and standards

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

THE MASTER LIST OF DNS TERMINOLOGY. First Edition

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

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

Domain Name System (DNS)

The Use of DNS Resource Records

DNS and BIND. David White

DNS Resolving using nslookup

Networking Domain Name System

Copyright

Installing and Setting up Microsoft DNS Server

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

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

netkit lab dns Università degli Studi Roma Tre Dipartimento di Informatica e Automazione Computer Networks Research Group Version Author(s)

Transcription:

CSC521 Communication Protocols 網 路 通 訊 協 定 Chapter 23 The Domain Name System (DNS) 吳 俊 興 國 立 高 雄 大 學 資 訊 工 程 學 系

Outline 1. Introduction 2. Names For Machines 3. Flat Namespace 4. Hierarchical Names 5. Delegation Of Authority For Names 6. Subset Authority 7. Internet Domain Names 8. Top-Level Domains 9. Name Syntax And Type 10. Mapping Domain Names To Addresses 11. Domain Name Resolution 12. Efficient Translation 13. Caching: The Key To Efficiency 14.Domain Name System Message Format 15. Compressed Name Format 16. Abbreviation Of Domain Names 17. Inverse Mappings 18. Pointer Queries 19.Object Types And Resource Record Contents 20. Obtaining Authority For A Subdomain 21.Dynamic DNS Update And Notification 22.DNS Security Extensions (DNSSEC) 23. Summary 2

Names For Computers Humans prefer pronounceable names rather than numeric addresses Two possibilities of names Flat namespace Hierarchical namespace Two possibilities of naming hierarchy According to network topology By organizational structure (independent of physical networks) Internet uses the latter 3

Internet Domain Names Internet Hierarchy In the Internet, hierarchical machine names are assigned according to the structure of organizations that obtain authority for parts of the namespace, not necessarily according to the structure of the physical network interconnections Flexible hierarchy Universal naming scheme (same everywhere) Each organization determines internal naming structure Mechanism known as Domain Name System (DNS) Name assigned to a computer known as domain name Domain Name Syntax Set of labels separated by delimiter character (period) Example: cs. purdue. edu Three labels: cs, purdue, and edu String purdue. edu is also a domain Top-level domain is edu 4

Original Top-Level Domains Meaning assigned to each cctld: Country Code TLD gtld: Generic TLD Three domains considered generic.com.net.org 5

New Top-Level Domains Proponents argued (incorrectly) that DNS would collapse without additional TLDs New TLDs created legal nightmare 6

Authority For Names Authority delegated down the tree Example Purdue University registers under top level domain.edu and receives authority for domain purdue.edu Computer Science Department at Purdue registers with the Purdue authority, and becomes the authority for domain cs.purdue.edu Owner of a lab in the CS Department registers with the departmental authority, and becomes the authority for domain xinu.cs.purdue.edu 7

Mapping Domain Names To Addresses DNS uses a set of on-line servers Servers arranged in tree Given server can handle entire subtree Example: ISP manages domain names for its clients DNS Database: Record has ( name, class ) Class specifies type of object (e.g., computer, email exchanger) Consequence: A given name may map to more than one item in the domain system. The client specifies the type of object desired when resolving a name, and the server returns objects of that type 8

Illustration of DNS Server Topology DNS server known as name server Single server can handle multiple levels of the naming tree Example: root server handles all top-level domains DNS client software known as resolver 9

Conceptually, must search from root of tree downward In practice Every name server knows location of a root server Only contacts root if no subdomain known Lookup always starts with local server first (host can learn address of DNS server from DHCP) Efficient Translation Most lookups refer to local names Name-to-address bindings change infrequently User is likely to repeat same lookup To increase efficiency Domain Name Resolution Initial contact begins with local name server Every server caches answers (owner specifies cache timeout) 10

Resolution Example root DNS server Host pc1.csie.nuk.edu.tw wants IP address for www.google.com local DNS server ccdns.nuk.edu.tw (140.127.198.1) 2 3 4 5.com TLD DNS server Later: host pc1.csie.nuk.edu.tw wants IP address for mail.google.com host pc2.csie.nuk.edu.tw wants IP address for www.google.com 1 8 7 6 authoritative DNS server ns1.google.com requesting host pc1.csie.nuk.edu.tw www.google.com 11

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 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 12

DNS Message Format TYPE meaning A 1 a host address NS 2 an authoritative name server CNAME 5 canonical name for an alias SOA 6 start of a zone of authority PTR 12 a domain name pointer MX 15 mail exchange 13

Specifying Domain Names with Labels Domain name a sequence of labels A maximum length of 255 characters is allowed Label Must start with a letter and can only consist of letters, digits and hyphens Can be up to 63 characters long and are case insensitive (00xx xxxx) Label encoding Begins with an octet that specifies its length; 0 marks the end i.e. www.google.com = 0x03 w w w 0x06 google0x03com0x00 Label compression with pointer Begins with two ones (11xx xxxx xxxx xxxx) Followed with the offset field specifies an offset from the start of the message the first octet of the ID field in the domain header 14

DNS Query Example Looking up www.google.com.tw Parameter=0x0100=0000 0001 0000 0000: Recursion desired Class=INternet: 0x01 Type=A: 0x01 15

DNS Reply Example Flag:1000 0001 1000 0000 1000=response 0001=recursion desired 1000=recursion available Type=A: 0x01 C00C= 1100 0000 0000 1100 16

Domain Name Abbreviation Abbreviation Of Domain Names DNS only recognizes full domain names Client software allows abbreviation Example of Abbreviation Client configured with suffix list. cs. purdue. edu. cc. purdue. edu. purdue. edu null User enters abbreviation xinu Client tries the following in order xinu. cs. purdue. edu xinu. cc. purdue. edu xinu. purdue. edu xinu 17

Pointer Query Inverse Query Map in reverse direction Excessive overhead May not have unique answer Not used in practice Pointer Query Special case of inverse mapping Convert IP address to domain name Trick: write IP address as a string and look up as a name Example Start with dotted decimal address such as aaa. bbb. ccc. ddd Rearrange dotted decimal representation as a string: ddd. ccc. bbb. aaa. in-addr. arpa Look up using a pointer query type 18

Discussions Internationalized Domain Name Label extension? TTL Issues DNS Caching Dynamic Update DNS Security Issues Authentication Data integrity Performance Issues ARP: cache /? IP: routing table /? DNS: cache table / TTL 19

Summary Domain Name System provides mapping from pronounceable names to IP addresses Domain names are hierarchical; top-level domains are dictated by a central authority Organizations can choose how to structure their domain names DNS uses on-line servers to answer queries Lookup begins with local server, which caches entries 20