TCP 53: DNS

The Domain Name System is a hierarchical and decentralized naming system for computers, services, or other resources connected to the Internet or a private network. It associates various information with domain names assigned to each of the participating entities.

-- Wikipedia

Host

Nameserver

host -t ns megacorpone.com

Mailserver

host -t mx megacorpone.com

Domain

host www.megacorpone.com

Forward lookup

host <hostname>
alpha.thinc.local has address <ip>
#!/bin/bash
for name in $(cat list.txt); do
	host $name.megacorpone.com | grep "has address" | cut -d" " -f1,4
done

Reverse lookup

Zone transfer

A zone transfer is similar to a database replication act between related DNS servers. This process includes the copying of the zone file from a master DNS server to a slave server.

Alternative

Tools

DNSRecon

DNSenum

nslookup

Last updated