CS 4700 / CS 5700 Network Fundamentals Lecture 12: DNS (What’s in a Name?) Revised 10/8/14.

Slides:



Advertisements
Similar presentations
CSE 534 – Fundamentals of Computer Networks Lecture 10: DNS (What’s in a Name?) Based on Slides by D. Choffnes (NEU). Revised by P. Gill Spring Some.
Advertisements

Sergei Komarov. DNS  Mechanism for IP hostname resolution  Globally distributed database  Hierarchical structure  Comprised of three components.
DNS and HTTPs ACN Presentation. Domain Names We refer to computers on the Internet (Internet hosts), by names like: sharda.ac.in These are called domain.
2.1 Installing the DNS Server Role Overview of the Domain Name System Role Overview of the DNS Namespace DNS Improvements for Windows Server 2008 Considerations.
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.
Computer Networks: Domain Name System. The domain name system (DNS) is an application-layer protocol for mapping domain names to IP addresses Vacation.
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.
20101 The Application Layer Domain Name System Chapter 7.
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.
DNS Security Extensions (DNSSEC) Ryan Dearing. Topics History What is DNS? DNS Stats Security DNSSEC DNSSEC Validation Deployment.
CPSC 441: DNS1 Instructor: Anirban Mahanti Office: ICT Class Location: ICT 121 Lectures: MWF 12:00 – 12:50 Notes derived.
DOMAIN NAME SYSTEM. Introduction  There are several applications that follow client server paradigm.  The client/server programs can be divided into.
CSE 461 Section (Week 0x02). Port numbers for applications MAC addresses for hardware IP addresses for a way to send data in a smart, routable way.
Chapter 25 Domain Name System
Application Layer. Domain Name System Domain Name System (DNS) Problem – Want to go to but don’t know the IP addresswww.google.com Solution.
Domain Name Services Oakton Community College CIS 238.
Domain Name System | DNSSEC. 2  Internet Protocol address uniquely identifies laptops or phones or other devices  The Domain Name System matches IP.
NET0183 Networks and Communications Lecture 25 DNS Domain Name System 8/25/20091 NET0183 Networks and Communications by Dr Andy Brooks.
1 Domain Name System (DNS). 2 DNS: Domain Name System Internet hosts: – IP address (32 bit) - used for addressing datagrams – “name”, e.g.,
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)
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.
Computer Networks: Domain Name System. The domain name system (DNS) is an application-layer protocol for mapping domain names to IP addresses Vacation.
CSUF Chapter 6 1. Computer Networks: Domain Name System 2.
IIT Indore © Neminath Hubballi
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
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Network Protocols Chapter 25 (Data Communication & Networking Book): Domain Name System (DNS) 1.
Chapter 17 Domain Name System
1 Application Layer Lecture 6 Imran Ahmed University of Management & Technology.
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.
October 8, 2015 University of Tulsa - Center for Information Security Microsoft Windows 2000 DNS October 8, 2015.
CS 3700 Networks and Distributed Systems DNS (What’s in a Name?) Revised 8/20/15.
Internet and Intranet Protocols and Applications Lecture 5 Application Protocols: DNS February 20, 2002 Joseph Conron Computer Science Department New York.
1 Kyung Hee University Chapter 18 Domain Name System.
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.
Internet Address and Domain Name Service (DNS)
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.
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.
DNS Security Extension 1. Implication of Kaminsky Attack Dramatically reduces the complexity and increases the effectiveness of DNS cache poisoning –No.
Internet Address and Domain Name Service (DNS) CS587x Lecture 5 Department of Computer Science Iowa State University.
Linux Operations and Administration
DNS Security 1. Fundamental Problems of Network Security Internet was designed without security in mind –Initial design focused more on how to make it.
Web Server Administration Chapter 4 Name Resolution.
1 CMPT 471 Networking II DNS © Janice Regan,
1. Internet hosts:  IP address (32 bit) - used for addressing datagrams  “name”, e.g., ww.yahoo.com - used by humans DNS: provides translation between.
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.
Short Intro to DNS (part of Tirgul 9) Nir Gazit. What is DNS? DNS = Domain Name System. For translation of host names to IPs. A Distributed Database System.
CSE 461 Section. Port numbers for applications MAC addresses for hardware IP addresses for a way to send data in a smart, routable way.
Understand Names Resolution
Domain Name System (DNS)
Attacking DNS Slides adapted from Olaf Kolkman, RIPE Lecture 18
Chapter 9: Domain Name Servers
Domain Name System (DNS)
CS 4700 / CS 5700 Network Fundamentals
CS 3700 Networks and Distributed Systems
IMPLEMENTING NAME RESOLUTION USING DNS
DNS.
EE 122: Domain Name Server (DNS)
Presentation transcript:

CS 4700 / CS 5700 Network Fundamentals Lecture 12: DNS (What’s in a Name?) Revised 10/8/14

Layer 8 (The Carbon-based nodes) 2  If you want to…  Call someone, you need to ask for their phone number You can’t just dial “P R O F C H O F”  Mail someone, you need to get their address first  What about the Internet?  If you need to reach Google, you need their IP  Does anyone know Google’s IP?  Problem:  People can’t remember IP addresses  Need human readable names that map to IPs

Internet Names and Addresses 3  Addresses, e.g  Computer usable labels for machines  Conform to structure of the network  Names, e.g.  Human usable labels for machines  Conform to organizational structure  How do you map from one to the other?  Domain Name System (DNS)

History 4  Before DNS, all mappings were in hosts.txt  /etc/hosts on Linux  C:\Windows\System32\drivers\etc\hosts on Windows  Centralized, manual system  Changes were submitted to SRI via  Machines periodically FTP new copies of hosts.txt  Administrators could pick names at their discretion  Any name was allowed daves_server_at_neu_pwns_joo_lol_kthxbye

Towards DNS 5  Eventually, the hosts.txt system fell apart  Not scalable, SRI couldn’t handle the load  Hard to enforce uniqueness of names e.g MIT Massachusetts Institute of Technology? Melbourne Institute of Technology?  Many machines had inaccurate copies of hosts.txt  Thus, DNS was born

 DNS Basics  DNS Security Outline 6

DNS at a High-Level 7  Domain Name System  Distributed database  No centralization  Simple client/server architecture  UDP port 53, some implementations also use TCP  Why?  Hierarchical namespace  As opposed to original, flat namespace  e.g..com  google.com  mail.google.com

Naming Hierarchy 8  Top Level Domains (TLDs) are at the top  Maximum tree depth: 128  Each Domain Name is a subtree .edu  neu.edu  ccs.neu.edu   Name collisions are avoided  neu.com vs. neu.edu Root educomgovmilorgnetukfretc. neumit ccsecehusky wwwloginmail

Hierarchical Administration 9  Tree is divided into zones  Each zone has an administrator  Responsible for the part of the heirarchy  Example:  CCIS controls *.ccs.neu.edu  NEU controls *.neu.edu Root educomgovmilorgnetukfretc. neumit ccs wwwloginmail ICANN Verisign

Server Hierarchy 10  Functions of each DNS server:  Authority over a portion of the hierarchy No need to store all DNS names  Store all the records for hosts/domains in its zone May be replicated for robustness  Know the addresses of the root servers Resolve queries for unknown names  Root servers know about all TLDs  The buck stops at the root servers

Root Name Servers 11  Responsible for the Root Zone File  Lists the TLDs and who controls them  ~272KB in size com INNSa.gtld-servers.net. com INNSb.gtld-servers.net. com INNSc.gtld-servers.net.  Administered by ICANN  13 root servers, labeled A  M  6 are anycasted, i.e. they are globally replicated  Contacted when names cannot be resolved  In practice, most systems cache this information

Map of the Roots 12

Northeastern Local Name Servers 13  Each ISP/company has a local, default name server  Often configured via DHCP  Hosts begin DNS queries by contacting the local name server  Frequently cache query results Where is google.com?

Authoritative Name Servers 14  Stores the name  IP mapping for a given host Northeastern Where is Rooteduneu Authority for ‘neu.edu’ = Authority for ‘edu’

Basic Domain Name Resolution 15  Every host knows a local DNS server  Sends all queries to the local DNS server  If the local DNS can answer the query, then you’re done 1. Local server is also the authoritative server for that name 2. Local server has cached the record for that name  Otherwise, go down the hierarchy and search for the authoritative name server  Every local DNS server knows the root servers  Use cache to skip steps if possible e.g. skip the root and go directly to.edu if the root file is cached

Recursive DNS Query 16  Puts the burden of resolution on the contacted name server  How does asgard know who to forward responses too?  Random IDs embedded in DNS queries  What have we said about keeping state in the network? Root com ns1.google.com asgard.ccs.neu.edu Where is

Iterated DNS query 17  Contact server replies with the name of the next authority in the hierarchy  “I don’t know this name, but this other server might”  This is how DNS works today Root com ns1.google.com asgard.ccs.neu.edu Where is

DNS Propagation 18  How many of you have purchased a domain name?  Did you notice that it took ~72 hours for your name to become accessible?  This delay is called DNS Propagation Root com ns.godaddy.com asgard.ccs.neu.edu  Why would this process fail for a new DNS name?

Caching vs. Freshness 19  DNS Propagation delay is caused by caching asgard.ccs.neu.edu Cached Root Zone File Cached.com Zone File Cached.net Zone File Etc. Root com ns.godaddy.com Where is That name does not exist.  Zone files may be cached for 1-72 hours

DNS Resource Records 20  DNS queries have two fields: name and type  Resource record is the response to a query  Four fields: (name, value, type, TTL)  There may be multiple records returned for one query  What are do the name and value mean?  Depends on the type of query and response

DNS Types 21  Type = A / AAAA  Name = domain name  Value = IP address  A is IPv4, AAAA is IPv6  Type = NS  Name = partial domain  Value = name of DNS server for this domain  “Go send your query to this other server” Query Name: Type: A Resp. Name: Value: Query Name: ccs.neu.educcs.neu.edu Type: NS Resp. Name: ccs.neu.educcs.neu.edu Value:

DNS Types, Continued 22  Type = CNAME  Name = hostname  Value = canonical hostname  Useful for aliasing  CDNs use this  Type = MX  Name = domain in address  Value = canonical name of mail server Query Name: foo.mysite.comfoo.mysite.com Type: CNAME Resp. Name: foo.mysite.comfoo.mysite.com Value: bar.mysite.combar.mysite.com Query Name: ccs.neu.educcs.neu.edu Type: MX Resp. Name: ccs.neu.educcs.neu.edu Value: amber.ccs.neu.eduamber.ccs.neu.edu

Reverse Lookups 23  What about the IP  name mapping?  Separate server hierarchy stores reverse mappings  Rooted at in-addr.arpa and ip6.arpa  Additional DNS record type: PTR  Name = IP address  Value = domain name  Not guaranteed to exist for all IPs Query Name: Type: PTR Resp. Name: Value: ccs.neu.educcs.neu.edu

DNS as Indirection Service 24  DNS gives us very powerful capabilities  Not only easier for humans to reference machines!  Changing the IPs of machines becomes trivial  e.g. you want to move your web server to a new host  Just change the DNS record!

Aliasing and Load Balancing 25  One machine can have many aliases *.blogspot.com david.choffnes.com alan.mislo.ve  One domain can map to multiple machines

Content Delivery Networks 26 DNS responses may vary based on geography, ISP, etc

 DNS Basics  DNS Security Outline 27

The Importance of DNS 28  Without DNS…  How could you get to any websites?  You are your mailserver  When you sign up for websites, you use your address  What if someone hijacks the DNS for your mail server?  DNS is the root of trust for the web  When a user types they expect to be taken to their bank’s websitewww.bankofamerica.com  What if the DNS record is compromised?

Denial Of Service 29  Flood DNS servers with requests until they fail  October 2002: massive DDoS against the root name servers  What was the effect?  … users didn’t even notice  Root zone file is cached almost everywhere  More targeted attacks can be effective  Local DNS server  cannot access DNS  Authoritative server  cannot access domain

DNS Hijacking 30  Infect their OS or browser with a virus/trojan  e.g. Many trojans change entries in /etc/hosts  *.bankofamerica.com  evilbank.com  Man-in-the-middle  Response Spoofing  Eavesdrop on requests  Outrace the servers response

dns.bofa.com DNS Spoofing Where is bankofamerica.com? dns.evil.com Where is bankofamerica.com? How do you know that a given name  IP mapping is correct?

DNS Cache Poisoning 32  Until the TTL expires, all queries for BofA to dns.neu.edu will return poisoned result  Much worse than spoofing/man-in-the-middle  Whole ISPs can be impacted! ns1.google.com dns.neu.edu Where is = bankofamerica.com = Where is bankofamerica.com?

Solution: DNSSEC 33  Cryptographically sign critical resource records  Resolver can verify the cryptographic signature  Two new resource types  Type = DNSKEY Name = Zone domain name Value = Public key for the zone  Type = RRSIG Name = (type, name) tuple, i.e. the query itself Value = Cryptographic signature of the query results  Deployment  On the roots since July 2010  Verisign enabled it on.com and.net in January 2011  Comcast is the first major ISP to support it (January 2012) Prevents hijacking and spoofing Creates a hierarchy of trust within each zone

DNSSEC Hierarchy of Trust 34 dns.bofa.com Where is bankofamerica.com? IP: Key: SIG: x9fnskflkalk.com (Verisign) Root Zone (ICANN) dns.evil.com IP: Key: SIG: 9na8x7040a3

Site Finder 35  September 2003: Verisign created DNS wildcards for *.com and *.net  Essentially, catch-all records for unknown domains  Pointed to a search website run by Verisign  Search website was full of advertisements  Extremely controversial move  Is this DNS hijacking?  Definitely abuse of trust by Verisign  Site Finder was quickly shut down, lawsuits ensued

Much More to DNS 36  Caching: when, where, how much, etc.  Other uses for DNS (i.e. DNS hacks)  Content Delivery Networks (CDNs)  Different types of DNS load balancing  Dynamic DNS (e.g. for mobile hosts)  DNS and botnets  Politics and growth of the DNS system  Governance  New TLDs (.xxx,.biz), eliminating TLDs altogether  Copyright, arbitration, squatting, typo-squatting