Sets hostname, manages /etc/hosts entries