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.