W4140 Network Laboratory Lecture 11 Nov 27 - Fall 2006 Shlomo Hershkop Columbia University.

Slides:



Advertisements
Similar presentations
Web Server Administration
Advertisements

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.
Web Server Administration Chapter 4 Name Resolution.
Domain Name System. DNS is a client/server protocol which provides Name to IP Address Resolution.
DNS Domain Name System. Domain names and IP addresses People prefer to use easy-to-remember names instead of IP addresses Domain names are alphanumeric.
DNS Domain Name System. Domain names and IP addresses People prefer to use easy-to-remember names instead of IP addresses Domain names are alphanumeric.
Domain Name System IP assigns 32-bit addresses to hosts (interfaces)
70-294: MCSE Guide to Microsoft Windows Server 2003 Active Directory, Enhanced Chapter 2: Name Resolution and DNS.
McGraw-Hill©The McGraw-Hill Companies, Inc., Chapter 25 Domain Name System.
Domain Name System (DNS) Network Information Center (NIC) : HOSTS.TXT.
CSEE W4140 Networking Laboratory Lecture 10: DNS Jong Yul Kim
Application Layer At long last we can ask the question - how does the user interface with the network?
COMS/CSEE 4140 Networking Laboratory Lecture 09 Salman Abdul Baset Spring 2008.
Domain Name System: DNS
CSEE W4140 Networking Laboratory Lecture 10: DNS Jong Yul Kim
MCTS Guide to Microsoft Windows Server 2008 Network Infrastructure Configuration Chapter 5 Introduction to DNS in Windows Server 2008.
TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 19 Domain Name System (DNS)
CompSci 356: Computer Network Architectures Lecture 20: Domain Name System and Content distribution networks Chapter Xiaowei Yang
DOMAIN NAME SYSTEM. Introduction  There are several applications that follow client server paradigm.  The client/server programs can be divided into.
Domain Name System ( DNS )  DNS is the system that provides name to address mapping for the internet.
TCP/IP Protocol Suite 1 Chapter 17 Upon completion you will be able to: Domain Name System: DNS Understand how the DNS is organized Know the domains in.
DNS. Outline r Domain Name System r DNS Hierarchy r Resolution.
Chapter 25 Domain Name System
The Domain Name System (DNS)
Domain Name Services Oakton Community College CIS 238.
Name Resolution and DNS. Domain names and IP addresses r People prefer to use easy-to-remember names instead of IP addresses r Domain names are alphanumeric.
Host Name Resolution. Overview Name resolution Name resolution Addressing a host Addressing a host Host names Host names Host name resolution Host name.
11.1 © 2004 Pearson Education, Inc. Exam Managing and Maintaining a Microsoft® Windows® Server 2003 Environment Lesson 11: Introducing WINS, DNS,
DNS (Domain Name System)
CS 4396 Computer Networks Lab
The Domain Name System. Computer Center, CS, NCTU 2 History of DNS  Before DNS ARPAnet  HOSTS.txt contains all the hosts’ information  Maintained by.
Data Communications and Computer Networks Chapter 2 CS 3830 Lecture 10 Omar Meqdadi Department of Computer Science and Software Engineering University.
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 Domain Name System. Domain names and IP addresses People prefer to use easy-to-remember names instead of IP addresses Domain names are alphanumeric.
Domain names and IP addresses Resolver and name server DNS Name hierarchy Domain name system Domain names Top-level domains Hierarchy of name servers.
25.1 Chapter 25 Domain Name System Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Domain Name System (DNS)
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
25.1 Chapter 25 Domain Name System Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Chapter 29 Domain Name System (DNS) Allows users to reference computer names via symbolic names translates symbolic host names into associated IP addresses.
Fall 2006Computer Networks25-1 Chapter 25. Domain Name System 25.1 Name Space 25.2 Domain Name Space 25.3 Distribution of Name Space 25.4 DNS in the Internet.
Domain Name System CH 25 Aseel Alturki
October 8, 2015 University of Tulsa - Center for Information Security Microsoft Windows 2000 DNS October 8, 2015.
Lecture – DNS How to find things…. Domain Name System Associate human-friendly names with machine- friendly IP addresses Resolution of a given hostname.
Pharming Group 10: Phuc H. Dao Anita Lugonja. Motivation To give students an opportunity to learn about DNS poisoning To give students an opportunity.
1 Kyung Hee University Chapter 18 Domain Name System.
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.
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.
1 Kyung Hee University Chapter 19 DNS (Domain Name System)
Domain Name System (DNS)
Web Server Administration Chapter 4 Name Resolution.
Domain Name System. McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 So what is DNS Resolution? DNS Resolution is the procedure used to resolve a IP.
1 Internet Service DNS & BIND OPS335 Seneca College of Applied Technology.
System Administration(SAD622S) Name of Presenter: Shadreck Chitauro Lecturer 18 July 2016 Faculty of Computing and Informatics.
Understand Names Resolution
Networking Applications
Chapter 17 DNS (Domain Name System)
CS 372 COMPUTER COMMUNICATION AND NETWORKS
Chapter 19 DNS (Domain Name System)
Chapter 25 Domain Name System.
Chapter 9: Domain Name Servers
IMPLEMENTING NAME RESOLUTION USING DNS
Net 323 D: Networks Protocols
EE 122: Domain Name Server (DNS)
Chapter 19 DNS (Domain Name System)
Presentation transcript:

W4140 Network Laboratory Lecture 11 Nov 27 - Fall 2006 Shlomo Hershkop Columbia University

Announcements  Feedback by tomorrow over  Final : Dec ??  Today: DNS Lab – IOS setup  Next Week : WAP Lab – wireless configurations

Overview  DNS  Reading: IBM REDBOOK oks/gg pdf oks/gg pdf and WAP for next week.  This Lab: Read up on cisco IOS  Lab will be posted later today

DNS Domain Name System

Domain names and IP addresses  People prefer to use easy-to-remember names instead of IP addresses  Domain names are alphanumeric names for IP addresses e.g., neon.cs.virginia.edu, ietf.org  The domain name system (DNS) is an Internet-wide distributed database that translates betweem domain names and IP addresses  How important is DNS? Imagine what happens when the local DNS server is down.

Before there was DNS …. …. there was the HOSTS.TXT file  Before DNS (until 1985), the name-to-IP address was done by downloading a single file (hosts.txt) from a central server with FTP. Names in hosts.txt are not structured. The hosts.txt file still works on most operating systems. It can be used to define local names.

Hosts.txt  Windows C:\windows\system32\drivers\etc\hosts  Unix like /etc/hosts  Format: IPnamenameetc sn.ks.comks.com

trick  Anyone know about x10.com ?  What if you have an entry:  ads.x10.comx10.com

Problem  Hosts.txt file was kept updated  Your machine was responsible for download/ftp the newest file to keep current  Able to find machines  Able to change ips etc  Took too long to propogate By the time everyone had a copy a new one was created Too many hosts were being added to allow error checking to take place Anyone would be able to add any entry and kill your mail service

DNS and BIND  Switch to distributed system  Allow the Internet to be divided into logical structures of zones  Allow hierarchy

Resolver and name server 1.An application program on a host accesses the domain system through a DNS client, called the resolver 2.Resolver contacts DNS server, called name server 3.DNS server returns IP address to resolver which passes the IP address to application  Reverse lookups are also possible, i.e., find the hostname given an IP address

Design principle of DNS  The naming system on which DNS is based is a hierarchical and logical tree structure called the domain namespace.  An organization obtains authority for parts of the name space, and can add additional layers of the hierarchy  Names of hosts can be assigned without regard of location on a link layer network, IP network or autonomous system  In practice, allocation of the domain names generally follows the allocation of IP address, e.g., All hosts with network prefix /16 have domain name suffix virginia.edu All hosts on network /24 are in the Computer Science Department of the University of Virginia

DNS Name hierarchy  DNS hierarchy can be represented by a tree  Below top-level domain, administration of name space is delegated to organizations  Each organization can delegate further Managed by UVA Managed by CS Dept.

Domain name system  Each node in the DNS tree represents a DNS name  Each branch below a node is a DNS domain. DNS domain can contain hosts or other domains (subdomains)  Example: DNS domains are., edu, virginia.edu, cs.virginia.edu

Domain names  Hosts and DNS domains are named based on their position in the domain tree  Every node in the DNS domain tree can be identified by a unique Fully Qualified Domain Name (FQDN). The FQDN gives the position in the DNS tree.  A FQDN consists of labels (“cs”,“virginia”,”edu”) separated by a period (“.”)  There can be a period (“.”) at the end.  Each label can be up to 63 characters long  FQDN contains characters, numerals, and dash character (“-”)  FQDNs are not case-sensitive

Top-level domains  Three types of top-level domains: Generic Top Level Domains (gTLD): 3-character code indicates the function of the organization  Used primarily within the US  Examples: gov, mil, edu, org, com, net Country Code Top Level Domain (ccTLD): 2-character country or region code  Examples: us, va, jp, de Reverse domains: A special domain (in-addr.arpa) used for IP address-to-name mapping  Keep track of who has what IP There are more than 200 top-level domains.

Generic Top Level Domains (gTLD) comCommercial organizations eduEducational institutions govGovernment institutions intInternational organizations milU.S. military institutions netNetworking organizations orgNon-profit organizations gTLDs are authoritatively administered by the Internet central name registration authority ICANN

Hierarchy of name servers  The resolution of the hierarchical name space is done by a hierarchy of name servers  Each server is responsible (authoritative) for a contiguous portion of the DNS namespace, called a zone.  DNS server answers queries about hosts in its zone

DNS domain and zones  Each zone is anchored at a specific domain node, but zones are not domains.  A DNS domain is a branch of the namespace  A zone is a portion of the DNS namespace generally stored in a file (It could consists of multiple nodes)  A server can divide part of its zone and delegate it to other servers

Primary and secondary name servers  For each zone, there must be a primary name server and a secondary name server The primary server (master server) maintains a zone file which has information about the zone. Updates are made to the primary server The secondary server copies data stored at the primary server. Adding a host:  When a new host is added (“gold.cs.virginia.edu”) to a zone, the administrator adds the IP information on the host (IP address and name) to a configuration file on the primary server

Root name servers  The root name servers know how to find the authoritative name servers for all top-level zones.  There are only 13 root name servers  Root servers are critical for the proper functioning of name resolution

Addresses of root servers (2004) A.ROOT-SERVERS.NET. (VeriSign, Dulles, VA) B.ROOT-SERVERS.NET. (ISI, Marina Del Rey CA) C.ROOT-SERVERS.NET. (Cogent Communications) D.ROOT-SERVERS.NET. (University of Maryland) E.ROOT-SERVERS.NET. (Nasa Ames Research Center) F.ROOT-SERVERS.NET. (Internet Systems Consortium) G.ROOT-SERVERS.NET. (US Department of Defense) H.ROOT-SERVERS.NET. (US Army Research Lab) I.ROOT-SERVERS.NET. (Autonomica/NORDUnet) J.ROOT-SERVERS.NET. (Verisign, multiple cities) K.ROOT-SERVERS.NET. (RIPE,Europe multiple cities) L.ROOT-SERVERS.NET. (IANA, Los Angeles) M.ROOT-SERVERS.NET. (WIDE, Tokyo, Seoul, Paris)

Domain name resolution 1.User program issues a request for the IP address of a hostname 2.Local resolver formulates a DNS query to the name server of the host 3.Name server checks if it is authorized to answer the query. a)If yes, it responds. b)Otherwise, it will query other name servers, starting at the root tree 4.When the name server has the answer it sends it to the resolver.

Recursive and Iterative Queries  There are two types of queries: Recursive queries Iterative (non-recursive) queries  The type of query is determined by a bit in the DNS query  Recursive query: When the name server of a host cannot resolve a query, the server issues a query to resolve the query  Iterative queries: When the name server of a host cannot resolve a query, it sends a referral to another server to the resolver

Recursive queries  In a recursive query, the resolver expects the response from the name server  If the server cannot supply the answer, it will send the query to the “closest known” authoritative name server (here: In the worst case, the closest known server is the root server)  The root sever sends a referral to the “edu” server. Querying this server yields a referral to the server of “virginia.edu”  … and so on

Iterative queries  In an iterative query, the name server sends a closest known” authoritative name server the a referral to the root server.  This involves more work for the resolver

So far  We’ve solved the distributive problem  Everyone can be responsible for own local zone at their level or below  Delgate who should be in charge as you move down the name space tree  But how do you handle everyone at once ???

Caching  To reduce DNS traffic, name servers caches information on domain name/IP address mappings  When an entry for a query is in the cache, the server does not contact other servers  Note: If an entry is sent from a cache, the reply from the server is marked as “unauthoritative”  Practical: you will see the first time you ask for a dns resolution, authoritative, next time non-authoritative (if didn’t time out)

Resource Records  The database records of the DNS distributed data base are called resource records (RR)  Resource records are stored in configuration files (zone files) at name servers. Resource records for a zone 

Resource Records Max. age of cached data in seconds Start of authority (SOA) record. Means: “This name server is authoritative for the zone Mylab.com” PC4.mylab.com is the name server is the address of the person in charge Name server (NS) record. One entry for each authoritative name server Address (A) records. One entry for each hostaddress db.mylab.com $TTL mylab.com. IN SOA PC4.mylab.com. ( 1 ; serial ; refresh 7200 ; retry ; expire ; ttl ) ; mylab.com.INNSPC4.mylab.com. ; localhostA PC4.mylab.com.A PC3.mylab.com.A PC2.mylab.com.A PC1.mylab.com.A

OPENDNS  When you connect to the Internet, you get your ISPs DNS to use  Many ISPs DNS ….pretty much stink  Can use other DNS machines  issues: Trust Speed Problems from ISP Issues with firewalls

nslookup  Tool to help debug the dns lookup process  Can manually check how things are being resolved  Lots of fun

practical  Please log into the local machines  If you don’t have a machine please double up with someone

Reading  Chapter in IBM redbook