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%\system32\drivers\etc\hosts where %SystemRoot% is usually WINDOWS.

On a Unix or POSIX operating system including Mac, you'll find the hosts file under /etc/hosts.

Syntax and Grammar

The hosts file manually maps IP addresses to hostnames. Hash characters # denote comments.

# comment example  localhost 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

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, then instead of waiting two days, I could change my hosts file entry to:

# new server


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.