Domain mapping with WordPress multisite without using IP addresses

In this post I discuss how I set up domain mapping to websites in a WordPress multisite install, without pointing the domains to the servers IP address.