Click here to Skip to main content
15,063,944 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How can I change domain name for ip address ( to

Current I made a website and published it by using iis7. It is in the intranet. Now I want to access the website by a domain name and not by ip address.

can anyone help me for with this problem.

Note: The web-server were use is normal PC not a server.
Richard MacCutchan 27-Nov-15 3:16am
You have to buy and register the domain name from an internet provider, in order for it to be recognised by DNS.
CgKumar 27-Nov-15 3:25am
I'm only need to use in intranet. Is that i need register for domain? Thanks. Please help me....

You can't just decide to use a domain name as a "shortcut" to an IP address, even is the IP is a local address - that would allow phishers to "divert" requests to your bank for example to a "local copy" of the bank login screen and harvest a whole companies worth of bank access details.

In order to use a domain name, you have to go through the process of registering the name, and then that must be assigned to the appropriate name server (which links it to the server IP address) which will "Publish" it to the various DNS out there that the client will use to translate it back to an IP and fetch the web page.

Within an intranet, you can access the page via the computername:
provided you configure IIS to do that:[^]
In IIS select your site and edit the bindings. Add a binding an in the hostname put That will make IIS respond to requests for that host. You can test this by editing the hosts file (c:\windows\system32\drivers\etc\hosts) and adding a line

Save the file and on that machine access in the browser and you should see your site. That only works on that machine, though, your next step is to get the domain and configure it so that it points to the IP address of your server which will need to be fixed and on the internet.

Alternatively you can just rent webspace from a hosting firm who will do all this for you, you just upload your site files.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900