If you are using Windows go to:
C:\WINDOWS\system32\drivers\etc
which is the OS folder you are using.
you'll find a file called "hosts"
open it and add the host u want after localhost
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host
127.0.0.1 localhost
127.0.0.1 yourdomain.comNote that this will only work on your Local Computer
if you want it to open on other computers you have to edit every host file on each computer but instead of the local IP address 127.0.0.1 you have to use the DHCP IP Address of your computer 192.168.x.x
If you are using a Domain Controller in a Network then you can create a script and assign it to the group policy in the DC and when the users open his/her account then the script will edit the host file and add the ip automatically.