Networking

Networking

Resolve a domain to IP address(es)

dig +short www.example.com

# or
host www.example.com

Get DNS TXT record a of domain

dig -t txt www.example.com

# or
host -t txt www.example.com

Send a ping with a limited TTL to 10 (TTL: Time-To-Live, which is the maximum number of hops that a packet can travel across the Internet before it gets discarded.)

ping 8.8.8.8 -t 10
traceroute google.com

Check connection to host (e.g. check connection to port 80 and 22 of google.com)

Nc as a chat tool!

Check which ports are listening for TCP connections from the network

Check if a host is up and scan for open ports, also skip host discovery.

Scan for open ports and OS and version detection (e.g. scan the domain "scanme.nmap.org")

Look up website information (e.g. name server), searches for an object in a RFC 3912 database.

Show the SSL certificate of a domain

Display IP address

Display route table

Display ARP cache (ARP cache displays the MAC addresses of device in the same network that you have connected to)

Add transient IP addres (reset after reboot) (e.g. add 192.168.140.3/24 to device eno16777736)

Persisting network configuration changes

Refresh NetworkManager

Restart all interfaces

To view hostname, OS, kernal, architecture at the same time!

Set hostname (set all transient, static, pretty hostname at once)

Find out the web server (e.g Nginx or Apache) of a website

Find out the http status code of a URL

Unshorten a shortended URL

Perform network throughput tests

To block port 80 (HTTP server) using iptables.

Last updated

Was this helpful?