fixed hostname with trailing dot handling