Saturday, June 27, 2020

[eCPPT][DNS]The dig command in Linux

General Lookup:
#dig TARGET +short
Example:
#dig microsoft.com +short

PTR Lookup:
#dig TARGET PTR
Example:
#dig microsoft PTR

MX Lookup:
#dig TARGET MX
Example:
#dig microsoft.com MX

NS Lookup:
#dig TARGET NS
Example:
#dig microsoft.com NS

Zone Transfer:
#dig @SERVER TARGET -t AXFR +nocookie
Example:
#dig @10.50.96.5 foocampus.com -t AXFR +nocookie

No comments:

Post a Comment