Friday, November 6, 2009

DNS setting for local web hosting?

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 %26amp; redirect it to the IP address Pls give me in easy steps. I ll be thanks for that
DNS setting for local web hosting?
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.
DNS setting for local web hosting?
The place where you registered your domain name will allow you to specify nameservers -- these name servers specify your DNS servers.
Reply: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
Reply:www.dyndns.com


1 comment:

  1. This is informative tutorial you have shared and great knowledge for me..web hosting provider

    ReplyDelete

Blog Archive