fixed hostname with trailing dot handling
Merge pull request #54 from zelgerj/master

fixed hostname with trailing dot handling