Difference between revisions of "User:Saul/networking"

From Organic Design wiki
m (Useful Commands)
m (DNS)
Line 9: Line 9:
 
</source>
 
</source>
  
=== Dig ===
+
=== DNS ===
 
<source lang="bash">
 
<source lang="bash">
 
# Resolve hostname to ip address where type = {A, AAAA, MX, NS...}
 
# Resolve hostname to ip address where type = {A, AAAA, MX, NS...}
Line 16: Line 16:
 
# Reverse dns lookup
 
# Reverse dns lookup
 
dig -x <ADDRESS>
 
dig -x <ADDRESS>
 +
 +
# Lookup using host
 +
host <HOSTNAME or ADDRESS>
 +
 +
# Find who is responsible for a subnet.
 +
whois <ADDRESS>
 
</source>
 
</source>
  

Revision as of 21:36, 3 November 2020

Useful Commands

General

# Ping with a payload of 500 bytes 3 times
ping -s 500 -c 3 <HOSTNAME>

# Traceroute to show a path to HOSTNAME
traceroute <HOSTNAME>

DNS

# Resolve hostname to ip address where type = {A, AAAA, MX, NS...}
dig <TYPE> <HOSTNAME>

# Reverse dns lookup
dig -x <ADDRESS>

# Lookup using host
host <HOSTNAME or ADDRESS>

# Find who is responsible for a subnet.
whois <ADDRESS>

IP

# Show configured interfaces
ip address show

# Show info for the interface IFACE
ip address show dev <IFACE>

# Show configured routes
ip route show