DNS

What is DNS?

The Domain Name System (DNS) is a distributed database responsible for translating user friendly domain names into IP addresses.

DNS Records

Each domain can use different types of DNS records, check the table below:

Record
Function

A

A record, Contains the IPv4 address of a hostname such as scanme.nmap.org

AAAA

Also known as quad a record, contains the IPv6 address of a hostname such as scanme.nmap.org

NS

Nameserver record, contains the name of the authoritative servers hosting the DNS records for a domain

MX

Mail Exchange records contain the names of the servers responsible for handling email for the domain. A domain can contain multiple MX records.

PTR

Pointer Records are used in reverse lookup zones and can find the records associated with an IP address.

CNAME

Canonical Name Records are used to create aliases for other host records.

TXT

Text records can contain any arbitrary data and be used for various purposes, such as domain ownership verification.

Authoritative Servers

Think of it like I am storing the name of your domain and data like the IPv4 (A record) on my server, in this case because my server is carrying this information then it is an Authoritative Server for your domain.

DNS Enumeration

For this section we will be using scanme.nmap.org and google.com for testing, we will be using both windows and kali linux tools to perform the enumeration.

Linux

Using 'host' Command

  • Default

  • With options

Using 'dnsrecon' Command

  • Default

  • With options

Windows

Using 'nslookup' Command

  • Default

  • With options

Last updated

Was this helpful?