Sunday, August 8, 2010

Creating new domain for personal use

Did you know that you can easily create your own domain names for your personal use on your computer? The method we're going to describe could come in handy many ways:

  • You can map your current home page domain name (at your internet service provider's server) to use your own domain name such as; for fun, or to help you test your HTML pages with your own domain name.
  • On a local network (or an intranet) you can use your own domain names to access local and remote resources (web servers, etc.)
  • You can create shorter and easier to remember domain names (or aliases) for already existing domain names.
  • If your DNS server is slow, you can speedup the access to certain domain names a bit.
Here's how to...
  • Locate or create a file named HOSTS
    If you're using Windows 95, this file should be in the Windows directory ("C:\WINDOWS" for example).
    If you're using Windows NT, HOSTS file should be in the "%SystemRoot%\system32\drivers\etc" directory ("C:\WINNT\system32\drivers\etc" for example).
  • Use your favorite text editor (Notepad for example) to add entries to the HOSTS file. All entries to the HOSTS file should be in the following format:

    For example, let's say you want to create a domain name [alias] for a known domain name -- "" for example. First, find out the IP address of the "known" (or already existing domain name) by typing the following command at the "DOS or Command Prompt:"


    or according to our example:

    Record the IP address for that domain -- for example.

    Now, decide what your new domain name for should be -- let's say you want to call it "" (something easier to remember).

    All you have to do to map to is to add the following line to your HOSTS file:

    Now you can access by using instead -- for example.