How to go to a website on a shared server by its ip address?
- by user1502776
I have a few questions, please help:
Fist, I can access google search just by typing
http://74.125.224.211
because this is the ip address returned by nslookup.
However, I could not do so with ip addresses returned from www.yahoo.com. How do I go to yahoo search page by its ip ?
Another example, http://www.allaboutcircuits.com will resolve to
68.233.243.63
by DNS server, but if I go to
http://68.233.243.63
I got "Hello world!" , lol !
Second, for some reason, there is something wrong with DNS resolvers with my web hosting service (it will not be fixed !!). So command like,
get_file_contents("http://www.allaboutcircuits.com");
will return php_network_getaddresses: getaddrinfo failed: Name or service not known
How do I get around this with IP address ,
68.233.243.63
I mean somehow attach the HTTP hostname parameter to get_file_contents() ?
I would like to solve this on my own side (in my code), no troubleshooting/adjustment will be done by server admin.