Networking

IP, DNS & Firewall Reference

IP & HostDescription
ipconfigWindows IP info
ifconfigLinux/macOS IP info
hostnameShow system hostname
ping 8.8.8.8Test connectivity
DNSDescription
nslookup domain.comQuery DNS records
dig domain.comDetailed DNS lookup
host domain.comResolve domain to IP
systemd-resolve --statusView DNS config (Linux)
RoutingDescription
tracert domain.comTrace route (Windows)
traceroute domain.comTrace route (Linux/macOS)
route printView routing table (Windows)
ip routeView routing table (Linux)
FirewallDescription
netsh advfirewall show allprofilesWindows firewall status
ufw statusLinux firewall status
sudo ufw enableEnable firewall (Linux)
sudo ufw allow 22Allow SSH port