Dig#
NS query for more name server for enumerate. $target is dns server’s ip address
dig ns domain.name @10.10.11.78Find IP of a domain, less info but more effective for scripts
dig +short domain.name @10.10.11.78Dig dns server’s version, if there is a record in the dns server
dig CH TXT version.bind @10.10.11.78Dig all
dig any inlanefreight.htb @10.10.11.78Zone transfer
dig axfr inlanefreight.htb @10.10.11.78NSLookup#
Basic syntax, more info than dig +short
nslookup
> server 10.10.11.78
> domain.nameNSUpdate#
Basic syntax, use to update dns records if the dns server has no authentication
nsupdate
> server 10.10.11.78
> update add sub.domain.name 3600 A IP
> sendBasic DNS records#
Arecords: IP that the domain points to.MXrecords: Mail server record. Who or “what” is responsible for managing the emails for the company.NSrecords: Points to a name server which will resolve their domain name into IP.TXTrecords: Contains verification keys, such as SPF, DMARC, and DKIM, which are responsible for verifying and confirming the origin of the emails sent.
Tips#
A DNS zone usually has a SOA record. For example, if you
dig soa dev.domain.nameand it returns a valid SOA record, it usually means there are further subdomain of that dev subdomain, like mail.dev.doamin.name.