Skip to content

Instantly share code, notes, and snippets.

@manuelmorales
Last active October 4, 2015 22:58
Show Gist options
  • Select an option

  • Save manuelmorales/2713163 to your computer and use it in GitHub Desktop.

Select an option

Save manuelmorales/2713163 to your computer and use it in GitHub Desktop.
Resolve DNS with the command line
`nslookup my.workshare.com 8.8.8.8`
list = %w{
8.8.8.8
8.8.4.4
156.154.70.1
156.154.71.1
208.67.222.222
208.67.220.220
198.153.192.1
198.153.194.1
4.2.2.1
4.2.2.2
4.2.2.3
4.2.2.4
4.2.2.5
4.2.2.6
67.138.54.100
207.225.209.66
}
list.each{|s| puts %x[nslookup my.workshare.com #{s}]}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment