The Domain Name System (DNS)



Similar documents
Chapter 24 The Domain Name System (DNS)

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

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

Lecture 2 CS An example of a middleware service: 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

Application Protocols in the TCP/IP Reference Model

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

The Domain Name System (DNS)

THE DOMAIN NAME SYSTEM DNS

Introduction to TCP/IP

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

DNS Domain Name System

CS3250 Distributed Systems

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

DNS : Domain Name System

Understanding DNS (the Domain Name System)

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

ECE 4321 Computer Networks. Network Programming

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

Introduction to DNS CHAPTER 5. In This Chapter

CS3600 SYSTEMS AND NETWORKS

DNS. Computer Networks. Seminar 12

Domain Name System. Heng Sovannarith

NET0183 Networks and Communications

Introduction to Network Operating Systems

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

Domain Name System DNS

INTERNET DOMAIN NAME SYSTEM

DNS - Domain Name System

The Application Layer: DNS

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

DNS Domain Name System

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

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

- Domain Name System -

Internet-Praktikum I Lab 3: DNS

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

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

19 Domain Name System (DNS)

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

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

How to Add Domains and DNS Records

Copyright

CS640: Computer Networks. Naming /ETC/HOSTS

Domain Name System Security

Introduction to the Domain Name System

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

Applications and Services. DNS (Domain Name System)

Networking Domain Name System

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

Understand Names Resolution

Domain Name System (DNS)

Domain Name System Richard T. B. Ma

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

Chapter 23 The Domain Name System (DNS)

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

The Domain Name System

DNS and Interface User Guide

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

Domain Name System (DNS)

DNS: Domain Name System

Domain Name System (DNS) RFC 1034 RFC

Internetworking with TCP/IP Unit 10. Domain Name System

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

Forouzan: Chapter 17. Domain Name System (DNS)

DNS: Domain Name System

Configuring the BIND name server (named) Configuring the BIND resolver Constructing the name server database files

Networking Domain Name System

Domain Name System (DNS)

Domain Name System (DNS) Fundamentals

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

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

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

The Use of DNS Resource Records

Computer Networks: Domain Name System

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

Chapter 7 Implementing Domain Name System (DNS)

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

API of DNS hosting. For DNS-master and Secondary services Table of contents

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

The Domain Name System

The Domain Name System

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

Section 1 Overview Section 2 Home... 5

DNS and BIND. David White

DNS + DHCP. Michael Tsai 2015/04/27

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

Chapter 2 Application Layer

Transcription:

The Domain Name System (DNS) Columbus, OH 43210 Jain@CIS.Ohio-State.Edu http://www.cis.ohio-state.edu/~jain/ 24-1

Overview Naming hierarchy hierarchy Name resolution Other information in name servers 24-2

Computers use addresses Why Names? Humans cannot remember IP addresses Need names Example, Liberia for 164.107.51.28 Simplest Solution: Each computer has a unique name and has a built in table of name to address translation Problem: Not scalable Solution: DNS (Adopted in 1983) Hierarchical Names: Liberia.cis.ohio-state.edu 24-3

Name Hierarchy Unnamed root com edu gov au... us dec ohio-state nsf co va cis netlab ee reston 24-4 cnri

Name Hierarchy Unique domain suffix is assigned by Internet Authority The domain administrator has complete control over the domain No limit on number of subdomains or number of levels computer.site.division.company.com computer.site.subdivision.division.company.com Domains within an organization do not have to be uniform in number of subdomains or levels 24-5

Name Hierarchy (Cont) Name space is not related to physical interconnection, e.g., math.ohio-state and cis.ohio-state could be on the same floor or in different cities Geographical hierarchy is also allowed, e.g., cnri.reston.va.us A name could be a subdomain or an individual object 24-6

Top Level Domains Domain Name com edu gov mil net org arpa country code Assignment Commercial Educational Government Military Network Other organizations Advanced Research Project Agency au, uk, ca 24-7

com Hierarchy com foobar soap foobar soap candy candy peanut almond walnut peanut almond walnut 24-8

Hierarchy (Cont) s are organized in a hierarchy Each server has an authority over a part of the naming hierarchy The server does not need to keep all names. It needs to know other servers who are responsible for other subdomains Contiguous space A single node in the naming tree cannot be split A given level of hierarchy can be partitioned into multiple servers 24-9

Hierarchy (Cont) Authority has the name to address translation table Responsible Either has the name to address translation table or knows the server who has A single server can serve multiple domains, e.g., purdue.edu and laf.in.us Root server knows about servers for top-level domains, e.g., com Each server knows the root server 24-10

Hierarchy: Example Root for com for edu for gov for au for us for dec.com for osu.edu for nsf.gov server for co.au for va.us 24-11

Hierarchy: Better Root for dec.com for osu.edu for nsf.gov server for co.au for va.us Fewer servers 24-12

User Database Database Query Response Name Resolution Cache Name Name Resolver Cache 24-13 Query Response Query Response Query Cache Name Response Name Cache Database

Name Resolution (Cont) Cache Cache Database Name Response Query Query Name Referral Database User Query Response Name Resolver Cache 24-14 Query Response Name Cache Database

Name Resolution (Cont) Each computer has a name resolver routine, e.g., gethostbyname in UNIX Each resolver knows the name of a local DNS server Resolver sends a DNS request to the server DNS server either gives the answer, forwards the request to another server, or gives a referral Referral = Next server to whom request should be sent 24-15

Name Resolution (Cont) Resolvers use UDP (single name) or TCP (whole group of names) Knowing the address of the root server is sufficient Recursive Query: Give me an answer (Don't give me a referral) Iterative Query: Give me an answer or a referral to the next server Resolvers use recursive query. s use iterative query. 24-16

DNS Optimization Spatial Locality: Local computers referenced more often than remote Temporal Locality: Same set of domains referenced repeatedly Caching Each entry has a time to live (TTL) Replication: Multiple servers. Multiple roots. Ask the geographically closest server. 24-17

Abbreviations s respond to a full name only However, humans may specify only a partial name Resolvers may fill in the rest of the suffix, e.g., Liberia.cis = Liberia.cis.ohio-state.edu Each resolver has a list of suffixes to try 24-18

DNS Message Format Identification Parameter Number of Questions Number of Answers Number of Authority Number of Additional Question Section... Answer Section... Authority Section... Additional Information Section... 24-19

Format (Cont) Format of the query section entries: Query Domain Name... Query Type Query Class Format of other section entries: Type Time to live Resource Domain Name Resource Data Class Resource Data Length 24-20

DNS Message Format Length = 0 End of names. Length < 64 Two msbs (most significant bits) = 11 Pointer Resource data contains serial (version) number of the zone, refresh interval, retry interval, expiry interval, mailbox of the responsible person, etc. 24-21

DNS Message Format (Cont) Bit Meaning 0 Operation: 0=Query, 1=Response 1-4 Query type: 0=Standard, 1=Inverse, 2,3 obsolete 5 Set if answer authoritative 6 Set if message truncated 7 Set if recursion desired 8 Set if recursion available 9-11 Reserved 12-15 Response type: 0=No error, 1=Format error, 2= Failure, 3=Name does not exist 24-22

Inverse Mapping Given an address, what is the name? nnn.nnn.nnn.nnn.in-addr.arpa 24-23

Types of DNS Entries DNS is used not just for name to address resolution But also for finding mail server, pop server, responsible person, etc for a computer DNS database has multiple types Record type A Address of X Record type MX Mail exchanger of X CNAME entry = Alias name (like a file link), "see name" www.foobar.com = hobbes.foobar.com 24-24

Type A CNAME HINFO MINFO MX NS PTR RP SOA TXT Resource Record Types Meaning Host Address Canonical Name (alias) CPU and O/S Mailbox Info Mail Exchanger Authoritative name server for a domain Pointer to a domain name (link) Responsible person Start of zone authority (Which part of naming hierarchy implemented) Arbitrary Text 24-25

Summary DNS: Maps names to addresses Names are hierarchical. Administration is also hierarchical. No standard for number of levels Replication and caching is used for performance optimization. 24-26