DNS : Domain Name System



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

DNS - Domain Name System

The Domain Name System

Forouzan: Chapter 17. Domain Name System (DNS)

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

DNS Domain Name System

Domain Name System. CS 571 Fall , Kenneth L. Calvert University of Kentucky, USA All rights reserved

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

Applications and Services. 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

THE DOMAIN NAME SYSTEM DNS

Application Protocols in the TCP/IP Reference Model

Domain Name System (DNS) Fundamentals

Domain Name System. Overview. Domain Name System. Domain Name System

ECE 4321 Computer Networks. Network Programming

DNS Domain Name System

- Domain Name System -

DNS Service on Linux. Supawit Wannapila CCNA, RHCE

19 Domain Name System (DNS)

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

Domain Name System (DNS)

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

The Domain Name System (DNS)

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

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

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

Internet-Praktikum I Lab 3: DNS

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

CS3250 Distributed Systems

More Internet Support Protocols

DNS. Computer Networks. Seminar 12

Goal of this session

Distributed Systems. 22. Naming Paul Krzyzanowski. Rutgers University. Fall 2013

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

1 DNS Packet Structure

DNS Conformance Test Specification For Client

Domain Name System. 188lecture12.ppt. Pirkko Kuusela, Markus Peuhkuri, Jouni Karvo

Internetworking with TCP/IP Unit 10. Domain Name System

Introduction BIND. The DNS Protocol. History (1) DNS. History (2) Agenda

Teldat Router. DNS Client

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

Domain Name Server. Training Division National Informatics Centre New Delhi

Domain Name System (DNS) RFC 1034 RFC

The Domain Name System

Using Webmin and Bind9 to Setup DNS Sever on Linux

How-to: DNS Enumeration

NET0183 Networks and Communications

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

K-Root Name Server Operations

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

Motivation. Users can t remember IP addresses. Implemented by library functions & servers. - Need to map symbolic names (

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

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

The Domain Name System

Copyright

by telnet E.g., the machine fraser has IP address You can login to fraser from anywhere in the world

CS640: Computer Networks. Naming /ETC/HOSTS

Introduction to the Domain Name System

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

Application-layer Protocols

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

IPv6 support in the DNS

Deploying & Configuring a DNS Server on OpenServer 6 or UnixWare 7. Kirk Farquhar

Domain Name System DNS

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

Understanding DNS (the Domain Name System)

Chapter 7 Implementing Domain Name System (DNS)

Automated domain name registration: DNS background information

Introduction to DNS CHAPTER 5. In This Chapter

CS3600 SYSTEMS AND NETWORKS

DNS at NLnet Labs. Matthijs Mekking

The role of JANET CSIRT

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

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

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

Chapter 23 The Domain Name System (DNS)

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

DNS and BIND. David White

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

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

Domain Name System WWW. Application Layer. Mahalingam Ramkumar Mississippi State University, MS. September 15, 2014.

Domain Name System (DNS)

IPv6 Support in the DNS. Workshop Name Workshop Location, Date

DNS Session 4: Delegation and reverse DNS. Joe Abley AfNOG 2006 workshop

DNS Resolving using nslookup

Domain Name System. Heng Sovannarith

Domain Name System Richard T. B. Ma

3. The Domain Name Service

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

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

KB Windows 2000 DNS Event Messages 1 Through 1614

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

Coordinación. The background image of the cover is desgned by GUIDE TO DNS SECURITY 2

Services: DNS domain name system

The Domain Name System (DNS)

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

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

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

DNS + DHCP. Michael Tsai 2015/04/27

Understand Names Resolution

Transcription:

1/30 DNS : Domain Name System Surasak Sanguanpong nguan@.ac.th http://www...ac.th/~nguan Last updated: May 24, 1999 Outline 2/30 DNS basic name space name resolution process protocol configurations

Why need DNS? 3/30 host table /etc/hosts compiled from HOST.TXT (maintain by SRI NIC) simple text file with has IP address to name mapping problems traffic and load name collision consistency A hierarchical name with distributed control is needed DNS basic 4/30 DNS is a distributed database TCP/IP applications use DNS to map hostname to IP address map IP address to hostname provide e-mail routing information mail nguan@..ac.th > mail...ac.th handle aliases www...ac.th is actually is1...ac.th

Naming Scheme 5/30 cc...ac.th building tree from top to bottom th more specific ac name space is a tree of domain names are case-insensitive cc cc...ac.th Domain Name Space 6/30 root arpa com edu gov int mil net org au th in-addr usu ac cc cc.usu.edu tu cc cc...ac.th arpa domains generic domains country domains

DNS Management 7/30 managed by NIC root com th managed by Internic Thailand NIC manages root and top level domain name local admins manage 3rd level or more ac tu or manage by tu managed by Domain Name Concept 8/30 label domain name domain name every node has a label (except root) the list of labels, starting at that node, working up to the root, using a. to separate e.g..ac.th,..ac.th th ac absolute domain name absolute domain name domain name that ends with a period e.g. cc...ac.th. relative domain name relative domain name name to be completed e.g. cc cc

Domains 9/30 domain subtree of the domain name space th ac.th domain ac.ac.th domain tu cc cc...ac.th node Domains and Zones Zone is a subtree for which naming authority has been delegated.ac.th domain.ac.th zone ee.ac.th zone.ac.th domain ee 10/30 sci kps rdi lib sci kps rdi lib case 1 : single DNS administration case 2 : and have authority for their zones

Name Servers 11/30 Name server : Server that store information about the zone ns..ac.th ee ns...ac.th responsibility for..ac.th zone responsibility for.ac.th zone sci kps rdi lib ns...ac.th responsibility for..ac.th zone Type of Name Servers Primary Name server gets the data for zones from files on the host it runs on Secondary Name server gets its zone data from the primary for redundancy and workload distribution 12/30 nontri..ac.th: secondary ns..ac.th : primary ee ns...ac.th : primary ns2...ac.th : secondary sci kps rdi lib ns...ac.th: primary cc...ac.th: secondary

Zone Transfer 13/30 Secondary Name Server pulls zone data over from the primary called zone transfer. primary for.ac.th secondary for..ac.th ns..ac.th nontri..ac.th ns...ac.th primary for..ac.th secondary for.ac.th secondary for..ac.th ns2...ac.th secondary for..ac.th secondary for.ac.th secondary for..ac.th cc...ac.th secondary for..ac.th ns...ac.th primary for..ac.th secondary for.ac.th secondary for..ac.th Root Name Server 14/30 name server must contact other name servers for non local IP it has to know IP address of the top most server called root name server root name server - provide the names and address of the name server authoritative for top level domain name I have to connect root, when I don t have more info ns..ac.th root

Root Name Server (cont.) 15/30 13 root servers are currently available in Internet (Last updated Aug 97) A.ROOT-SERVERS.NET 198.41.0.4 B.ROOT-SERVERS.NET 128.9.0.107 C.ROOT-SERVERS.NET 192.33.4.12 D.ROOT-SERVERS.NET 128.8.10.90 E.ROOT-SERVERS.NET 192.203.230.10 F.ROOT-SERVERS.NET 192.5.5.241 G.ROOT-SERVERS.NET 192.112.36.4 H.ROOT-SERVERS.NET 128.63.2.53 I.ROOT-SERVERS.NET 192.36.148.17 J.ROOT-SERVERS.NET 198.41.0.10 K.ROOT-SERVERS.NET 193.0.14.129 L.ROOT-SERVERS.NET 198.32.64.12 M.ROOT-SERVERS.NET 202.12.27.33 ftp://ftp.rs.internic.net/domain/named.root Name Resolution Process 16/30 name server address of www..ac.th? ask th name servers root name server address of www..ac.th? ask ac.th name servers th name server th address of www..ac.th? ask.ac.th name server ac.th name server ac or address of www..ac.th? ask ns..ac.th name server.ac.th name server tu address of www..ac.th? address is 158.108.2.69 ns..ac.th name server www address is 158.108.2.69 address of www..ac.th? resolver

Reverse Resolution root 17/30 arpa in-addr in-addr.arpa domain in reverse direction of IP address au ac th 0 158 255 tu 0 108 255 0 3 0 34 255 255 cc cc...ac.th 3.34.108.158.in-addr.arpa Caching 18/30 all name servers employ a cache to reduce the DNS traffic standard UNIX keep cache in name server with time-out cache data is non-authoritative

DNS message format (I) 19/30 0 15 16 31 identification:16 flags:16 number of questions :16 number of authority RRs :16 1 or more questions 1 or more answers 1 or more authority 1 or more additional information number of answer RRs:16 number of additional RRs:16 fixed header query reply fixed 12 byte header with 4 variable lth fields DNS message format is defined for both queries and answers DNS message format (II) 20/30 0 15 16 31 identification:16 identification:16 flags:16 flags:16 set by the client and return by the server lets the client match responses to requests

DNS message format (III) 21/30 identification:16 identification:16 flags:16 flags:16 QR QR opcode opcode AA AA TC TC RD RD RA RA (zero) (zero) rcode rcode 1 4 1 1 1 1 3 4 QR opcode AA TC RD RA rcode 0 query, 1 response 0 standard query, 1inverse query, 2server status request 0 authoritatived answer,1 non authoritatived answer 1 truncated. using UDP, reply was>512 bytes, return only 512 bytes 1 recursive desired, 0 iterative 1 recursion available (server support recursion) return code : 0no error, 3name error DNS message format (IV) 22/30 questions questions :32 :32 query query name name query query type type query query class class query class normally 1 means Internet Address query type indicates desired response A 1 IP address NS 2 name server CNAME 5 canonical name PTR 12 pointer record query name is the name being loop, sequence of label begins with 1-byte count 3www322ac2th0 HINFO 13 host info MX 15 mail exchange record

DNS message format (V) 23/30 reply 1 or more answers 1 or more authority 1 or more additional information these three fields share a common resource record (RR) domain domain name name type type class class time-to-live resource lth resource data data domain name : corresp. response name, (query name format) type : response RR type code (see query type) time-to-live : cache life time of RR (often 864001 day) resource lth : specify the size of resource data resource data : the answer, e.g. IP address or other type Operations 24/30 use port 53 typically UDP request and reply if answer is too big, use TCP ip ip hdr hdr UDP UDP hdr hdr DNS DNS hdr hdr query query answer#1 answer#2

Resolver file 25/30 resolver must have address for local name server /etc/resolv.conf on UNIX /etc/resolv.conf # domain domain..ac.th # list of name server nameserver 158.108.32.5 nameserver 158.108.33.3 nameserver 158.108.2.67 Setting up DNS 26/30 BIND (Berkeley Internet Name Domain) package /usr/somewhere/in.named - BSD named DNS server /etc/named.boot - named configuration (tell named where to find database files)

Sample named.boot 27/30 ; Boot file for server ns...ac.th. directory /usr/local/named cache. root.cache primary localhost. primary/local primary 0.0.127.in-addr.arpa primary/local.rev primary..ac.th primary/ secondary.ac.th 158.108.2.67 secondary/ secondary cpc..ac.th 158.108.2.67 secondary/cpc secondary..ac.th 158.108.40.196 secondary/ secondary 108.158.in-addr.arpa 158.108.2.67 secondary/.rev primary 32.108.158.in-addr.arpa primary/zone/zone32 primary 33.108.158.in-addr.arpa primary/zone/zone33 : : : New named.conf format 28/30 BIND Version 8 defines a new format of boot file : named.conf options { directory "/usr/local/named"; }; zone "." { type hint; file "root.cache"; }; zone "localhost." { type master; file "primary/local"; }; zone "0.0.127.in-addr.arpa" { type master; file "primary/local.rev"; }; zone "..ac.th" { type master; file "primary/"; }; zone ".ac.th" { type slave; masters { 158.108.2.67; }; : :

Sample database file 29/30 ; address file for server ns...ac.th. (primary/) @ IN SOA ns...ac.th. dnsadmin.ns...ac.th. ( 1998051300 ; Last Updated May 13,1998 10800 ; Refresh every 3 hours 3600 ; Retry every 1 hour 2592000 ; Expire after 30 days 86400 ; Minimum TTL of 1 day ) ; Name Servers IN NS ns...ac.th. IN NS ns...ac.th. IN NS ns..ac.th. (continue on next page) Sample database file (cont.) 30/30 ; Mail Hubs for the Domain IN MX 10 mailhost...ac.th. IN MX 15 cc...ac.th. ; AI Lab mars IN HINFO "MP 1101D/DECstation 5000-420" IN MX 10 mailhost...ac.th. IN A 158.108.32.97 maspar IN CNAME mars...ac.th. saturn IN HINFO "SPARCstation 2" "SunOS 4.1.3" IN MX 10 mailhost...ac.th. IN A 158.108.32.98 ailab2 IN CNAME saturn...ac.th.