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



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

NET0183 Networks and Communications

Domain Name System (DNS)

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

DNS: Domain Name System

Application Protocols in the TCP/IP Reference Model

The Domain Name System (DNS)

Domain Name System Richard T. B. Ma

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

The Domain Name System

Chapter 23 The Domain Name System (DNS)

DNS Domain Name System

Understanding DNS (the Domain Name System)

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)

CS3600 SYSTEMS AND NETWORKS

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

The Application Layer: DNS

CMPE 80N: Introduction to Networking and the Internet

Domain Name System (DNS) Fundamentals

The Domain Name System (DNS)

DNS : Domain Name System

CS3250 Distributed Systems

DATA COMMUNICATOIN NETWORKING

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

3. The Domain Name Service

Internet-Praktikum I Lab 3: DNS

The Domain Name System

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

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

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

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

Domain Name System (DNS)

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

The Domain Name System

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

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

Introduction to the Domain Name System

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

KB Windows 2000 DNS Event Messages 1 Through 1614

DNS and P2P File Sharing

Introduction to Network Operating Systems

Chapter 2 Application Layer

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

How to set up the Integrated DNS Server for Inbound Load Balancing

DNS: Domain Name System

THE MASTER LIST OF DNS TERMINOLOGY. v 2.0

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

Domain Name System. Heng Sovannarith

CS640: Computer Networks. Naming /ETC/HOSTS

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

How to Add Domains and DNS Records

- Domain Name System -

Copyright

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

THE MASTER LIST OF DNS TERMINOLOGY. First Edition

My Services Online Service Support. User Guide for DNS and NTP services

Talk-101 User Guide. DNSGate

THE DOMAIN NAME SYSTEM DNS

Applications and Services. DNS (Domain Name System)

Understand Names Resolution

HTG XROADS NETWORKS. Network Appliance How To Guide: EdgeDNS. How To Guide

Teldat Router. DNS Client

Forouzan: Chapter 17. Domain Name System (DNS)

The Use of DNS Resource Records

Introduction to DNS CHAPTER 5. In This Chapter

DNS Domain Name System

DNS. Computer Networks. Seminar 12

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

Configuring DNS. Finding Feature Information

Domain Name System Security

ECE 4321 Computer Networks. Network Programming

Computer Networks: Domain Name System

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

DNS and issues in connecting UNINET-ZA to the Internet

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

1 DNS Packet Structure

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

How To Guide Edge Network Appliance How To Guide:

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

DNS - Domain Name System

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

IP addresses have hierarchy (network & subnet) Internet names (FQDNs) also have hierarchy. and of course there can be sub-sub-!!

DNS and BIND. David White

Installing and Setting up Microsoft DNS Server

Domain Name Server. Training Division National Informatics Centre New Delhi

Networking Domain Name System

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

Network Layers. CSC358 - Introduction to Computer Networks

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

Transcription:

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

The problem Networked computers have names and IP addresses. Applications use names; IP uses for routing purposes IP addresses. The role of DNS is to handle the mapping between host names and IP addresses the amount of information is huge and distributed. Names belong to a name space - set of well-defined names. Example 1: george.cs.ucc.ie 143.239.201.145 Example 2: connect to www.cs.ucc.ie 1. The browser will contact the local DNS with the name to lookup the IP address. 2. TCP connection is established. 17/09/2013 2

Resolvers Resolvers are clients (on the applications side) that access name servers. They and their cache memories are part of the host operating system. The resolver handles: Querying a name server; Interpreting responses (can be resource records or an error); Returning information to the programs that requested it. Usually, the resolver is a set of library routines (i.e. gethostbyname) that are compiled into applications. 17/09/2013 3

Name Servers Each ISP has a local name server to which the query is sent (the IP address of the local DNS is configured by hand in each host). Name servers store information about the domain name space a part of it, called zone the name server has authority for that zone. A zone contains domain names and data, except those delegated elsewhere. There are two types of name servers: Primary master: gets data for the zone it s authoritative for from files on the host it runs on; Secondary master: gets its zone data from a primary master. A root name server knows where NS authoritative for all the top-level domains are. 17/09/2013 4

The DNS protocol the chain of events: 1. The resolver sends the query to the local DNS server. 2. If not solved, the local DNS relays it to a root server. If the root name server has a record for the hostname, it ll send the reply. Otherwise, it will relay the query to an authoritative server for that domain which should have a record of the hostname. 3. The reply message goes to the root and then to the local name server. 4. Queries can be recursive (A sends to B and B acts on behalf of A) or iterative (if B can not solve the query, A will send it to another name server). Generally local name servers use the iterative strategy for root servers. 17/09/2013 5

Organisation of the name space root com edu gov mil ie ucc 17/09/2013 6

Name Convention A domain has a domain name (up to 63 characters in length). The full domain name is the sequence of labels from the domain to the root, with. separating the labels. Sibling nodes (children of the same parent) are named uniquely. The depth of the tree is limited to 127 levels. While domain names are just indexes into the DNS database, the hosts are the domain names that point to information about individual hosts. 17/09/2013 7

Name conventions cnt d Domains at the leaves of the tree generally represent individual hosts point to IPs, HW information and mail routing information. Domain names in the interior of the tree can name a host and can point to structural information about sub-domains. Example: blue.com is both the name of the Blue company domain and the domain name of a host that forwards mail between Blue and Internet. 17/09/2013 8

DNS records DNS: distributed db storing resource records (RR) Type = A name is hostname RR format: (name, value, type, ttl) value is IP address Type = NS name is domain (e.g. foo.com) value is hostname of an authoritative name server for this domain. Type = CNAME name is alias name for some canonical (the real) name www.ibm.com is really servereast.backup2.ibm.com value is canonical name Type = MX value is the canonical name of mail server associated with name. 17/09/2013 9

DNS features The system is implemented by many computers that run the service it is a multi-server distributed architecture. The core component is a distributed database: local control of data; data is available across the entire network; Robustness and adequate performance are achieved through replication and caching. 17/09/2013 10

Speeding up the lookup process Delegation: assigns responsibility for a subdomain to another organisation; the parent domain contains only pointers to sources of the sub-domain s data. Caching: store data for future reference there is negative caching as well. 17/09/2013 11

DNS messages DNS protocol : query and reply messages, both with same message format msg header identification: 16 bit id for query, reply to query uses same id flags: query or reply recursion desired recursion available reply is authoritative 17/09/2013 12

DNS messages Name, type fields for a query RRs in response to query records for authoritative servers additional helpful info that may be used 17/09/2013 13

Exercises Create the DNS model for the host sean.cs.ucc.ie which needs the IP address of christine.lab3.lifl.fr, using either the recursive or the iterative strategy. What records does an authoritative server store about a sub-domain authoritative server? The concept of name space and name service extends beyond DNS to distributed systems and mobile computing. Try to find out more about it. Hint: URN (Universal Resource Name) 17/09/2013 14

Conclusions DNS is a seamless service provided in the Internet that allows distributed applications to use names. It is also a protocol supported by an Internet architecture. The supporting architecture is distributed and relies on a set of root servers. The protocol uses a message with the same format for requests/replies. The application s interface to DNS is the resolver. The performance is very important. How is it achieved? See how other systems, e.g. Bluetooth, solve this problem. 17/09/2013 15