40
Domain Name System Eng. Y asser Al-e imad Internet Manager [email protected] Introduction to DNS Eng. Yasser Al-eimad INTRODUCTION to

Domain Name System

Embed Size (px)

DESCRIPTION

This presentation is about domain name system

Citation preview

  • Domain Name System

    Eng. Yasser Al-eimadInternet [email protected] to DNSEng. Yasser Al-eimadINTRODUCTION to

  • CONTENTSDefinitions.DNS Naming Structure.DNS Components.How DNS Servers work.DNS Organizations.Summary.

    Introduction to DNSEng. Yasser Al-eimad

  • CONTENTSDefinitions.DNS Naming Structure.DNS Components.How DNS Servers work.DNS Organizations.Summary.

    Introduction to DNSEng. Yasser Al-eimad

  • DNS DefinitionThe Domain Name SystemCreated in 1983 by Paul Mockapetris (RFCs 1034 and 1035), modified, updated, and enhanced by many of subsequent RFCsThe Internet users use DNS to reference anything by name on the InternetThe mechanism by which Internet software translates names to addresses and vice versa

    DefinitionsIntroduction to DNSEng. Yasser Al-eimad

  • DNS Definition IP assigns 32-bit addresses to hosts (interfaces) Binary addresses are easy for computers to manage .All applications use IP addresses through the TCP/IP protocol software.Difficult for humans to remember.

    Domain names comprise a hierarchy so that names are unique, easy to remember.

    Introduction to DNSEng. Yasser Al-eimadDefinitions

  • Domain NamesA domain name is the sequence of labels from a node to the root, separated by dots (.s), read left to rightExample domain names:yemen.net.yeYahoo.com

    Introduction to DNSEng. Yasser Al-eimadDefinitions

  • &SubDomain Nameone domain is a sub-Domain of another if its domain name ends in the others domain nameSo yemen.net.ye is a subdomain ofnet.yeyegoogle.com is a subdomain of com.

    Introduction to DNSEng. Yasser Al-eimadDefinitions

  • CONTENTSDefinitions.DNS Naming Structure.DNS Components.How DNS Servers work.DNS Organizations.Summary.

    Introduction to DNSEng. Yasser Al-eimad

  • DNS Naming Structure

    Top level domains TLDs defined by global authority com, org, edu.ccTLD: country code TLDs .ye2nd Level Domains.net.yegoogle.com

    DNS Naming StructureIntroduction to DNSEng. Yasser Al-eimad

  • Top-Level Domains (TLDs)Introduction to DNSEng. Yasser Al-eimadDNS Naming Structure

  • Country Code DomainsTop level domains are US-centric .Geographic TLDs used for organizations in other countries:

    TLD Country.uk United Kingdom .fr France .ye Yemen

    Countries define their own internal hierarchy: gov.ye, org.ye ,net.ye , edu.ye and com.ye are used for organizations in Yemen

    Introduction to DNSEng. Yasser Al-eimadDNS Naming Structure

  • Second-Level DomainsWithin every top-level domain there is a huge list of 2nd level domainsFor example, in the COM second-level domain, you've got: yahoo msn microsoft plus millions of others...

    Introduction to DNSEng. Yasser Al-eimadDNS Naming Structure

  • Examples:

    Google .com

    yemen .net .ye

    DNS naming structure ExampleTLDccTLD2nd LD3rd LD2nd LDIntroduction to DNSEng. Yasser Al-eimadDNS Naming Structure

  • CONTENTSDefinitions.DNS Naming Structure.DNS Components.How DNS Servers work.DNS Organizations.Summary.

    Introduction to DNSEng. Yasser Al-eimad

  • The DomainA Domain is a sub tree of a larger tree identified by a domain name Contains resource records and sub-domainsSome resource records point to authoritative server for sub-domains / zoneseg. the root contains pointers to .yeYemen.net.ye is a domain

    DNS ComponentsIntroduction to DNSEng. Yasser Al-eimad

  • The Resource Record

    A domain contains resource recordsResource records are similar to filesClassified into typesSome of the important types are SOA, NS, A, CNAME and MXNormally defines in zone filesIntroduction to DNSEng. Yasser Al-eimadDNS Components

  • Types of Resource RecordsThe A RecordThe Address recordOne or more normally defines a hostContains an IPv4 Address (the address computers use to uniquely identify each other on the internet)Eg. The record: wwwA65.162.184.60 In the yemen.net.ye domain, defines the host uniquely identifiable as www.yemen.net.ye to be reachable at the IPv4 Address 65.162.184.60Introduction to DNSEng. Yasser Al-eimadDNS Components

  • Types of Resource RecordThe CNAME RecordA CNAME (canonical name) defines an alias The alias will then be resolved, if another CNAME is encountered then the process continues until an A record is foundEg. The record: e-rialCNAMEwww.post.ye. In the post.ye domain, defines the name uniquely identifiable as e-rial.post.ye to be and alias to www.post.yeIntroduction to DNSEng. Yasser Al-eimadDNS Components

  • Types of Resource RecordThe MX RecordAn MX record defines the mail servers for a particular domainMail eXchange records hold the name of hosts, and their priorities, able to deliver mail for the domain.Eg. The record: yemen.net.yeMX10mail In the yemen.net.ye domain, defines the host mail to be the priority 10 mail server for the yemen.net.ye domain.

    Introduction to DNSEng. Yasser Al-eimadDNS Components

  • Types of Resource RecordThe NS RecordAn NS record defines the authoritative Name servers for the domain.The Name Server records also define the name servers of children domainsEg. The record: internalNSns1.yemen.net.ye In the yemen.net.ye domain, defines the host ns1.yemen.net.ye to be a name sever for the internal.yemen.net.ye sub-domainIntroduction to DNSEng. Yasser Al-eimadDNS Components

  • Name Servers Servers responsible for answering DNS queries by contacting remote DNS server(s).Exists at all levels of hierarchyAuthoritative name servers hold part of the DNS database(zonefile) One name server can serve more then one zoneMany name servers should serve the same zoneSome name servers are authoritative for certain zones

    Introduction to DNSEng. Yasser Al-eimadDNS Components

  • Name Servers Iterative vs Recursive Name ServersServe two very different functionsShouldnt mix the twoGenerally the DNS your computer points to is recursiveZones are hosted in iterative name serversIterative servers can only answer information they know or have cachedRecursive know how to ask others for informationIntroduction to DNSEng. Yasser Al-eimadDNS Components

  • CONTENTSDefinitions.DNS Naming Structure.DNS Components.How DNS Servers work.DNS Organizations.Summary.Introduction to DNSEng. Yasser Al-eimad

  • How DNS Servers work(web)Step 1: Your PC sends a resolution request to its configured DNS Server, typically at your ISP.

    How DNS Servers workIntroduction to DNSEng. Yasser Al-eimadTell me the Address of www.google.comYou type http://www.google.com into your web browser and hit enter.

    IBM Compatible

    Server

    Your PC

    ISP Recursive DNS server

  • How DNS Servers work(web)Introduction to DNSEng. Yasser Al-eimadStep 2: Your ISPs recursive name server starts by asking one of the root servers predefined in its hints file.Tell me the Address of www.google.comI dont know the address but I know whos authoritative for the com domain ask themHow DNS Servers work

    Server

    ISP Recursive DNS server

    Root Servers

  • How DNS Servers work(web)Introduction to DNSEng. Yasser Al-eimadStep 3: Your ISPs recursive name server then asks one of the com name servers as directed.Tell me the Address of www.google.comI dont know the address but I know whos authoritative for the google.com domain ask themHow DNS Servers work

    Server

    ISP Recursive DNS server

    com DNS servers

  • How DNS Servers work(web)Introduction to DNSEng. Yasser Al-eimadStep 4: Your ISPs recursive name server then asks one of the google.com name servers as directed.Tell me the Address of www.google.comThe Address of www.google.com is 216.239.53.99How DNS Servers work

    Server

    ISP Recursive DNS server

    google.com DNS server

  • How DNS Servers work(web)Introduction to DNSEng. Yasser Al-eimadStep 5: ISP DNS server then send the answer back to your PC. The DNS server will remember the answer for a period of time.The Address of www.google.com is 216.239.53.99How DNS Servers work

    IBM Compatible

    Server

    Your PC

    ISP Recursive DNS server

  • How DNS Servers work(web)Introduction to DNSEng. Yasser Al-eimadStep 6: Your PC can then make the actual HTTP request to the web server.Here it is!Send me the www.google.com web pageHow DNS Servers work

    IBM Compatible

    Server

    Your PC

    www.google.com web server

  • How DNS Servers work(mail)Introduction to DNSEng. Yasser Al-eimad DNS is not just used in HTTP protocol (web pages). DNS is involved in almost every protocol in use on the internet. Next example is how DNS facilitates the transfer of electronic mail.

    How DNS Servers work

  • How DNS Servers work(mail)Introduction to DNSEng. Yasser Al-eimadStep 1: Your PC sends the e-mail to its configured outbound mail server. A DNS request similar to the previous example is required to find the address of the mail server.Please send this message to [email protected] DNS Servers work

    IBM Compatible

    Server

    Your PC

    Outbound Mail (SMTP) Server

  • How DNS Servers work(mail)Introduction to DNSEng. Yasser Al-eimadStep 2: Your mail server follows the same intensive process to find the authoritative servers for example.com.Tell me the name servers for example.comHere are the name servers for example.comHow DNS Servers work

    Server

    Outbound Mail server

    DNS servers

  • How DNS Servers work(mail)Introduction to DNSEng. Yasser Al-eimadStep 3: Ask the example.com name server for the list of Mail eXchangers (MX) for that domain.Tell me the MXs for example.comThe MXs are mx10.example.com and mx20.backmail.comHow DNS Servers work

    Server

    Outbound Mail Server

    example.com DNS server

  • How DNS Servers work(mail)Introduction to DNSEng. Yasser Al-eimadStep 4: Select a Mail server and deliver the mail.Here is some mail for the example.com domainMail accepted for deliveryHow DNS Servers work

    Server

    Outbound Mail Server

    example.com Mail server

  • CONTENTSDefinitions.DNS Naming structure.DNS components.How DNS Servers work.DNS Organizations.Summary.

    Introduction to DNSEng. Yasser Al-eimad

  • INTERNICInternet Network Information Center US government ownedINTERNIC formerly handled all domain name registrationwww.internic.netNetwork Solutions, a private company, processed the registrations (now VeriSign company)Network Solutions then took over registrationNow several companies can register domainsDNS OrganizationsIntroduction to DNSEng. Yasser Al-eimad

  • ICANN CorporationICANN The Internet Corporation for Assigned Names and Numbers, is a non-profit corporation that is designated by the U.S. Government to coordinate certain Internet technical functions, including the management of Internet domain name system.

    More information about ICANN is available at http://www.icann.orgDNS OrganizationsIntroduction to DNSEng. Yasser Al-eimad

  • CONTENTSDefinitions.DNS Naming Structure.DNS Components.How DNS Servers work.DNS Organizations.Summary.

    Introduction to DNSEng. Yasser Al-eimad

  • SummaryIntroduction to DNSEng. Yasser Al-eimad

    DNS is integral part in most protocols used on the internetMakes the internet human friendly for us allIs the world largest distributed database systemFits the international model perfectlyIn simple terms is a mapping between names and IP addresses

  • The EndIntroduction to DNSEng. Yasser Al-eimad

    Comments?

    Questions?