Hostname config setting

Closes #1123.