• Internet Protocol (IP) address of website is like phone number—could change if we move to a new area.
  • DNS works like phonebook.
  • if someone wants to call at our new house or location, they might look up by name in phonebook.
  • DNS is a globally-distributed service to translate URL to IP address.
  • DNS uses a hierarchical name structure, and
  • different levels in hierarchy are separated with a dot (.).
  • Example domain names – www.amazon .com or aws.amazon.com
    • com is Top-Level Domain (TLD)
    • amazon is Second-Level Domain (SLD).
  • there can be any number of lower levels (for instance, www and aws) below SLD.
  • Amazon Route 53 is primarily an authoritative DNS system to manage public DNS names.

Primary Concepts of Domain Name System (DNS)

Domain Names

  • human-friendly name associate with an Internet resource.
  • example, amazon.com is a domain name.
  • we generally refer to combined form as domain name.
  • URL aws.amazon.com is concerned with servers owned by AWS.

Such that DNS allows users to reach AWS servers when they type aws.amazon.com into their browsers.

Top-Level Domains (TLDs):

  • general part of domain.
  • farthest portion to right (separated by a dot).
  • commonly used TLDs are .com, .net, .org, .gov, .edu, and .io.
  • It is at top of hierarchy in terms of domain names.
  • ICANN gives management control over TLDs  to parties, who distribute domain names under TLD, generally through a domain registrar.
  • Domains are registered with Network Information Center (InterNIC) to enforce uniqueness of domain names across Internet.
  • Each domain name is registered in a central database, known as WhoIS database.

IP Addresses

  • Internet Protocol (IP) address is a network addressable location.
  • each IP address must be unique within its network.
  • IPv4 addresses, most common form of addresses
  • IPv4 consist of four sets of numbers separated by a dot and with each set having up to three digits.
  • Example 111.222.111.222 is a valid IPv4 IP address.
  • with DNS, we map a name to that IP address to not to remember a complicated set of numbers for each place required to visit on a network.

Hosts

  • owner of domain can define individual hosts to separate computers or services accessible through a domain.
  • For example www (as in www.example.com) is one definition.
  • other host definitions within general domainas
  • API host  – api.example.com
  • File Transfer Protocol (FTP) – ftp.example.com or files.example.com
  • host names can be arbitrary if they are unique for domain.

Subdomains

  • large domain can be partitioned or extended into multiple subdomains.
  • TLD can have many subdomains under them.
  • Like zappos.com and audible.com are both subdomains of .com TLD

Fully Qualified Domain Name (FQDN)

  • Also called as an absolute domain name
  • specifies a domain’s location in relation to absolute root of DNS
  • FQDN specifies each parent domain including TLD.
  • A proper FQDN ends with a dot, indicating root of DNS hierarchy.

DNS Concepts

  • service to translate domain names into IP addresses
  • Example, domain name www.example.com might translate to 198.105.232.4.
  • works in an complex and hierarchical manner.
  • Working
    • if one DNS server doesn’t know IP address, it asks another one, and so on, till IP address is returned.
    • Domain names are organized as a tree or hierarchical in manner
    • Each node of the tree, called a domain, is given a label.
    • The domain name of the node is the concatenation of all the labels on the path from the node to the root node like network.support.vskills.in
  • 2 Types of DNS systems
    • Recursive DNS
      • It knows where to get corresponding IP address for a domain.
      • It connects to an Authoritative DNS to get this information,
      • then cache this information for a period of time.
      • It does not itself have target IP addresses.
    • Authoritative DNS
      • The final authority on DNS information.
      • keep the IP addresses for domain names
      • provide an update mechanism for changing those values
  • 2 types of IP addresses:
  • IPv4
    • 32 bit address
    • 4 billion different addresses (4,294,967,296)
  • IPv6
    • Created to solve depletion issue of IPv4 address space
    • 128 bit address
    • 340 undecillion addresses (340,282,366,920,938,463,463,374,607,431,768,211,456)
  • Top Level Domains: Signified by the last word in a domain name – .com, .edu
  • Controlled by the Internet Assigned Numbers Authority (IANA)
  • Stored in a root zone database which is a database of all available TLDs (Top Level Domains)
  • Database can be found at http://www.iana.org/domains/root/db
  • Domain Names:
    • All names in a given domain name have to be unique
    • DNS registrars are authority’s that can assign domain names directly under one or more TLD’s
    • Domains are registered with InterNIC, as service of ICANN, which enforces uniqueness of domain names across the internet
    • Each domain name becomes registered in a central database known as the WhoIS database
    • Popular domain registrars include godaddy.com, namecheap.com, Route53 etc..
  • SOA (Start of Authority) Records store information about:
    • Name of the server that supplied the data for the zone
    • Administrator of the zone
    • Current version of the data file
    • Number of seconds a secondary name server should wait before checking for updates
    • Number of seconds a secondary name server should wait before retrying a failed domain transfer
    • Maximum number of seconds that a secondary name server can use data before it must either be refreshed or expired
    • Default number of seconds for the TTL (Time to Live) on resource records
  • DNS Record Types:
    • NS or Name Server Records are used by TLD’s to direct traffic to the content DNS server which contains the authoritative DNS records
    • A or Address records are used by a computer to translate the name of the domain to an IP address
    • CNAMES or Canonical Names can be used to resolve one domain name to another
      • CNAME’s can’t be used for naked domain names (zone apex). As such awsdocs.com must be either an A record or an Alias record
    • Alias records are used to map resource record sets in your hosted zone to ELBs, CloudFront Distributions, or S3 Buckets that are configured as websites
      • Alias records work like CNAME records in that you can map one DNS name to another target DNS name
      • Alias records can save time because Route53 automatically recognizes changes in the record set that the alias resource record set refers to
      • You are NOT charged for requests to Alias records, you ARE charged for requests to CNAMES, so using Alias records is cheaper
    • TTL or Time to Live is the length that a DNS record is cached on either the resolving server or the users local PC. The lower the TTL, the faster changes to DNS records take to propagate throughout the internet
  • ELBs do not have a pre-defined IPv4 address, DNS names are used for ELB resolution
  • Always use an Alias record over a CNAME where possible, as it’s cheaper and faster.

DNS Routing

The Name Resolution process is done as

  • Upon receiving query from client, the local nameserver will check if it has the authority for the required domain name. If it has, the local nameserver returns the IP address sought. Otherwise, go to step 2.
  • Query one of the root nameservers to find the server authoritative for the next level down.
  • Querying this second nameserver for the address of a DNS server with detailed knowledge of the second-level domain.
  • Repeating the previous step to progress down the name, until the final step which would, rather than generating the address of the next DNS server, return the final address sought.

 

Menu