check hostnames are obtained correctly. This commit was SVN r7096.
This commit was SVN r6286.
This commit was SVN r6266.