#### LAB 2: Footprinting a target network using the Dig Tool

Dig is a network administration command line tool availabl for many computer operating systems for querying the DNS to obtain the domain name, the IP address mapping or any other specific DNS record.

## Lab Objectives

* Find the IP address of a machine
* Change the server you want the response from
* Elicit an authoritative answer from the DNS server
* Find name servers for a domain
* Find Cname (Canonical Name) for a domain
* Find mail servers tor a domain
* Identify various DNS resource records

## Lab Duration

5 Minutes

## Lab Environment

Your Group machine: hostX.ws.nsrc.org (login via ssh)

Ensure dig tool installed by typing 'dig' at your prompt. If you get an error install by executing:

sudo apt-get install net-tools


## Lab Tasks

# User dig in interactively
dig certifiedhacker.com

# Dig for the A record only
dig cname certifiedhacker.com

# Dig for the other DNS records like MX and analyze the IPs to have an idea of the network

# Analyze and determine the type of dns records
#Resolve from other DNS
dig a certifiedhacker 8.8.8.8

dig mx certifiedhacker 4.2.2.2

## Online network footprinting tools

Visit https://centralops.net/co/ and try out the domain dossier