Docker containers override /etc/hosts, so try to keep it always up to date.
Fixed the script for changing the domain.