Update /etc/hosts when linked container is restarted

Fix #6350


It's only like that for children() because it's aggregating the entities and recursively searching for children of children.