def tree_as_host_list(current, path):
	"""

	Args:
		current (Node): The root of the subtree.
		path (str): path from the root to the current Node.

	Returns:
		str: The list representation of the hosts in current

	"""

	if len(current.children) == 0:
		return path 

	p = str()

	for i in current.children.values():

		p += tree_as_host_list(i, i.auth + '.' + path if path != '\n' else i.auth + path)

	return p