DNS (Domain Name System) is like an internet phonebook, translating user-friendly domain names (like website addresses) into computer-understandable IP addresses. It ensures you reach the right destination when browsing the web by converting human-readable names to numerical codes used for communication between devices online.

Installation

sudo apt install bind9-dnsutils

How to use

nslookup #start interactive
set type=<record types>
server <dns server you want to enumerate>
<website>

This requests a zone transfer

nmap <nameserver IP> --script dns-zone-transfer --script-args domain=<domain name>

Edit the nameserver in this folder to change the dns server you are using

sudo nano /etc/resolv.conf

restart networkmanager → reset to default nameserver

service NetworkManager restart