Is there a way to change our website address into a domain name. E.g - I am creating a intranet and just copying the server IP and port everywhere to open the web page. It looks odd to copy pasting the IP, so what should I do to give a domain name instead of IP address?

  • 1
    First you will need to buy a domain if this is going to be a page hosted on the internet.. Or, is it just a local page for a company / house / other? – cutrightjm Apr 11 '12 at 2:02
  • This is just a local page used for a team inside an organization, so is there any other way ? – Arun Kumar Apr 11 '12 at 2:07
  • Do you have an internal DNS server on the network? OS? – Dave M Apr 11 '12 at 2:11
  • Yes i have and one more thing, i am just a noob in these technical things. so unable to catch your technical terms soon. so unable to edit the host file and also am afraid that it would reflect on system's function.. Please clear me if i am wrong. – Arun Kumar Apr 11 '12 at 2:19
  • 2
    <anything>.local will work. Just rig your internal DNS to do it. – David Schwartz Apr 11 '12 at 2:27

Try editing the hosts file (C:\Windows\System32\drivers\etc) and mapping http://xxx.xxx.xx.xx:8082/ to an address such as 'ArunsComputer` Keep in mind, that this would have to be done on all of these computers. There is a way to use a DNS server to do this, but editing the hosts file seems to be the simplest.

You would add a line like this to the hosts file: MediaServer

To edit the hosts file, follow these steps:

  1. Open start, and in the search bar type 'Notepad'
  2. Don't hit enter, right click, and select 'Run as Administrator'
  3. Go to file, and open the C:\ Drive.
  4. From there go to the Windows -> System32 -> drivers -> etc (or just paste this into the address bar C:\Windows\System32\drivers\etc and hit enter)
  5. The folder should be empty. Select the dropdown menu that says (Text Documents *.txt) and select 'All files'
  6. Then, under the last entry in the file, add your IP and name you want to use, like MediaServer
  7. Save the file, open up IE, and type in the name that you used. It should work.
  • I just tried as you said - myipaddress<space>Internet Marketing. But there was no difference still it shows the IP address in the browser. – Arun Kumar Apr 11 '12 at 3:50
  • 2
    You can't have a space in the name – slhck Apr 11 '12 at 5:19
  • It results in two seperate entries Internet and Marketing as alias for the same IP. – Baarn Apr 11 '12 at 10:47
  • I don't believe I included a space in any of them.. You can either name it Marketing, Internet_Marketing, or something else, but no spaces, only underscores and dashes ( - ). – cutrightjm Apr 11 '12 at 12:16

Depending on your operating system look for the host file (called like this on windows, linux and mac but resides at different locations). You can add entries to it. like this:

xxx.xxx.xx.xx    server

If you want the changes work in the whole network and not just on one computer you have to set up a local DNS server, edit its host file and set the computers to use this as default DNS.

If you want the adress to be accessible via the internet you have to buy a domain and let it point to your IP adress. This differs a bit depending on your country and if you have a static IP or not. In the later case you'd have to use a dynamic IP service like eg no-ip.


As you have a DNS server, you can add a record for the web server. As you do not indicate OS, we cannot provide details. However, this is for Windows 2008 and may assist. WIN2008 DNS

  • I am using win7 and installed Drupal 7 to develop an intranet for my team.so while i show a demo in a client system i use to copy paste the Server's (Drupal 7 installed system) IP address. Also i am not so techincal to edit the sys32 files, so any suggestions for this ? – Arun Kumar Apr 11 '12 at 2:43
  • 1
    @ArunKumar try the step by step example. Editing the hosts file isn't going to harm anything, it will only map that IP to the name you give it. – cutrightjm Apr 11 '12 at 3:32

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.