ping hostnameTo change ping packet size, use:
ping -s 32 hostnameTo change interval and count, use -i and -c parameters respectively.
To query open ports, use:
telnet hostname portTo look at network connection information from the kernel (/proc/), use:
netstat/proc/ is stored in memory. By default netstat does not return listen sockets. To dump all sockets (for services based in /etc/services), use:
netstat -aTo dump all sockets without name resolution, use:
netstat -anTo dump all TCP sockets with programs:
netstat -ntlpTo dump all UDP sockets with programs:
netstat -nulpTo dump kernel routing table:
netstat -rnTo dump interface status:
netstat -iTo determine packet path, per-hop and round-trip times, use:
traceroute hostnameTraceroute makes use of the TTL field in IP.
An advanced version of traceroute is mtr (My Traceroute) which integrates ping as well:
mtr hostnameTo resolve IP given a FQDN, use:
nslookup hostnameDig is similar to nslookup, and it gives more output:
dig hostnameTo perform a reverse lookup, use:
dig -x 192.168.1.1To find information about a certain domain, use:
whois www.google.com
No comments:
Post a Comment