Update /etc/hosts when linked container is restarted

Fix #6350


I think this is the only case you need to care about when updating the hosts files for the parent right? The other cases would not change anything.