Fix result matching for localhost lookups.

Travis-CI resolves 127.0.0.1 to localhost.localdomain at times.