Omar Tariq
Omar Tariq

Reputation: 7724

How To Find Out Server Location For A Given Domain Name

Is it possible to find out the server location where domain name is hosted and where the website files is hosted? If we can do this programmatically then that's great. Free APIs also appreciated.

Upvotes: 0

Views: 2228

Answers (1)

Michael C.
Michael C.

Reputation: 1457

Step 1: Ping the domain name to get the IP address.

% ping www.domain.com
Pinging www.domain.com [65.254.244.180] with 32 bytes of data:

Step 2: Query the IP address to geolocation information.

http://www.ip2location.com/demo/65.254.244.180

Upvotes: 1

Related Questions