Find live website IP address by Domain Name

Sometimes I get server not found when visiting new websites. It is due to DNS not able to locate the IP address of the website.

So i wrote simple script to find the website IP address by their given Domain Name. Then you use that IP address to map with host names in c:/Windows/System32/drivers/etc/hosts file. You must have write permissions to update the entry in hosts file.

For example:

Domain Name:

Domain IP:

Leave a Reply

Your email address will not be published. Required fields are marked *