Senin, 27 Agustus 2012

Manipulating DNS Alias at Local Computer

To change display name at local computer without registering the DNS Server, you can edit the hosts files.

In other words, this will manipulate the domain name of your local PC before the computer requests to DNS Server.

Windows:
  1. goto c:\windows\system32\etc\drivers\
  2. edit a file named "hosts"
  3. add the point to your IP address with your preferred name
Linux:
  1. goto /etc
  2. edit a file named "hosts" (use sudo gedit hosts)
  3. add the point to your IP address with your preferred name
This way is only manipulate the domain name in local computer,
for example if you add 192.168.0.123 with name yourdomain.com, then you open the internet browser and browse to http://yourdomain.com, you'll get the website of 192.168.0.123

-ok-