T. S. Eugene Ngeugeneng at cs.rice.edu Rice University1 COMP/ELEC 429/556 Introduction to Computer Networks Domain Name System Some slides used with permissions.

Slides:



Advertisements
Similar presentations
EECS122 - UCB 1 CS 194: Distributed Systems: Naming Computer Science Division Department of Electrical Engineering and Computer Sciences University of.
Advertisements

Domain Name System. DNS is a client/server protocol which provides Name to IP Address Resolution.
Tanenbaum & Van Steen, Distributed Systems: Principles and Paradigms, 2e, (c) 2007 Prentice-Hall, Inc. All rights reserved Naming (2) DISTRIBUTED.
1 DNS. 2 BIND DNS –Resolve names to IP address –Resolve IP address to names (reverse DNS) BIND –Berkeley Internet Name Domain system Version 4 is still.
Domain Name System (or Service) (DNS) Computer Networks Computer Networks Term B10.
20101 The Application Layer Domain Name System Chapter 7.
Application Layer At long last we can ask the question - how does the user interface with the network?
Application Layer session 1 TELE3118: Network Technologies Week 12: DNS Some slides have been taken from: r Computer Networking: A Top Down Approach.
Domain Name System: DNS
T. S. Eugene Ngeugeneng at cs.rice.edu Rice University1 COMP/ELEC 429 Introduction to Computer Networks Domain Name System Some slides used with permissions.
70-293: MCSE Guide to Planning a Microsoft Windows Server 2003 Network, Enhanced Chapter 7: Planning a DNS Strategy.
CPSC 441: DNS1 Instructor: Anirban Mahanti Office: ICT Class Location: ICT 121 Lectures: MWF 12:00 – 12:50 Notes derived.
Domain Name System ( DNS )  DNS is the system that provides name to address mapping for the internet.
DNS. Outline r Domain Name System r DNS Hierarchy r Resolution.
Domain Name Services Oakton Community College CIS 238.
The Domain Name System Presented by: Baolan Bo Bo Liangzhen LiangzhenShuguangWeihuaYujun Instructor: Dr. Sharon P. Hall.
NET0183 Networks and Communications Lecture 25 DNS Domain Name System 8/25/20091 NET0183 Networks and Communications by Dr Andy Brooks.
CS 4396 Computer Networks Lab
1 Domain Name System (DNS). 2 DNS: Domain Name System Internet hosts: – IP address (32 bit) - used for addressing datagrams – “name”, e.g.,
Domain Name System (DNS)
Internet Address and Domain Name Service (DNS) CS587x Lecture Department of Computer Science Iowa State University.
T. S. Eugene Ngeugeneng at cs.rice.edu Rice University1 COMP/ELEC 429 Introduction to Computer Networks Lecture 18: Domain Name System Slides used with.
TELE 301 Lecture 11: DNS 1 Overview Last Lecture –Scheduled tasks and log management This Lecture –DNS Next Lecture –Address assignment (DHCP)
Ch-9: NAME SERVICES By Srinivasa R. Gudipati. To be discussed.. Fundamentals of Naming Services Naming Resolution The Domain Name System (DNS) Directory.
Chapter 16 – DNS. DNS Domain Name Service This service allows client machines to resolve computer names (domain names) to IP addresses DNS works at the.
DNS and HTTP CS 168. Domain Name Service Host addresses: e.g., – a number used by protocols – conforms to network structure (the “where”)
Domain names and IP addresses Resolver and name server DNS Name hierarchy Domain name system Domain names Top-level domains Hierarchy of name servers.
DNS: Domain Name System
1 DNS: Domain Name System People: many identifiers: m SSN, name, Passport # Internet hosts, routers: m IP address (32 bit) - used for addressing datagrams.
1 Application Layer Lecture 6 Imran Ahmed University of Management & Technology.
25.1 Chapter 25 Domain Name System Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Paper Presentation – CAP Page 2 Outline Review - DNS Proposed Solution Simulation Results / Evaluation Discussion.
Chapter 29 Domain Name System (DNS) Allows users to reference computer names via symbolic names translates symbolic host names into associated IP addresses.
Domain Name System CH 25 Aseel Alturki
October 8, 2015 University of Tulsa - Center for Information Security Microsoft Windows 2000 DNS October 8, 2015.
Netprog: DNS and name lookups1 Address Conversion Functions and The Domain Name System Refs: Chapter 9 RFC 1034 RFC 1035.
Internet and Intranet Protocols and Applications Lecture 5 Application Protocols: DNS February 20, 2002 Joseph Conron Computer Science Department New York.
Naming March 8, Networks What is naming?  Associations between some elements in a set of names and some elements in a set of values  Binding.
1 Kyung Hee University Chapter 18 Domain Name System.
Domain Name System Refs: Chapter 9 RFC 1034 RFC 1035.
CPSC 441: DNS 1. DNS: Domain Name System Internet hosts: m IP address (32 bit) - used for addressing datagrams m “name”, e.g., - used by.
Configuring Name Resolution and Additional Services Lesson 12.
Domain Name System (DNS). DNS Server Service Overview of Domain Name System What Is a Domain Namespace? Standards for DNS Naming.
1 COMP/ELEC 429/556 Introduction to Computer Networks Creating a Network Application Some slides used with permissions from Edward W. Knightly, T. S. Eugene.
Internet Address and Domain Name Service (DNS)
CS 3830 Day 10 Introduction 1-1. Announcements r Quiz #2 this Friday r Program 2 posted yesterday 2: Application Layer 2.
EE 122: Lecture 20 (Domain Name Server - DNS) Ion Stoica Nov 15, 2001 (* based on the some on-line slides of J. Kurose & K. Rose and of Raj Jain)
DNS DNS overview DNS operation DNS zones. DNS Overview Name to IP address lookup service based on Domain Names Some DNS servers hold name and address.
Internet Address and Domain Name Service (DNS) CS587x Lecture 5 Department of Computer Science Iowa State University.
Linux Operations and Administration
Domain Name System (DNS)
AfNOG-2003 Domain Name System (DNS) Ayitey Bulley
Web Server Administration Chapter 4 Name Resolution.
1. Internet hosts:  IP address (32 bit) - used for addressing datagrams  “name”, e.g., ww.yahoo.com - used by humans DNS: provides translation between.
Domain Name System (DNS) Joe Abley AfNOG Workshop, AIS 2014, Djibouti Session-1: Fundamentals.
COMP2322 Lab 3 DNS Steven Lee Feb. 19, Content Understand the Domain Name System (DNS). Analyze the DNS protocol with Wireshark. 2.
COMP 431 Internet Services & Protocols
Internet Naming Service: DNS* Chapter 5. The Name Space The name space is the structure of the DNS database –An inverted tree with the root node at the.
Domain Name System INTRODUCTION to Eng. Yasser Al-eimad
So DNS is A client-server application that maps domain names into their corresponding IP addresses with the help of name servers. Mapping domain names.
Basics of the Domain Name System (DNS) By : AMMY- DRISS Mohamed Amine KADDARI Zakaria MAHMOUDI Soufiane Oujda Med I University National College of Applied.
Understand Names Resolution
Chapter 9: Domain Name Servers
Domain Name System (DNS)
DNS.
EE 122: Domain Name Server (DNS)
Domain Name System (DNS)
CRC Example (I) C(x) = x2 + 1 (k = 2) data
DNS: Domain Name System
Domain Name System Refs: Chapter 9 RFC 1034 RFC 1035.
Presentation transcript:

T. S. Eugene Ngeugeneng at cs.rice.edu Rice University1 COMP/ELEC 429/556 Introduction to Computer Networks Domain Name System Some slides used with permissions from Edward W. Knightly, T. S. Eugene Ng, Ion Stoica, Hui Zhang

Data Packet Fundamental unit for communications in Internet T. S. Eugene Ngeugeneng at cs.rice.edu Rice University ver- sion HLen TOSLength Ident Flags Offset TTLProtocolChecksum Source Address Destination Address Options (if any) Data Header IPv4 Packet Format

An IP address T. S. Eugene Ngeugeneng at cs.rice.edu Rice University

An IP address T. S. Eugene Ngeugeneng at cs.rice.edu Rice University

A Domain Name T. S. Eugene Ngeugeneng at cs.rice.edu Rice University5

T. S. Eugene Ngeugeneng at cs.rice.edu Rice University6

7 Motivation Fact: A fundamental feature of the Internet is that every network interface is identified by a numerical IP address An application needs to know the IP address of the communication peer There is no magic, some out-of-band mechanism is needed –Word of mouth –Read it in magazine advertisements –Etc. But IP addresses are bad for humans to remember and tell each other, need names that makes sense to humans

T. S. Eugene Ngeugeneng at cs.rice.edu Rice University8 Internet Names & Addresses Names: e.g. –human-usable labels for machines –why this funny looking style with all these dots? Addresses: e.g –32-bit number, written this way for convenience –machine-usable labels for machines –more efficient to process than names How do you lookup from one to another? Let’s try nslookup!

T. S. Eugene Ngeugeneng at cs.rice.edu Rice University9 History Initially all host-addess mappings were in a file called hosts.txt (in /etc/hosts) –Changes were submitted to SRI by –New versions of hosts.txt ftp’d periodically from SRI –An administrator could pick names at their discretion –Any name is allowed: eugenesdesktopatrice As the Internet grew this system broke down because: –SRI couldn’t handled the load –Hard to enforce uniqueness of names –Many hosts had inaccurate copies of hosts.txt How to build a lookup system that scales!!! –billions of names and addresses to insert/delete/modify –billions of lookups per second Strategy: Divide and Conquer!

T. S. Eugene Ngeugeneng at cs.rice.edu Rice University10 Basic DNS Features Hierarchical namespace –as opposed to original flat namespace Distributed storage architecture –as opposed to centralized storage (plus replication)

T. S. Eugene Ngeugeneng at cs.rice.edu Rice University11 Naming Hierarchy “Top Level Domains” are at the top Depth of tree is arbitrary (limit 128) Domains are subtrees –E.g:.edu, rice.edu, ece.rice.edu Name collisions avoided –E.g. rice.edu and rice.com can coexist, but uniqueness is job of domain root edu com govmil org netukfr rice mit cs ece www etc. natsci

T. S. Eugene Ngeugeneng at cs.rice.edu Rice University12 Host names are administered hierarchically A zone corresponds to an administrative authority that is responsible for that portion of the hierarchy E.g. Eugene controls names: x.cs.rice.edu and y.ece.rice.edu E.g. The President controls names: x.rice.edu and y.natsci.rice.edu root edu com govmil org netukfr rice mit cs ece www etc. natsci

T. S. Eugene Ngeugeneng at cs.rice.edu Rice University13 DNS Server Hierarchy Each server has authority over a portion of the hierarchy –A server maintains only a subset of all names Each server contains all the records for the hosts or domains in its zone –might be replicated for robustness Every server knows the root servers’ IP addresses –Solves the chicken and egg problem Root server knows about all top-level domains

T. S. Eugene Ngeugeneng at cs.rice.edu Rice University14 DNS: Root Servers About a dozen root server IP addresses –Each address can refer to a large cluster of replicated servers to achieve sufficient performance Contacted by other servers that cannot resolve name

Load Balancers Are Very Common e.g. Amazon AWS T. S. Eugene Ngeugeneng at cs.rice.edu Rice University15

T. S. Eugene Ngeugeneng at cs.rice.edu Rice University16 Different Roles of DNS Servers Local name servers: –Each ISP (company) has local default name server –Host DNS query first goes to local name server –Local DNS server IP address usually learned from DHCP –Frequently cache query results Authoritative name servers: –Stores numerous pieces of information relevant to each name it’s responsible for; e.g. IP address –Can perform lookups for that name

T. S. Eugene Ngeugeneng at cs.rice.edu Rice University17 Basic Domain Name Resolution Every host knows a local DNS server –Through DHCP, for example –Sends all queries to a local DNS server Every local DNS server knows the ROOT servers –When no locally cached information exists about the query, talk to a root server, and go down the name hierarchy from the root –If we lookup and we have a cached entry for the rice.edu name server, then we can go directly to the rice.edu name server and bypass the root server

T. S. Eugene Ngeugeneng at cs.rice.edu Rice University18 Example of Iterated DNS Query Root name server: May not know authoritative name server May know intermediate name server: who to contact to find authoritative name server Iterated query: Contacted server replies with name/address of another server “I don’t know this name, but ask this server” wants to lookup root name server local name server moe.rice.edu authoritative name server ns1.google.com 6 7 intermediate name server (com server) 5 8

T. S. Eugene Ngeugeneng at cs.rice.edu Rice University19 Example of Recursive DNS Query Recursive query: Puts burden of name resolution on contacted name server Support is uncommon root name server local name server moe.rice.edu authoritative name server ns1.google.com 4 5 intermediate name server (com server) 7 8 wants to lookup

T. S. Eugene Ngeugeneng at cs.rice.edu Rice University20 DNS Resource Records DNS Query: –Two fields:(name, type) Resource record is the response to a query –Four fields:(name, value, type, TTL) –TTL (time to live) is the duration the response can be cached –There can be multiple valid responses to a query Type = A: –name = hostname –value = IP address

T. S. Eugene Ngeugeneng at cs.rice.edu Rice University21 Other Common Record Types Type = NS: –name = domain –value = name of dns server for domain Type = CNAME: –name = hostname –value = canonical name Type = MX: –name = domain in address –value = canonical name of mail server and priority

T. S. Eugene Ngeugeneng at cs.rice.edu Rice University22 Discussions DNS caching –Each record has a TTL –Crucial to scalability –Improve performance by saving results of previous lookups –E.g. results of address records and name server records (e.g. if rice.edu name server is cached, then can bypass root server the second time looking for a rice.edu host) DNS “hacks” –Return records based on requesting IP address –Round-robin over a list of IP addresses mapped to the same name for load balancing –Return address of least loaded machine –Basis for many web content distribution networks such as Akamai and Limelight

Discussions DNS has been a large source of security problems throughout the history of the Internet Examples: DNS servers can be leveraged to amplify a denial of service attack DNS cache poisoning can allow attackers to direct traffic to malicious machines Original DNS server software had lots of buffer overflow bugs that could be exploited by an attacker to take over the DNS server T. S. Eugene Ngeugeneng at cs.rice.edu Rice University23