Programatic setup of hostname.