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



Similar documents
NET0183 Networks and Communications

DNS: Domain Name System

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

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

Domain Name System (DNS)

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

Domain Name System Richard T. B. Ma

The Domain Name System (DNS)

Application-layer protocols

Domain Name System (DNS) RFC 1034 RFC

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

DATA COMMUNICATOIN NETWORKING

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

CMPE 80N: Introduction to Networking and the Internet

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

Chapter 2 Application Layer

Domain Name System (DNS)

Domain Name System DNS

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

The Application Layer: DNS

DNS and P2P File Sharing

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

DNS Domain Name System

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

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

DNS: Domain Name System

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

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

CS640: Computer Networks. Naming /ETC/HOSTS

Chapter 23 The Domain Name System (DNS)

3. The Domain Name Service

internet technologies and standards

The Domain Name System (DNS)

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

CS3600 SYSTEMS AND NETWORKS

Chapter 24 The Domain Name System (DNS)

INTERNET DOMAIN NAME SYSTEM

DNS. Spring 2016 CS 438 Staff 1

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

Computer Networks & Security 2014/2015

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

DNS Domain Name System

FTP: the file transfer protocol

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

2.5 DNS The Internet s Directory Service

Internet-Praktikum I Lab 3: DNS

416 Distributed Systems. Feb 24, 2016 DNS and CDNs

Computer Networks: Domain Name System

1 DNS Packet Structure

Overview of Computer Networks

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

Hostnames. HOSTS.TXT was a bottleneck. Once there was HOSTS.TXT. CSCE515 Computer Network Programming. Hierarchical Organization of DNS

Application Protocols in the TCP/IP Reference Model

FTP: the file transfer protocol

19 Domain Name System (DNS)

Internetworking with TCP/IP Unit 10. Domain Name System

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

Introduction to the Domain Name System

The Domain Name System

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

CS3250 Distributed Systems

Domain Name System (DNS)

Introduction to Network Operating Systems

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

DNS : Domain Name System

Domain Name System Security

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

Understanding DNS (the Domain Name System)

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

THE DOMAIN NAME SYSTEM DNS

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

Applications and Services. DNS (Domain Name System)

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

Domain Name Service (DNS) Training Division, NIC New Delhi

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

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

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

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

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

DNS Basics. DNS Basics

Wireshark DNS. Introduction. nslookup

DNS - Domain Name System

what s in a name? taking a deeper look at the domain name system mike boylan penn state mac admins conference

The Domain Name System

Lecture 5: Network Attacks I. Course Admin

Network Layers. CSC358 - Introduction to Computer Networks

Application-layer Protocols

Wireshark Lab: DNS. 1. nslookup

Transcription:

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

Domain Name System Map between host names and IP addresses People: many identifiers: name, Passport #, Internet hosts: IP address (32 bit) - used for addressing datagrams name, e.g., www.iitb.ac.in - used by humans IIT Bombay cs 348 2

DNS Provides logical hierarchical view of the Internet globally distributed database implemented in hierarchy of many name servers application-layer protocol to communicate to resolve names (address/name translation) client/server interaction IIT Bombay cs 348 3

DNS clients and servers clients: query servers to resolve names; nslookup servers: name server daemons, reply to queries; BIND, named gethostbyname: resolver library call that can be invoked from application program Lazily validated cache for performance IIT Bombay cs 348 4

DNS design Centralized DNS? single point of failure traffic volume distant centralized database maintenance doesn t scale! So Distributed DNS IIT Bombay cs 348 5

Name hierarchy Unique domain suffix is assigned by Internet Authority No limit on number of subdomains or number of levels Domains within an organization do not have to be uniform in number of subdomains or levels www.iitb.ac.in www.it.iitb.ac.in IIT Bombay cs 348 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 IIT Bombay cs 348 7

DNS hierarchy 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 IIT Bombay cs 348 8

DNS: Local name servers Local Name s: each organization/isp has local (default) name server host DNS query first goes to local name server Authoritative Name : for a host: stores that host s IP address, name can perform name/address translation for that host s name IIT Bombay cs 348 9

Name server hierarchy A single server can serve multiple domains Root server knows about servers for top-level domains Each server knows the root server IIT Bombay cs 348 10

DNS: Root name servers Contacted by local name server that cannot resolve name Root Name : contacts authoritative name server if name mapping not known gets mapping returns mapping to local name server Several root name servers worldwide IIT Bombay cs 348 11

DNS hierarchy: Example Root for com for edu for gov for in for us for ibm.com for rpi.edu for nsf.gov server for co.in for va.us IIT Bombay cs 348 12

DNS: Example host xyz.iitb.ac.in wants IP address of www.ibm.com root name server 1. Contacts its local DNS server, dns.iitb.ernet.in 2. dns.iitb.ernet.in contacts root name server, if necessary 3. root name server contacts authoritative name server, dns.ibm.com, if necessary local name server dns.iitb.ac.in 1 2 6 5 3 4 authoritative name server dns.ibm.com xyz.iitb.ac.in www.ibm.com IIT Bombay cs 348 13

DNS: Name resolution Recursive queries: puts burden of name resolution on contacted name server not scalable under heavy load Iterated queries: contacted server replies with name of server to contact. Ex: root name server may know intermediate name server to contact to find authoritative name server IIT Bombay cs 348 14

Recursive queries Cache Cache User Database Database Query Response Name Name Resolver Cache Query Response Query Response Query Name Response Name Cache Database IIT Bombay cs 348 15

Iterated queries Cache Cache Database Name Response Query Query Name Referral Database User Query Response Name Resolver Cache Query Response Name Cache Database IIT Bombay cs 348 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. IIT Bombay cs 348 17

DNS: caching and updating A name server caches the mappings learnt cache entries have a time-to-live period after which they become invalid update/notify mechanisms: RFC 2136 IIT Bombay cs 348 18

DNS record Resource Record (RR) format: (name, value, type, ttl) Type=A: name is hostname; value is IP address Type=NS: name is domain (e.g. ibm.com); value is IP address of authoritative name server for this domain Type=CNAME: name is an alias name for some cannonical (the real) name; value is cannonical name Type=MX: value is hostname of mailserver associated with name IIT Bombay cs 348 19

DNS protocol client-server interaction query and reply messages, both with same message format Message header identification: 16 bit # for query, reply uses same # flags: query or reply; recursion desired; recursion available; reply is authoritative IIT Bombay cs 348 20

12 bytes DNS message format Identification Number of Questions Number of Authority Flags Number of Answers Number of Additional Question Section... Answer Section... Authority Section... Additional Information Section... IIT Bombay cs 348 21