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.
than type in nameOfDomain into your web browser and voila, it works. You can do this for all your computers.