Chabot College ELEC 99.08 Name Resolution.

Slides:



Advertisements
Similar presentations
CISCO NETWORKING ACADEMY Chabot College ELEC Address Resolution Protocol.
Advertisements

Web Server Administration
Web Server Administration Chapter 4 Name Resolution.
Domain Name System. DNS is a client/server protocol which provides Name to IP Address Resolution.
The Domain Name System. CeylonLinux DNS concepts using BIND 2 Hostnames IP Addresses are great for computers –IP address includes information used for.
TDC375 Autumn 03/04 John Kristoff - DePaul University 1 Network Protocols Domain Name System (DNS) largely based on slides from D. Comer.
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?
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)
IP Address Allocation, Resolution CIS 81 and CST 311 Rick Graziani Cabrillo College Spring 2006.
DOMAIN NAME SYSTEM. Introduction  There are several applications that follow client server paradigm.  The client/server programs can be divided into.
DNS. Outline r Domain Name System r DNS Hierarchy r Resolution.
Domain Name Services Oakton Community College CIS 238.
NET0183 Networks and Communications Lecture 25 DNS Domain Name System 8/25/20091 NET0183 Networks and Communications by Dr Andy Brooks.
Module 7: Configuring TCP/IP Addressing and Name Resolution.
Cisco Discovery Working at a Small-to-Medium Business or ISP CHAPTER 7 ISP Services Jr.
CISCO NETWORKING ACADEMY Chabot College ELEC Application Layer Puzzles.
Name Resolution Domain Name System.
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.
Implementing DNS Module D 7: Implementing DNS
Windows Server 2008 R2 Domain Name System Chapter 5.
DNS (Domain Name System). Domain Name System (DNS) Developed by Postel & Mockapetris is a good site to browse The phone.
IP Address Allocation, Resolution. Address Allocation.
1 DNS: Domain Name System People: many identifiers: m SSN, name, Passport # Internet hosts, routers: m IP address (32 bit) - used for addressing datagrams.
14 DNS : The Domain Name System. 14 Introduction - Problem Computers are used to work with numbers Humans are used to work with names ==> IP addresses.
Chapter 17 Domain Name System
1 Application Layer Lecture 6 Imran Ahmed University of Management & Technology.
Institute of Technology Sligo - Dept of Computing Semester 2 Chapter 10 IP Addressing.
Chapter 13 Microsoft DNS Server n DNS server: A Microsoft service that resolves computer names to IP addresses, such as resolving the computer name Brown.
70-291: MCSE Guide to Managing a Microsoft Windows Server 2003 Network Chapter 6: Name Resolution.
70-291: MCSE Guide to Managing a Microsoft Windows Server 2003 Network, Enhanced Chapter 6: Name Resolution.
Chapter 29 Domain Name System (DNS) Allows users to reference computer names via symbolic names translates symbolic host names into associated IP addresses.
Chapter 9 & 10 TCP/IP. TCP/IP Model Application Transport Internet Internet Access.
October 8, 2015 University of Tulsa - Center for Information Security Microsoft Windows 2000 DNS October 8, 2015.
CITA 310 Section 1 Name Resolution (Textbook Chapter 4)
DNS & BIND Chapter 24. This Chapter DNS Overview.
Deploying a Web Application Presented By: Muhammad Naveed Date:
Fully Qualified Domain Names FQDNs. DNS Database A distributed, hierarchical database Resolves Fully Qualified Domain Names (FQDNs) to IP addresses –
Netprog: DNS and name lookups1 Address Conversion Functions and The Domain Name System Refs: Chapter 9 RFC 1034 RFC 1035.
CISCO NETWORKING ACADEMY Chabot College ELEC telnet.
How to configure DNS for a Windows 2000 domain? 1.Start the Install/Remove Programs Control Panel Applet (Start - Settings - Control Panel - Add/Remove.
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.
Configuring Name Resolution and Additional Services Lesson 12.
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)
TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 19 Domain Name System (DNS)
1 Microsoft Windows 2000 Network Infrastructure Administration Chapter 6 Resolving Network Host Names.
Summary DNS DNS Alexandra Tolbert Benefits How It Works Basics Katherine Barrios DNS Parts Phillip Nelson.
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.
Linux Operations and Administration
Semester 2v2 Chapter 8: IP Addressing. Describe how IP addressing is important in routing. IP addresses are specified in 32-bit dotted-decimal format.
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.
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
Basics of the Domain Name System (DNS) By : AMMY- DRISS Mohamed Amine KADDARI Zakaria MAHMOUDI Soufiane Oujda Med I University National College of Applied.
Chapter 5c.  Upon completion of this chapter, you should be able to:  Configure IP addresses  Identify & select valid IP addresses for networks  Configure.
Domain Name System: DNS To identify an entity, TCP/IP protocols use the IP address, which uniquely identifies the Connection of a host to the Internet.
1 Internet Service DNS & BIND OPS335 Seneca College of Applied Technology.
Ip addressing: dhcp & dns
Understand Names Resolution
Networking Applications
IMPLEMENTING NAME RESOLUTION USING DNS
Net 323 D: Networks Protocols
Domain Name System Refs: Chapter 9 RFC 1034 RFC 1035.
Ip addressing: dhcp & dns
Windows Name Resolution
Presentation transcript:

Chabot College ELEC 99.08 Name Resolution

Name Resolution Topics Concepts name to IP address mapping “fully qualified” domain names Methods host tables domain name services (DNS) Commands ip host ip domain-lookup ip name-server ip domain-name show hosts

Name Resolution Purposes 1. Convenience of humans. Which is easier to remember? 198.133.219.25 www.cisco.com

Name Resolution Purposes 2. Ability to move machines with no disruption of access. What happens when we move a server to a different network or subnet? How do users find it? 198.133.219.25 becomes 209.42.167.99 but www.cisco.com remains www.cisco.com

Fully Qualified Domain Name Unique in the world - no duplicates. Example: library.stanford.edu Heirarchical structure: Top level domain (e.g. edu) Domain (e.g. stanford) Host (e.g. library)

Fully Qualified Domain Name chabotde.clpccd.cc.ca.us Host name Domain name Top-Level Domain Sub-Domains

Fully Qualified Domain Name For our labs, we’ll assume this domain name has been assigned: lab.edu Our router’s fully qualified domain names will therefore be: fremont.lab.edu hayward.lab.edu oakland.lab.edu

Default Domain Name TCP/IP configurations include a default domain to be appended to any unqualified hostname (e.g. hayward). For our labs, we’ll use this default domain: lab.edu Then when you ping fremont, TCP/IP will actually ping fremont.lab.edu Saves a lot of typing!

Resolving Names to Addresses Host Tables Domain Name Services

Host Table Created manually on each router or computer Maps names to IP addresses fremont.lab.edu 192.168.1.1 hayward.lab.edu 192.168.2.1 Provides name resolution only on the host on which the table was created. Fast, low overhead, cached in RAM.

Host Table Commands ip host [name] [address] May include up to 8 addresses per name Global config mode oak(config)#ip host fremont 192.168.1.1 10.1.0.1 oak(config)#ip host hayward 192.168.2.1 10.2.0.1 oak(config)#ip host oakland 192.168.3.1 10.2.0.2

Domain Name Services (DNS) A network service Runs on one or two servers that are used by all hosts on the network Maps names to IP addresses fremont.lab.edu 192.168.1.1 hayward.lab.edu 192.168.2.1 Used throughout the global Internet

DNS - Special Considerations Billions of IP addresses in use, many mapped to a name. (We could never fit them in a hosts file.) IP addresses and domain names change daily, and new ones are assigned daily. (We could never keep hosts files up to date.) DNS is like a global phone book that must be kept up-to-date very fast in its response

How DNS Works Local host sends DNS query to the local name server defined in the host’s TCP/IP config. (UDP port 53) If the local name server knows the address of the target name, it sends back a reply. Otherwise, it forwards the query to one of the 13 root name servers on the Internet. The root server then returns the IP address of the primary name server responsible for the domain being requested. The local name server then begins a recursive process, contacting the primary name server and then the authoritative name server for the target domain. The local name server then fills the local host’s request for the target ip address. The host then uses the supplied IP address to contact its target.

How DNS Works - Example To find the IP address of technet.micrsoft.com... your PC asks the Chabot name server, which then performs the following steps: Asks one of the 13 root name servers on the Internet for the addresses of the com name servers Asks one of these com servers for the address of the microsoft.com name server Ask the microsoft.com name server for the address of the host: technet.microsoft.com. The chabot name server then replies to your PC with the target IP address

How DNS Works

DNS Commands no ip domain-lookup Turns off the use of DNS to look up the ip address mapped to a hostname Used in our practice lab to prevent delays due to mistyped commands Global config mode oak(config)#no ip domain-lookup oak(config)#

DNS Commands ip domain-lookup Turns on the use of DNS to look up the ip address mapped to a hostname This is the default for all routers, so this command is only needed if lookup was previously turned off with no ip domain-lookup Global config mode oak(config)#ip domain-lookup oak(config)#

DNS Commands ip name-server xxx.xxx.xxx.xxx Sets the address for the DNS server to be used All DNS queries will go to this server Up to six server addresses may be listed, separated by spaces Global config mode oak(config)#ip name-server 172.28.118.12 oak(config)#

DNS Commands ip domain-name [name] Sets the default domain to be appended to “unqualified” names Saves repetitive typing of local domain Global config mode oak(config)#ip domain-name lab.edu oak(config)#

DNS Commands Typical configuration Global config mode oak(config)#ip domain-lookup oak(config)#ip name-server 172.28.118.12 oak(config)#ip domain-name lab.edu oak(config)# On a Windows PC, the same settings are made in the Network Control Panel, TCP/IP properties.

Show Hosts Commands show hosts Lists the host-address mappings cached in RAM privileged EXEC mode router#show hosts Default domain is CISCO.COM Name/address lookup uses domain service Name servers are 192.31.7.10 131.108.4.12 Host Flag Age Type Address(es) SLAG.CISCO.COM (perm, OK) 1 IP 131.108.4.10 CHAR.CISCO.COM (temp, OK) 8 IP 192.31.7.50 CHAOS.CISCO.COM (temp, OK) 8 IP 131.108.1.115 DIRT.CISCO.COM (temp, EX) 8 IP 131.108.1.111 DUSTBIN.CISCO.COM (temp, EX) 0 IP 131.108.1.27 DREGS.CISCO.COM (temp, EX) 24 IP 131.108.1.30

Show Hosts Commands Flags: perm - address resolved by host table temp - address resolved by DNS router#show hosts Default domain is CISCO.COM Name/address lookup uses domain service Name servers are 192.31.7.10 131.108.4.12 Host Flag Age Type Address(es) SLAG.CISCO.COM (perm, OK) 1 IP 131.108.4.10 CHAR.CISCO.COM (temp, OK) 8 IP 192.31.7.50 CHAOS.CISCO.COM (temp, OK) 8 IP 131.108.1.115 DIRT.CISCO.COM (temp, OK) 8 IP 131.108.1.111 DUSTBIN.CISCO.COM (temp, EX) 0 IP 131.108.1.27 DREGS.CISCO.COM (temp, EX) 24 IP 131.108.1.30

DNS Server Records A few DNS record types A (host address) CNAME (alias - cannonical name) PTR (domain name pointer - for reverse lookup) MX (mail exchange - mail server for domain) CNAME records mean that a host at one IP address can have many names.

Let’s try it! Point your browser at: http://www.clpccd.cc.ca.us http://porter.clpccd.cc.ca.us For the host at 209.129.156.3, Chabot’s DNS servers list porter as the host name (A-record) www as a name alias (CNAME-record)

Let’s try it! Point your browser at: http://porter On your PC, the default domain is set to clpccd.cc.ca.us Therefore, when you browse to porter, you reach the ip address of porter.clpccd.cc.ca.us

Let’s try it! At the DOS prompt: ping davis On your PC, the default domain is set to clpccd.cc.ca.us Therefore, when you ping davis, you reach the ip address of davis.clpccd.cc.ca.us

Lookup Sequence 1. Check cache in RAM. If entry not found, 2. Check hosts table. If entry not found, 3. Query local DNS server. If entry not found, refer to root server and then to authoritative DNS server for the target domain. Therefore, host table entries will be used first to satisfy a query.

Site Blocking - a simple approach... What does this address mean? 127.0.0.1 “loopback” address - your own NIC

Site Blocking - a simple approach... Suppose I wanted to prevent my browser from diplaying ads from ad1.doubleclick.net which DNS resolves to 206.65.183.110. Where would my browser go if my PC’s host table contained this entry? 127.0.0.1 ad1.doubleclick.net Take a look at this hosts file, which is designed to support ad blocking. For more info, point your browswer at http://www.accs-net.com/hosts/index.html