Steps to Configure Local Domain Resolution

Edit the Hosts File on Local Machines:

  • Windows:
    1. Open Notepad as Administrator.
    2. Open the file located at C:\Windows\System32\drivers\etc\hosts.
    3. Add an entry like this:
192.168.1.100 example.com

Replace 192.168.1.100 with the local IP address of your server and example.com with your domain name.

  • Linux/Mac:
    1. Open a terminal.
    2. Edit the /etc/hosts file using a text editor like nano or vim:

bash

sudo nano /etc/hosts
  1. Add an entry like this:
192.168.1.100 example.com

Replace 192.168.1.100 with the local IP address of your server and example.com with your domain name.