Cheatsheet: Difference between revisions
Content added Content deleted
(→Misc) |
|||
Line 1,097:
=== IP DNS Info ===
ip addr show (ip a)
ifconfig
Line 1,104:
ip route get 8.8.8.8 | head -1 | cut -d' ' -f7
==== DNS Config Info ====
cat /etc/resolv.conf
nmcli dev show | grep DNS
Line 1,110 ⟶ 1,111:
resolvectl status | grep -1 'DNS Server'
▲Host Command:
host google.com
host -t a google.com
Line 1,122 ⟶ 1,124:
host -t any google.com
===== DIG Command
dig google.com a
dig google.com mx
Line 1,134 ⟶ 1,137:
dig +noall +answer google.com any ==> Just answers for all records
===== NSLOOKUP =====
nslookup yahoo.com ==> Find A Record
nslookup 209.191.122.70 ==> Reverse Domain Lookup
|