1

I'm working in a private company which has several internal web portals or applications hosted on LAN. So whenever i type "fp/" in the address bar of any browser , it is automatically redirects me to a portal page which is "http://apps/FPMS/aspx/FPMSHome.aspx". Are they using DNS to match the URL for redirecting.? If yes , how can i find other shortcuts like this one.? If no , what is happening behind the screen ? please clarify this :)

3
  • You could use tools like HttpFox to check what's happening. Alternatively, a debugging proxy like Fiddler would also yield that information.
    – Daniel B
    Feb 22, 2014 at 12:58
  • thanks @DanielB . i tried with HttpFox. When i enter fp/ , the logs shows as redirecting to the link. but i'm eager to know how its getting redirected.
    – RamValli
    Feb 22, 2014 at 13:13
  • If these are Windows machines, WINS may be what is used to resolve to IP address. I see it all the time in well-established organizations especially with file shares. But the answer below explains how the redirect is happening.
    – milli
    Mar 8, 2014 at 20:18

1 Answer 1

1

DNS can't match URLs. It only provides an IP address for a hostname (fp, in this case). After acquiring the IP address to connect to, the browser sends its request. This request contains the original hostname – you can see this in the request headers in HttpFox.

For the redirection to work, there has to be a HTTP server listening at the IP address the hostname resolved to. This server is configured to respond to requests containing hostname fp with a redirect to http://apps/FPMS/aspx/FPMSHome.aspx.

In Apache HTTPd, this would be accomplished like this:

<VirtualHost 10.1.2.3:80>
  ServerName fp
  RedirectPermanent / http://apps/FPMS/aspx/FPMSHome.aspx
</VirtualHost>

Similar configurations are possible in virtually every HTTP server. Your company most likely uses Microsoft Internet Information Services (IIS).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.