Forum Moderators: coopster
Open a command prompt window and type
ping example.com using your domain name. As the program executes, it will resolve the IP address and display it for you. Regardless of whether you are in a virtual hosting situation or not, you will see the IP address being used for your domain resolution.
StupidScript, I pinged my domain name and the IP I got does come up to be different than the ones phpinfo listed. Does that mean that should be the correct IP?
The address listed by ping is the 'external' address of the site, and is provided by domain name resolution at the DNS level.
So, they are both correct. One as seen from the inside, and one as seen from the outside.
You can expect both of your domains to return the same info using either method, as the assignments that create your 'virtual domains' are being done in the server software configuration. i.e. in Apache's httpd.conf.