Cheatsheet: Difference between revisions

Content added Content deleted
Line 1,094: Line 1,094:
host -t a google.com
host -t a google.com
host -t mx google.com
host -t mx google.com
host -t soa cyberciti.biz
host -t soa google.com
host -t cname files.cyberciti.biz
host -t cname files.google.com
host -t txt cyberciti.biz
host -t txt google.com
host google.com ns2.google.com ==> Query a particular host
host google.com ns2.google.com ==> Query a particular host
host -t any google.com
host -t any google.com


DIG Command:
DIG Command:
dig cyberciti.biz a
dig google.com a
dig cyberciti.biz mx
dig google.com mx
dig cyberciti.biz ns
dig google.com ns
dig cyberciti.biz txt
dig google.com txt
dig @ns1.nixcraft.net cyberciti.biz a
dig @ns1.google.com a
dig @4.2.2.2 google.com soa
dig @4.2.2.2 google.com soa ==> SOA record
dig +nssearch google.com ==> SOA record
dig +short google.com ==> only IP address
dig +noall +answer google.com ==> Just answer line
dig +noall +answer google.com any ==> Just answers for all records


=== Misc ===
=== Misc ===