From http://stackoverflow.com/questions/6880903/redirect-ip-address-to-domain-name