Run a DNS lookup

Get A records through a specific DNS server.

dig +short A example.com @8.8.8.8

tool
linux133 commands
tags
linuxnetworkdns

More linux commands

  • dig +short -x 8.8.8.8

    Get the PTR record for an IP address.

  • dig +trace example.com

    Follow the full DNS resolution chain, starting from the root servers.

  • ss -tnp state established

    List all established TCP connections with process info.

  • ss -tan | awk 'NR>1{print $1}' | sort | uniq -c | sort -rn

    Show how many TCP connections are in ESTABLISHED, TIME_WAIT and other states.

  • mtr --report --tcp --port 443 example.com

    mtr combines traceroute and ping. TCP mode on port 443 gets through networks that block ICMP.

all 133 linux commands