Make sure we remove the trailing dot from the returned hosts