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:
xxx.xxx.xxx.xxx google.com
xxx.xxx.xxx.xxx www.google.com

Domain Name:

Domain IP:

Leave a Reply

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

*