Fix hosts file bug and tests

Thanks to @Danack
Merge commit '3d81d18176b762191891de158dc04a1a59af6053' into addResolverTest

* commit '3d81d18176b762191891de158dc04a1a59af6053':
  Fix hosts file bug and tests

Conflicts:
	test/AddrTest/HostsFileTest.php