[OHAI-518] remove *.static.cloud-ips.com

Fixes issues with Pull Request #215
- fixes tests
- moves `require "resolve"` to top of file
What about a specific test for verifying that we return an IP address when DNS fails? We know that we are expecting that behavior, but someone new to this code may not realize that behavior is expected.