Many new sites joined the MetaZaku Network and many of them migrated servers. Standard migration routine: Copy all files and change the nameservers.
Unfortunately, DNS propagation recommends at least fourty-eight hours (two days) before the changes are seen by all regular visitors. Developers won't be productive for two days. Fortunately, we can quicken the propagation process with the hosts file
Introduction to the Hosts File
For Windows, you'll find the hosts file under
%SystemRoot% is usually
On a Unix or POSIX operating system including Mac, you'll find the hosts file under
Syntax and Grammar
The hosts file manually maps IP addresses to hostnames. Hash characters
# denote comments.
# comment example 127.0.0.1 localhost
127.0.0.1 localhost is the most common entry available on all computers that is used for local web development by using
http://localhost/. Fortunately, we can also use this to map domain names to their current server IP.
Defeating DNS Propagation
Because we can manually map an IP to a hostname, we can add an entry that maps the host name to it's current server.
# old server 188.8.131.52 giocc.com www.giocc.com
The above entry will map my domain name to my current server's IP so that I'm able to view the website. Hypothetically, if I migrate to a server with an IP of
184.108.40.206, then instead of waiting two days, I could change my hosts file entry to:
# new server 220.127.116.11 giocc.com www.giocc.com
The next time I visit the website with the URL, it will automatically show me the proper server so that I can continue my development or browsing. This is especially useful for server migrations to overcome DNS propagation time.
Good luck with successful migrations, you'll need it.