Skip to the content.

~

~/Security/Networking

~/Security



Domain Name System

NOTES

  1. Domain names were created to convert the numeric IP address to a simple recognizable name
  2. Fully qualified domain names are much easier for people to remember than an IP address

/NOTES

IP addressing

Hierarchy

Top-Level (.com,.org,et cetera)

rightmost part of a domain name

Second-Level Domain(google, facebook, github)

Subdomain(help(.SLD.TLD))

Record Types

  1. A

    resolves to IPv4 address

  2. AAAA

    resolves to IPv6 addresses

  3. CNAME

    resolve to another domain name

  4. MX

    Mail Exchanger/mailservers

  5. TXT

    text field, used to verify ownership of domain too

Steps of a DNS request

  1. The local cache is checked, if not found, the request will be made the the DNS server

    On Microsoft Windows, you would run ipconfig /flushdns to clear the cache

  2. the recursive DNS server checks its cache for a record, if not found, it queries the internet’s root DNS servers

    For the difference between recursive and authoritative DNS servers, click here

  3. the root server will redirect you to the appropriate TLD server

  4. the TLD server will have records for the authoritative DNS servers(nameservers) with the record

  5. depending on the record type, it is sent back to the recursive server, where it will be cached and sent to the requester

Using nslookup

nslookup [--type=RECORDTYPE] [server]

RECORDTYPE to use the default nameserver to perform a query for a certain type of record

WIP