Run a DNS lookup
Get A records through a specific DNS server.
dig +short A example.com @8.8.8.8
- tool
- linux133 commands
More linux commands
-
dig +short -x 8.8.8.8Get the PTR record for an IP address.
-
dig +trace example.comFollow the full DNS resolution chain, starting from the root servers.
-
ss -tnp state establishedList all established TCP connections with process info.
-
ss -tan | awk 'NR>1{print $1}' | sort | uniq -c | sort -rnShow how many TCP connections are in ESTABLISHED, TIME_WAIT and other states.
-
mtr --report --tcp --port 443 example.commtr combines traceroute and ping. TCP mode on port 443 gets through networks that block ICMP.