Cheatsheet: Difference between revisions

Line 1,097:
=== IP DNS Info ===
 
;==== IP ====
ip addr show (ip a)
ifconfig
Line 1,104:
ip route get 8.8.8.8 | head -1 | cut -d' ' -f7
 
==== DNS Config Info ====
; DNS
 
cat /etc/resolv.conf
nmcli dev show | grep DNS
Line 1,110 ⟶ 1,111:
resolvectl status | grep -1 'DNS Server'
 
;==== DNS of Domains ====
 
===== Host Command: =====
 
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