Skip to content

Instantly share code, notes, and snippets.

@house9
Last active December 21, 2015 19:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save house9/6355705 to your computer and use it in GitHub Desktop.
Save house9/6355705 to your computer and use it in GitHub Desktop.
host SOMEDOMAIN.COM
# where ns1.isp.com is one of your ISP DNS servers
nslookup SOMEDOMAIN.COM ns1.isp.com
dig SOMEDOMAIN.COM @ns1.isp.com
traceroute SOMEDOMAIN.COM
# on MAC flush dns cache
dscacheutil -flushcache
sudo killall -HUP mDNSResponder # Mtn Lion
# remove an entry for an existing host
# if an IP of a host changes might need this
ssh-keygen -R hostname
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment