Skip to content

Instantly share code, notes, and snippets.

@jacopotarantino
Created June 17, 2016 18:29
Show Gist options
  • Save jacopotarantino/f737ef3b9200f4adb0a2559fe7f34046 to your computer and use it in GitHub Desktop.
Save jacopotarantino/f737ef3b9200f4adb0a2559fe7f34046 to your computer and use it in GitHub Desktop.
# first you'll want to use the dig command. this will give you the IP address of the server you've contacted:
dig jack.ofspades.com
# this should output somewhere around 20 lines depending on your hosting. the important part is in the "answer section":
# > ;; ANSWER SECTION:
# > jack.ofspades.com. 60 IN A 52.84.14.75
# then run the whois command on the IP address in question:
whois 52.84.14.75
# this will return a ton of information. the important part is usually in the second block and will contain a line like:
# > Organization: Amazon Technologies Inc. (AT-88-Z)
# that's usually the name of the company hosting the server. in this case, it's AWS.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment