Chapter-2-NameServices

Slides:



Advertisements
Similar presentations
Distributed Web Systems Name Services Lecturer Department University.
Advertisements

Web Server Administration
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.
Implementing Domain Name System
Domain Name System. DNS is a client/server protocol which provides Name to IP Address Resolution.
Ersin KARA Istanbul Kültür Üniversitesi Bilgisayar Mühendisliği III
NAME SERVICES 1 Name Services From Chapter 9 of Distributed Systems Concepts and Design,4 th Edition, By G. Coulouris, J. Dollimore and T. Kindberg Published.
The Domain Name System Overview Introduction DNS overview How DNS helps us? Summary.
70-294: MCSE Guide to Microsoft Windows Server 2003 Active Directory, Enhanced Chapter 2: Name Resolution and DNS.
Hands-On Microsoft Windows Server 2003 Networking Chapter 6 Domain Name System.
MCTS Guide to Microsoft Windows Server 2008 Network Infrastructure Configuration Chapter 5 Introduction to DNS in Windows Server 2008.
70-293: MCSE Guide to Planning a Microsoft Windows Server 2003 Network, Enhanced Chapter 7: Planning a DNS Strategy.
Chapter 25 Domain Name System
Domain Name Services Oakton Community College CIS 238.
Hands-On Microsoft Windows Server 2008 Chapter 8 Managing Windows Server 2008 Network Services.
Configuring and Managing the DNS Server Role Lesson 4.
11.1 © 2004 Pearson Education, Inc. Exam Managing and Maintaining a Microsoft® Windows® Server 2003 Environment Lesson 11: Introducing WINS, DNS,
Distributed Computing COEN 317 DC2: Naming, part 1.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.1 ISP Services Working at a Small-to-Medium Business or ISP – Chapter 7.
NAME SERVICES. Names and addresses File names /etc/passwd URLS Internet domain names—dcs.qmw.ac.uk Identifiers- ROR, NFS.
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.
Module Overview Installing the DNS Server Role Configuring the DNS Server Role Configuring DNS Zones Configuring DNS Zone Transfers Managing and Troubleshooting.
Implementing DNS Module D 7: Implementing DNS
CN2140 Server II Kemtis Kunanuraksapong MSIS with Distinction MCT, MCITP, MCTS, MCDST, MCP, A+
Domain names and IP addresses Resolver and name server DNS Name hierarchy Domain name system Domain names Top-level domains Hierarchy of name servers.
Chapter 17 Domain Name System
Domain Name System (DNS). Network Service -2 What Is a Domain Namespace? Root Domain Subdomains Second-Level Domain Top-Level Domain FQDN: server1.sales.south.nwtraders.com.
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.
Distributed Computing COEN 317 DC2: Naming, part 1.
Domain Name System. CONTENTS Definitions. DNS Naming Structure. DNS Components. How DNS Servers work. DNS Organizations. Summary.
1 Kyung Hee University Chapter 18 Domain Name System.
Configuring and Troubleshooting Domain Name System
Configuring Name Resolution and Additional Services Lesson 12.
Windows Server 2003 DNS 安裝設定與管理維護 林寶森
Domain Name System (DNS). DNS Server Service Overview of Domain Name System What Is a Domain Namespace? Standards for DNS Naming.
TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 19 Domain Name System (DNS)
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
Web Server Administration Chapter 4 Name Resolution.
Domain Name System. 2 Introduction  In a distributed system, names are used to refer to a wide variety of resources such as:  Computers, services, remote.
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.
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.
Configuring and Managing the DNS Server Role Lesson 4.
Tanenbaum & Van Steen, Distributed Systems: Principles and Paradigms, 2e, (c) 2007 Prentice-Hall, Inc. All rights reserved DISTRIBUTED SYSTEMS.
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.
System Administration(SAD622S) Name of Presenter: Shadreck Chitauro Lecturer 18 July 2016 Faculty of Computing and Informatics.
Understand Names Resolution
Networking Applications
Chapter 25 Domain Name System.
Module 5: Resolving Host Names by Using Domain Name System (DNS)
Domain Name System (DNS)
IMPLEMENTING NAME RESOLUTION USING DNS
Configuring and Troubleshooting DNS
DNS.
Configuring and Managing the DNS Server Role
Net 323 D: Networks Protocols
Chapter 19 Domain Name System (DNS)
Lecture 7: Name and Directory Servers
Lecture 7: Name and Directory Servers
Domain Name System (DNS)
Lecture 8: Name and Directory Servers
Bina Ramamurthy Chapter 9
Bina Ramamurthy Chapter 9
Bina Ramamurthy Chapter 9
Domain Name System Refs: Chapter 9 RFC 1034 RFC 1035.
Domain Name System: DNS
Presentation transcript:

Chapter-2-NameServices

Introduction In a distributed system, names are used to refer to a wide variety of resources such as: Computers, services, remote objects, and files, as well as users. Basic design issues for name services, such as the structure and management of the spaces of names recognized by the service and the operations that the name service supports, are outlined and discussed in the context of the Internet Domain Name Service. Couloris,Dollimore and Kindberg Distributed Systems: Concepts & Design Edn. 4 , Pearson Education 2005

Resources are accessed using identifier or reference Introduction Resources are accessed using identifier or reference An identifier can be stored in variables and retrieved from tables quickly. Identifier includes or can be transformed to an address for an object. E.g. NFS file handle, CORBA remote object reference. Couloris,Dollimore and Kindberg Distributed Systems: Concepts & Design Edn. 4 , Pearson Education 2005

Introduction A name is human-readable value (usually a string) that can be resolved to an identifier or address. Internet domain name, file pathname, process number E.g ./etc/passwd, http://www.cdk3.net/ Couloris,Dollimore and Kindberg Distributed Systems: Concepts & Design Edn. 4 , Pearson Education 2005

Introduction http://www.cdk3.net:8888/WebExamples/earth.html URL Resource ID (IP number, port number, pathname) 138.37.88.61 WebExamples/earth.html 8888 DNS lookup file Web server Socket (Ethernet) Network address 2:60:8c:2:b0:5a ARP lookup Figure 1. Composed naming domains used to access a resource from a URL Couloris,Dollimore and Kindberg Distributed Systems: Concepts & Design Edn. 4 , Pearson Education 2005

You need to name an entity in order to use it. Introduction You need to name an entity in order to use it. If you don’t have a name or don’t know a name you should be able to describe its characteristics in order to identify it. According to these two requirements we have two services: Naming service Directory service 5/14/2019

Naming Service Given the name of a resource, returns the information about the resource. For example consider the white pages(http://www.whitepages.com/ ): given the name of a person you get the address/telephone number of that person. Other examples: LDAP (Lightweight Directory Access Protocol) a person on UB(University of Buffalo http://ldap.buffalo.edu/ ) computers gives you information about the person’s email, campus address, phone number, position held etc. 5/14/2019

Directory Service Given a description, find a service or resource that matches the description. For example consider the yellow pages( http://www.yellowpages.com/ ): when you want to rent a car, it may give a list of car rental agencies. 5/14/2019

Directory Services A more powerful service than naming where you look up for names using the attributes than the other way. Clients can Lookup for services by providing their attributes rather the name. A discovery service provides registry and lookup for spontaneous networking. Registry is used by server to publish a service and lookup is used by a client to locate a service. 5/14/2019

Overview of Domain Name System Domain Name System is a hierarchical distributed database DNS is the foundation of the Internet naming scheme DNS supports accessing resources by using alphanumeric names InterNIC(network information center) is responsible for managing the domain namespace DNS was created to support the Internet’s growing number of hosts

The ausregistry.com.au sub-domain of com.au Domain com.au The ausregistry.com.au sub-domain of com.au

Name Spaces A name space is a collection of all valid names recognized by a particular service Allow simple but meaningful names to be used Potentially infinite number of names Structured to allow similar subnames without clashes/conflict to group related names Allow re-structuring of name trees for some types of change, old programs should continue to work Management of trust

Name Spaces /etc/passwd is a hierarchic name with two components. The first, ‘etc’, is resolved relative to the context ‘/’, or root, and the second part, ‘passwd’, is relative to the context ‘/etc’. The name /oldetc/passwd can have a different meaning because its second component is resolved in a different context. Similarly, the same name /etc/passwd may resolve to different files in the contexts of two different computers.

What Is a Domain Namespace? Root Domain Top-Level Domain net com org Second-Level Domain nwtraders Subdomain west south east sales FQDN: SERVER1.sales.south.nwtraders.com Host: SERVER1

DNS vs File System

Naming a Domain Naming a Directory Start Here Start Here C:\windows\system32\drivers\ yahoo.com.au. A “.” is used as separator A “\” is used as separator

Standards for DNS Naming The following characters are valid for DNS names: A through Z a through z 0 through 9 Hyphen (-) The underscore (_) is a reserved character

DNS Resolution Resolution is an iterative process whereby a name is repeatedly presented to the naming contexts. The name is first presented to some initial naming context; resolution iterates as long as further context and derived names are output. Example1: /etc/passwd in which ‘etc’ is presented to context / and ‘passwd’ is presented to context /etc. Example 2: www.dcs.qmw.ac.uk in which the alias is resolved to another domain name such as copper.dcs.qmw.ac.uk which is further resolved to produce IP address.

What Are the Components of a DNS Solution? DNS Clients DNS Servers DNS Servers on the Internet Root “.” Resource Record .com .edu Resource Record

DNS – How it works?

DNS – How it works (mechanism)

What Is a DNS Query? A query is a request for name resolution and is directed to a DNS server Queries are recursive or iterative DNS clients and DNS servers both initiate queries DNS servers are authoritative or nonauthoritative for a namespace An authoritative DNS server for the namespace will either: Return the requested IP address Return an authoritative “No” A nonauthoritative DNS server for the namespace will either: Check its cache Use forwarders ( external dns names to the server outside of that network.) Use root hints they have a cache file that is constructed from all the DNS lookups it has performed in the past for which it has gotten an authoritative response Resolution is an iterative process whereby a name is repeatedly presented to the naming contexts

How Recursive Queries Work A recursive query is sent to a DNS server and requires a complete answer mail1.contoso.msft DNS Client 172.16.64.11) Database Local DNS Server

How Iterative Queries Work An iterative query directed to a DNS server may be answered with a referral to another DNS server Local DNS Server Root Hint (.) Iterative Query Ask .com Iterative Query .com Ask nwtraders.com Recursive Query mail1.nwtraders.com Iterative Query 172.16.64.11 Authoritative Response Nwtraders.com Client Server

DNS zone refers to certain portion or administrative space within the global domain name system(DNS). Each DNS zone represents a boundary of authority subject to management by certain entities. The total of all DNS zones, which are organized in hierarchical tree like order of cascading lower level domains for the DNS namespace.

Authoritative Response How Forwarders Work A forwarder is a DNS server designated to resolve external or offsite DNS domain names Iterative Query Forwarder Root Hint (.) Ask .com Iterative Query .com Ask nwtraders.com Recursive Query 172.16.64.11 Iterative Query Authoritative Response 172.16.64.11 Recursive query for mail1.nwtraders.com Nwtraders.com Local DNS Server Client Server

How Root Hints Work Root hints contain the IP addresses for DNS root servers Root (.) Servers DNS Servers Root Hints com DNS Server microsoft Client

How DNS Server Caching Works DNS server cache Host name IP address TTL ServerA.contoso.msft 192.168.8.44 28 seconds ServerA is at 192.168.8.44 Where’s ServerA? ServerA Client1 Where’s ServerA? ServerA is at 192.168.8.44 Client2

How DNS Data Is Stored and Maintained A zone contains resource records for a contiguous portion of the DNS namespace DNS Server Zone file: Contoso.msft.dns DNS ClientA 192.168.2.45 DNS ClientB 192.168.2.46 DNS ClientC 192.168.2.47 DNS ClientC DNS ClientA DNS ClientB

What is a resource record? A domain contains resource records Resource records are analogous to files Classified into types Some of the important types are SOA, NS, A, CNAME and MX Normally defines in “zone files”

What Are Resource Records and Record Types? Description A(address) Resolves a host name to an IP address PTR Resolves an IP address to a host name(same as reverse lookup) SOA(start of authority) The first record in any zone file SRV Resolves names of servers providing services NS(name server) Identifies the DNS server for each zone MX(mail exchange) The mail server CNAME(cannonical name) Resolves an alias to a host name

The “A” Record The “Address” record To which ip address it should be forwarded One or more normally defines a host Contains an IPv4 Address (the address computers use to uniquely identify each other on the internet) Eg. For example, you could enter the IP address 216.168.224.69 in your Web browser to reach the Network Solutions® website, or you could simply enter www.NetworkSolutions.com.

The “CNAME” Record A CNAME defines an alias The alias will then be resolved, if another CNAME is encountered then the process continues until an A record is found Eg. The record: You have a website with the domain name mywebsite.nl. This domain name is hooked up to an A-record which translates the domain name to the appropriate IP address, f.i. 11.22.33.444. You also have several subdomains, like www.mywebsite.nl, ftp.mywebsite.nl, mail.mywebsite.nl etc. and you want this sub domains to point to your main domain name mywebsite.nl. In stead of creating A-records for each sub domain and binding it to the IP address of your domain, you create an alias, a CNAME-record. See the table below, in case your IP address changes, you only have to edit 1 A-record and all subdomains follow automatically because de CNAMES point to the main domain with the A-record.

The “MX” Record An MX record defines the mail servers for a particular domain Mail eXchange records hold the name of hosts, and their priorities, able to deliver mail for the domain. Eg. The record: ausregistry.com.au MX 10 mail In the ausregistry.com.au domain, defines the host mail to be the priority 10 mail server for the “ausregistry.com.au” domain

The “NS” Record An NS record defines the authoritative Name servers for the domain. The “Name Server” records also define the name servers of children domains Eg. The record: internal NS ns1.hosting.com.au. In the ausregistry.com.au domain, defines the host “ns1.hosting.com.au” to be a name sever for the “internal.ausregistry.com.au” sub-domain

What is a zone? Its records are held in a database (“zonefile”) and served from an authoritative name server Zone refers to all the resource records in a domain but not its sub domains, the com.au zone contains delegations records for ausregistry.com.au, but not the resource records for ausregistry.com.au, however all of these records are part of the com.au domain

What Is a DNS Zone? Contoso.msft West South Support Sales Training North

What Are DNS Zone Types? Zones Description Primary Read/write copy of a DNS database Secondary Read-only copy of a DNS database Stub Copy of a zone that contains only records used to locate name servers Active Directory integrated Zone data is stored in Active Directory rather than in zone files

What Are Stub Zones? DEN-SRV1 MTL-SRV2 Primary Zone Stub Zone Contoso.msft Stub Zone Contoso.msft (SOA) Den-srv1.contoso.msft (NS) Den-srv1.contoso.msft (NS) Den-srv2.contoso.msft DEN-SRV1 (A) 10.10.0.10 DEN-SRV2 (A) 10.10.0.11 WEB1 (A) 10.10.16.5 DEN-DC1 (A) 10.10.0.2 WWW (CNAME) Web1.contoso.msft (SOA) Den-srv1.contoso.msft (NS) Den-srv1.contoso.msft (NS) Den-srv2.contoso.msft DEN-SRV1 (A) 10.10.0.10 DEN-SRV2 (A) 10.10.0.11

What Are Forward and Reverse Lookup Zones? Namespace: training.nwtraders.msft Forward zone (common name to ip ) Training DNS Client1 192.168.2.45 DNS Client2 192.168.2.46 DNS Client3 192.168.2.47 Reverse zone( ip to common name) 2.168.192.in-addr.arpa DNS Server Authorized for training DNS Client2 = ? 192.168.2.46 = ? DNS Client3 DNS Client1 DNS Client2

Why Use Reverse Lookup Zones? IIS Server DNS Server Web site www.contoso.msft/dev Allow only Contoso.msft Reverse Lookup Zone 0.10.10.in-addr.arpa 10 Den-srv1.contoso.msft 11 Den-srv2.contoso.msft 13 Den-srv2.contoso.msft 10 Den-cl1.contoso.msft 127 Den-cl2.nwtraders1.msft Access Denied Access Granted 10.10.0.127 http://www.contoso.msft/dev 10.10.0.10 http://www.contoso.msft/dev

What is a Delegation? Delegation refers to the act of putting NS records in a domain name “delegating” control of a sub-domain to another entity This entity then has the ability to control the resource records in this sub-domain and delegate further children domains to other entities. Eg. IANA( Internet assign number authority ) delegating control of a country code domain to the country.

How DNS Zone Transfers Work A DNS zone transfer is the synchronization of authoritative DNS zone data between DNS servers 1 SOA query for a zone 2 SOA query answered 3 IXFR or AXFR query for a zone IXFR or AXFR query answered (zone transferred) 4 Secondary server Primary and master server

How DNS Notify Works A DNS notify is an update to the original DNS protocol specification that permits notification to secondary servers when zone changes occur Resource record is updated 1 Destination Server Source Server SOA serial number is updated 2 3 DNS notify Zone transfer 4 Secondary Server Primary and Master Server

How to Secure Zone Transfers Restrict zone transfer to specified servers Encrypt zone transfer traffic Consider using Active Directory integrated zones Primary Zone Secondary Zone