Skip to content

Instantly share code, notes, and snippets.

@owenallenaz
Last active May 30, 2025 18:20
Show Gist options
  • Save owenallenaz/9302255d31d8c43bc2b21d5ffe15ddde to your computer and use it in GitHub Desktop.
Save owenallenaz/9302255d31d8c43bc2b21d5ffe15ddde to your computer and use it in GitHub Desktop.
SV Network testing

network testing

RUN THE FOLLOWING IN WSL and in Windows

test dns resolution for default

nslookup www.google.com

test dns resolution using public dns

nslookup www.google.com 8.8.8.8

test dns resolution using vpn dns

nslookup www.google.com 172.16.0.81

test tcp to public ip

ping 8.8.8.8

test tcp to private ip

ping 172.16.0.81

verify route to public

# windows
tracert 8.8.8.8
# linux
traceroute 8.8.8.8

verify route to private

# windows
tracert 172.16.0.81
# linux
traceroute 172.16.0.81

Linux specific commands

ip route show
ip addr show

Windows specific commands

ipconfig /all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment