Update /etc/hosts when linked container is restarted

Carry of #7092

closes #7092
fixes #6350

/cc @vieux
I'd reword:

> When you restart the source container (e.g., `servicename`), Docker
> will update the recipient container's `/etc/hosts` entry.