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

Fixes issues with Pull Request #215
- fixes tests
- moves `require "resolve"` to top of file
Are these lines here default stubs? I would expect default stubs that ensure any new tests don't have to know to stub Resolv to be up in the top level before block starting at line 21. Individual tests can then override those stubs when they want different behavior.