English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I wants to test my web site on my local server pls can any one help me how should I do so I wana redirect the name like http://www.abc.com so it redirect it to the server local IIS server I still can run the site by giving IP address but I wan give the site name & redirect it to the IP address Pls give me in easy steps. I ll be thanks for that

2007-12-04 17:09:48 · 4 answers · asked by Anonymous in Computers & Internet Computer Networking

4 answers

Very easy method...
In your
C:\Windows\system32\drivers\etc you will find a file named "hosts"
Put an entry in it like so:

192.168.1.20 www.example.com

Substitute the IP with the IP you want to mimic sending dns to www.exampel.com to.
That's all their is to it.
Your computer tries hosts file first. Please note, this will only work for the computer you are testing FROM. You can't use it to redirect websites on your webserver. It just saves you making changes to your DNS zone files for testing purposes.

2007-12-04 18:13:55 · answer #1 · answered by KeWr 5 · 0 1

The easiest way to do this on your local box is edit your HOSTS file (its different for each version of Windows so Yahoo! Search for the path to yours) and and an entry like this

127.0.0.1 www.yoursitehere.com

this will assign the loopback address 127.0.0.1 (your computer) to www.yoursitehere.com

2007-12-04 17:14:43 · answer #2 · answered by Ace531 2 · 0 1

The place where you registered your domain name will allow you to specify nameservers -- these name servers specify your DNS servers.

2007-12-04 17:13:37 · answer #3 · answered by mdigitale 7 · 0 1

www.dyndns.com

2007-12-04 17:15:14 · answer #4 · answered by Anonymous · 0 2

fedest.com, questions and answers