Results 1 to 3 of 3

Thread: Windows Hosts File..

  1. #1

    Windows Hosts File..

    I know this doesn't come under programming but i need some help with this.
    You may be knowing that the windows hosts file is interpreted before the OS accesses the DNS servers for i.p. resolving.
    This can be used for redirection without the user's notice.

    The above line if placed in the hosts file will redirect Yahoo to Google( Here, Google has a dedicated i.p. so the task is easy.
    However if a website is on shared hosting, how do we add such a site to the hosts file. I believe we cannot add a domain name in place of above hence we always need an i.p.

    So how can i make redirect to a site which doesn't have a dedicated i.p., e.g. redirecting to

    Any help would be appreciated.

  2. #2
    Join Date
    Apr 2010

  3. #3
    Quote Originally Posted by anantshri View Post
    looks like this is something which is not technically feasible

    Hostname redirection using Hosts file - Super User

    check for some possible alternatives here

    How do I redirect to a shared virtual hosted site in the hosts file? - Stack Overflow
    Thanks, was really in need of an answer to this

Similar Threads

  1. [WTS] PR1 File Mirror Site - Upload to 15 File Hosts
    By ChaoscripT in forum Sites
    Replies: 0
    Last Post: 26 September, 2010, 10:53 AM
  2. How many hosts have you been on?
    By Sbfc_ in forum Web Hosting
    Replies: 21
    Last Post: 21 July, 2010, 11:59 AM
  3. Hosts with bad support
    By Sbfc_ in forum Web Hosting
    Replies: 0
    Last Post: 20 May, 2010, 20:16 PM
  4. Hosting With Hosts That Are On Resellers?
    By Farrhad A in forum Web Hosting
    Replies: 11
    Last Post: 13 August, 2009, 09:05 AM

Tags for this Thread


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts