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



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

Domain Name System (DNS)

Domain Name System (DNS) Fundamentals

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

Forouzan: Chapter 17. Domain Name System (DNS)

THE DOMAIN NAME SYSTEM DNS

Internet-Praktikum I Lab 3: DNS

Internetworking with TCP/IP Unit 10. Domain Name System

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

19 Domain Name System (DNS)

DNS Domain Name System

Applications and Services. DNS (Domain Name System)

DNS : Domain Name System

Domain Name System Richard T. B. Ma

1. Domain Name System

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

Teldat Router. DNS Client

Chapter 23 The Domain Name System (DNS)

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

Table of Contents DNS. How to package DNS messages. Wire? DNS on the wire. Some advanced topics. Encoding of domain names.

Domain Name System (DNS) RFC 1034 RFC

Domain Name System DNS

NET0183 Networks and Communications

Understand Names Resolution

1 DNS Packet Structure

3. The Domain Name Service

How to Enable Internet for Guest Virtual Machine using Wi-Fi wireless Internet Connection.

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

The Domain Name System

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

Some advanced topics. Karst Koymans. Friday, September 11, 2015

CS3600 SYSTEMS AND NETWORKS

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

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

DNS Domain Name System

Configuring DNS on Cisco Routers

CSE 127: Computer Security. Network Security. Kirill Levchenko

DNS - Domain Name System

Local DNS Attack Lab. 1 Lab Overview. 2 Lab Environment. SEED Labs Local DNS Attack Lab 1

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

Computer Networks: Domain Name System

Domain Name System (DNS)

DNS Amplification Attacks as a DDoS Tool and Mitigation Techniques

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

DNS. Some advanced topics. Karst Koymans. (with Niels Sijm) Informatics Institute University of Amsterdam. (version 2.6, 2013/09/19 10:55:30)

Creating a master/slave DNS server combination for your Grid Infrastructure

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

How-to: DNS Enumeration

The Domain Name System (DNS)

DNS Resolving using nslookup

DNS Conformance Test Specification For Client

Understanding DNS (the Domain Name System)

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

CS640: Computer Networks. Naming /ETC/HOSTS

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

The Application Layer: DNS

Domain Name Server. Training Division National Informatics Centre New Delhi

The Domain Name System

Application-layer protocols

DNS Basics. DNS Basics

Ethereal Lab: DNS. 1. nslookup

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

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

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

DNS Service on Linux. Supawit Wannapila CCNA, RHCE

DNS. Computer Networks. Seminar 12

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

Introduction to Network Operating Systems

Wireshark Lab: DNS. 1. nslookup

Configuring DNS. Finding Feature Information

DNS and BIND Primer. Pete Nesbitt linux1.ca. April 2012

DNS. Spring 2016 CS 438 Staff 1

Application Protocols in the TCP/IP Reference Model

Introduction to the Domain Name System

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

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

The Domain Name System (DNS)

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

1 Introduction: Network Applications

Wireshark Lab: DNS v6.01

Introduction to DNS and Application Issues related to DNS. Kirk Farquhar

The Domain Name System: An Integral Part of the Internet. By Keiko Ishioka

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

KAREL UCAP DNS AND DHCP CONCEPTS MANUAL MADE BY: KAREL ELEKTRONIK SANAYI ve TICARET A.S. Organize Sanayi Gazneliler Caddesi 10

DNS at NLnet Labs. Matthijs Mekking

TCP/IP Fundamentals. OSI Seven Layer Model & Seminar Outline

The Use of DNS Resource Records

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

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

Transcription:

Domain Name System: DNS Objective: map names to IP addresses (i.e., high level names to low level names) Original namespace was flat, didn t scale.. Hierarchical naming permits decentralization by delegating authority for parts of the namespace. Scalability and performance advantages Administrative benefits DNS is an example of a large scale client-server application. 1

2 DNS uses the Domain Name Space Names are defined in an inverted tree structure with the root at the top. The tree can have up to 128 levels Each node in the tree has a domain name which is a sequence of labels (each a max of 63 characters) separated by a.. The root node has a label of the null string If a domain name is terminated by the null string it is a fully qualified domain name A Domain is a subtree of the Domain Name Space

Internet Domain Names System Managing organizations : IANA, ICANN, INTERNIC 3

Mapping Domain Names to addresses Example: web browsing from a host on clemson.edu, what happens when you access www.mit.edu? 4

5 Key concepts Caching: When a local name server resolves a query, it is likely that another nearby Host will need the same name mapping. Therefore, a local name server cache s the entry for an amount of time specified by the time to live (TTL) field in the query-response. Iterative versus recursive queries: When a host issues a query to a name server it has two choices: Iterative request simply asks the NS if it can resolve the name. If it can t, the Host will do the next step. Recursive query asks the NS to resolve the name, even if the name is not in its cache.

6 Host asks local server to resolve www.mit.edu by sending a DNS query message. 3 possibilities local NS has it cached and returns a non-authoritative resource record (RR), if the local NS did not have the name cached: And if the client asked for an iterative resolution the local NS returns a Name Server (NS) resource record. And if the client asked for a recursive solution the local NS returns the resolved name. Local NS sends a query to a root server which might return a referral pointing to the.edu server. The local NS sends a query to the.edu server which might return a referral pointing to the MIT NS. Finally, the local NS queries the.mit.edu server which returns an A record (the 32 bit IP address)

7 DNS query/reply protocol (UDP!!!!) Host asks a NS to resolve an IP address with one of two types of requests: Type A: The Host wishes to translate from www.clemson.edu to the 32 bit binary Address. Type PTR: The Host wishes to translate from an address in dotted decimal into a DNS name (i.e., an Inverse Query). Responses called Resource Records: The NS might return: The translated address A referral to another NS that can give an authoritative reply to the query An error

Dig tool : interact with DNS jmarty@blade2[241] dig www.clemson.edu ; <<>> DiG 8.3 <<>> www.clemson.edu ;; res options: init recurs defnam dnsrch ;; got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 2 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 3, ADDITIONAL: 3 ;; QUERY SECTION: ;; www.clemson.edu, type = A, class = IN Query message sent by the resolver running on blade2 ;; ANSWER SECTION: www.clemson.edu. 1d5h56m12s IN A 130.127.69.228 8 ;; AUTHORITY SECTION: clemson.edu. 19h28m25s IN NS ns2.tamu.edu. clemson.edu. 19h28m25s IN NS hubcap.clemson.edu. clemson.edu. 19h28m25s IN NS ra.ces.clemson.edu. ;; ADDITIONAL SECTION: ra.ces.clemson.edu. 15m28s IN A 130.127.200.5 ns2.tamu.edu. 5h47m46s IN A 128.194.254.5 hubcap.clemson.edu. 2h32m50s IN A 130.127.28.32 ;; Total query time: 8 msec ;; FROM: blade2.cs.clemson.edu to SERVER: default -- 130.127.48.3 ;; WHEN: Wed Mar 29 10:53:22 2006 ;; MSG SIZE sent: 33 rcvd: 162 Query reply message generated by a clemson name server The ra flag indicates that the reply is authoritative

DNS program support Local host resolver is the client code running at the host. All hosts must know either their local NS or the root NS. The local resolver handles appreviatons. On Unix, /etc/resolv.conf tells the resolver the name server and the default domain Programming interface through sockets: GetHostByName(), GetHostByAddr() 9

Domain name registration services? Domain hosting?? 10