NET0183 Networks and Communications

Similar documents
CMPE 80N: Introduction to Networking and the Internet

Domain Name System (DNS)

DNS: Domain Name System

CMPE 80N: Introduction to Networking and the Internet

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

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

Domain Name System Richard T. B. Ma

DATA COMMUNICATOIN NETWORKING

Domain Name System DNS

Chapter 2 Application Layer

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

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

DNS: Distributed Name System

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

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

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

The Application Layer: DNS

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

DNS: Domain Name System

DNS and P2P File Sharing

Domain Name System (DNS)

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

internet technologies and standards

Domain Name System (DNS) RFC 1034 RFC

Distributed Systems. Naming

Internet-Praktikum I Lab 3: DNS

Computer Networks. Instructor: Niklas Carlsson

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

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

DNS. Spring 2016 CS 438 Staff 1

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

Cours du 22 novembre

Chapter 23 The Domain Name System (DNS)

CS640: Computer Networks. Naming /ETC/HOSTS

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

3. The Domain Name Service

Computer Networks & Security 2014/2015

Application-layer protocols

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

2.5 DNS The Internet s Directory Service

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

CS3600 SYSTEMS AND NETWORKS

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

Computer Networks: Domain Name System

DNS Domain Name System

Introduction to the Domain Name System

The Domain Name System (DNS)

Domain Name System (DNS) Fundamentals

DNS Basics. DNS Basics

DNS : Domain Name System

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

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

416 Distributed Systems. Feb 24, 2016 DNS and CDNs

INTERNET DOMAIN NAME SYSTEM

Goals of Today s Lecture. Separating Naming and Addressing. Host Names vs. IP addresses. Domain Name System (DNS) EE 122: Domain Name System

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

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

Network Layer 4- density - A Top Down Approach

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

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

Application layer Protocols application transport

CS3250 Distributed Systems

Network Layers. CSC358 - Introduction to Computer Networks

DNS Domain Name System

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

The Domain Name System (DNS)

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

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

FTP: the file transfer protocol

HW2 Grade. CS585: Applications. Traditional Applications SMTP SMTP HTTP 11/10/2009

The Domain Name System

DNS and electronic mail. DNS purposes

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

Wireshark Lab: DNS v6.01

Lecture 5: Network Attacks I. Course Admin

Basic DNS Course. Module 1. DNS Theory. Ron Aitchison ZYTRAX, Inc. Page 1 of 24

Teldat Router. DNS Client

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

Computer Names. based on chapter 10 of CompTIA Network+ Exam Guide, 4th edition, by Mike Meyers OVERVIEW

DNS and Interface User Guide

Introduction to Network Operating Systems

Wireshark Lab: DNS. 1. nslookup

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

CSE/ISE 311: Systems Administra5on Networking 2

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

The Domain Name System

- Domain Name System -

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

Application. Transport. Network. Data Link. Physical. Network Layers. Goal

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

ECE 4321 Computer Networks. Network Programming

Understand Names Resolution

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

Lab - Observing DNS Resolution

Application Protocols in the TCP/IP Reference Model

Wireshark DNS. Introduction. nslookup

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

Applications and Services. DNS (Domain Name System)

Digital Communication in the Modern World Application Layer cont. DNS, SMTP

More Internet Support Protocols

Transcription:

NET0183 Networks and Communications Lecture 25 DNS Domain Name System 8/25/2009 1 NET0183 Networks and Communications by Dr Andy Brooks

DNS is a distributed database implemented in a hierarchy of many servers. DNS is an application layer protocol that runs over UDP and uses port 53. When someone uses the term DNS they might be talking about the servers or they might be talking about the protocol or both. 8/25/2009 NET0183 Networks and Communications by Dr Andy Brooks 2

DNS @ Webopedia 17/3/10 Short for Domain Name System (or Service or Server), an Internet service that translates domain names into IP addresses. Because domain names are alphabetic, they're easier to remember. The Internet however, is really based on IP addresses. Every time you use a domain name, therefore, a DNS service must translate the name into the corresponding IP address. For example, the domain name www.example.com might translate to 198.105.232.4. The DNS system is, in fact, its own network. If one DNS server doesn't know how to translate a particular domain name, it asks another one, and so on, until the correct IP address is returned. 8/25/2009 NET0183 Networks and Communications by Dr Andy Brooks 3

4.20 Name Resolution The translation of a domain name into an address is called name resolution and the name is said to be resolved to an address. Software to perform translation is known as a name resolver (or simply resolver). In the socket API, for example, the resolver is invoked by calling function gethostbyname. Each resolver is configured with the address of one or more local DNS servers. The resolver forms a DNS request message and sends the message to the local DNS server. The resolver the waits for the local DNS server to send a DNS reply message with the answer. 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved. 4

Root server system @ Webopedia 17/3/10 A system of 13 file servers that are distributed around the globe and contain authoritative databases that form a master list of all top-level domain names (TLDs). There is one central, or "A", server that replicates changes to the other servers on a daily basis. Different organizations maintain the servers on the root server system. The U.S. government plays a role in maintaining about half of the servers. While only 13 names are used for the root nameservers, there are many more physical servers; C, F, I, J, K, L and M servers now exist in multiple locations on different continents, using anycast address announcements to provide decentralized service. As a result most of the physical root servers are now outside the United States, allowing for high performance worldwide. Root nameserver @ Wikipedia 3/17/2010 8/25/2009 NET0183 Networks and Communications by Dr Andy Brooks 5

TLD @ Webopedia 17/3/10 Short for top-level domain, and refers to the suffix attached to Internet domain names. There are a limited number of predefined suffixes, and each one represent a top-level domain. Current top-level domains include: com - commercial businesses; this is the most common TLD gov - U.S. government agencies edu - Educational institutions such as universities org - Organizations (mostly nonprofit) mil - Military net - Network organizations ca - Canada th - Thailand 8/25/2009 NET0183 Networks and Communications by Dr Andy Brooks 6

8/25/2009 NET0183 Networks and Communications by Dr Andy Brooks 7

slide from Kurose & Ross Distributed, Hierarchical Database Client wants IP for www.amazon.com; 1 st approx: Client queries a root server to find com DNS server Client queries com DNS server to get amazon.com DNS server Client queries amazon.com DNS server to get IP address for www.amazon.com 8

slide from Kurose & Ross Example Host at cis.poly.edu wants IP address for gaia.cs.umass.edu 9

slide from Kurose & Ross Recursive queries recursive query: puts burden of name resolution on contacted name server heavy load? iterated query: contacted server replies with name of server to contact I don t know this name, but ask this server 10

slide from Kurose & Ross DNS: caching once (any) name server learns a mapping, it caches the mapping cache entries timeout (disappear) after some time Top-level domain servers are typically cached in local name servers. Thus root name servers are not often visited. 11

Domain Name System @ Wikipedia 17/3/10 In principle, authoritative name servers are sufficient for the operation of the Internet. However, with only authoritative name servers operating, every DNS query must start with recursive queries at the root zone of the Domain Name System and each user system must implement resolver software capable of recursive operation. To improve efficiency, reduce DNS traffic across the Internet, and increase performance in end-user applications, the Domain Name System supports DNS cache servers which store DNS query results for a period of time determined in the configuration (time-to-live) of the domain name record in question. An authoritative-only name server only returns answers to queries about domain names that have been specifically configured by the administrator. 8/25/2009 NET0183 Networks and Communications by Dr Andy Brooks 12

DNS caching in Web browsers http://developer.yahoo.net/blog/archives/2007/07/high_performanc_7.html DNS has a cost. It typically takes 20-120 milliseconds for DNS to lookup the IP address for a given hostname. The browser can t download anything from this hostname until the DNS lookup is completed. DNS lookups are cached for better performance. This caching can occur on a special caching server, maintained by the user's ISP or local area network, but there is also caching that occurs on the individual user's computer. The DNS information remains in the operating system's DNS cache (the "DNS Client service" on Microsoft Windows). Most browsers have their own caches, separate from the operating system's cache. As long as the browser keeps a DNS record in its own cache, it doesn't bother the operating system with a request for the record. Internet Explorer caches DNS lookups for 30 minutes by default, as specified by the DnsCacheTimeout registry setting. Firefox caches DNS lookups for 1 minute, controlled by the network.dnscacheexpiration configuration setting. 8/25/2009 NET0183 Networks and Communications by Dr Andy Brooks 13

slide from Kurose & Ross DNS records DNS: a distributed database storing resource records (RR) RR format: (name, value, type, ttl) Type=A name is hostname value is IP address Type=NS name is domain (e.g. foo.com) value is hostname of 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 name of mailserver associated with name 14

slide from Kurose & Ross DNS protocol, messages query & reply messages both have the same message format msg header Identification: 16 bit # for query, reply to query uses same # Flags, e.g. query or reply Bit 16 - QR bit. The message is a query if the value is 0. The message is a response if the value is 1. reply is authoritative Bit 21 - AA bit. - Authoritative answer is set if the responding name server is an aurhority for the domain name in question. recursion desired Bit 23 RD bit. Recursion Desired is set in a query and indicates the query should be persued recursively. 15

slide from Kurose & Ross DNS protocol, messages QR 16