Fix a bug with name resolutions for IPv4 where it was improperly handled.