Upon the migration have been completed, client can test the migrated website first without changing the DNS record.
Redirect the domain IP to new server temporarily by update the hosts file.
To change the hosts file on Windows or Mac, you need administrator rights, and the process involves opening a text editor (like Notepad as Admin on Windows or Nano in Terminal on Mac) with the file path C:\Windows\System32\drivers\etc\hosts (Windows) or /etc/hosts (Mac), adding IP_address yourdomain.com lines, saving, and often flushing the DNS cache for changes to take effect immediately.
For Windows:
Step 1: Open Notepad as Administrator.
Step 2: Open the file: C:\Windows\System32\drivers\etc\hosts
Step 3: Add the line (new records) [IP_address] [yourdomain.com]*
Step 4: Save the file.
Step 5: Flush the DNS cache by running in command prompt (as Admin): ipconfig /flushdns
For Mac:
Step 1: Open Terminal (as root or use sudo).
Step 2: Open the file with a text editor (like nano) with sudo: sudo nano /etc/hosts
Step 3: Add the line (new records): [IP_address] [yourdomain.com]*
Step 4: Save the file (Ctrl+O, then Enter, then Ctrl+X in nano).
Step 5: Flush the DNS cache by running: sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder
Add the line:
The new IP address and Domain name will be provided by Whatsapp or Email from our Customer Service Staff.
Important Notes:
1. Always run these commands with administrator/root privileges
2. The hosts file takes precedence over DNS
3. Remove or comment out (#) the lines when you're done testing
4. Test with ping example.com to verify it resolves to your new IP
