Easy dns mapping for home network, Windows, Linux, Mac and Solaris.

This article assumes that you have a web server running on a computer on your home network.

To map a domain name to the ip of your web server use the hosts file. In Windows it is found in c:windowssystem32driversetc and in Ubuntu Linux it is in /etc/.


Open the hosts file by running notepad as administrator (windows) or by running sudo gedit /etc/hosts (Ubuntu).


assuming that your web server’s ip is xxx.xxx.x.xx.


add the following to your hosts file.

xxx.xxx.x.xx nameOfDomain


than type in nameOfDomain into your web browser and voila, it works. You can do this for all your computers.

This entry was posted in Blog. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *