Hi,
lets say threre is a site called mypage.com but I want to find out whats the actual URL where domain resolves to. It usually is something like 123.45.67/~mypage/www. How will you do it?
Thank you.
Server Fault is a question and answer site for system and network administrators. It only takes a minute to sign up.
Sign up to join this communityHi,
lets say threre is a site called mypage.com but I want to find out whats the actual URL where domain resolves to. It usually is something like 123.45.67/~mypage/www. How will you do it?
Thank you.
@michaelhampton is correct, you cannot know this information from outside. The reason for this is that you need to know the server configuration and the server needs to have been configured to respond to requests in the manner that you want.
I suspect your system has been configured with some sort of mass virtual hosting rather than individual vhosts.
How will you do it? - Under normal circumstances you can't. As everyone else has said, this is just not normally possible.
The reason for this is because it is a security vulnerability that people protect against. And attempting to find out what the path is could actually be seen as trying to hack in to the site, or at least gather information that may be useful for hacking the site!
Sites do occasionally have this vulnerability: For example, sometimes web servers are configured to show verbose errors. In this case, if the web server encounters an error condition it may reveal the path you are talking about. Or if the web page happens to have the path published on it (no doubt due to a programming error or other mistake). Or if there is some other bug that allows you to dig a bit deeper to find out the path.
If you need to test a site for this, then there is a tool that can do it. Do not use this tool on a site that you are not authorised to use it on. https://github.com/Occupy4Elephants/inspathx
Detailed explanation of why people avoid this functionality: https://www.owasp.org/index.php/Full_Path_Disclosure
To know where a domain is resolved to you can use the online tool http://intodns.com/ It provides information about Nameservers, mail server and pointing server IP address.