Optionally set hostname.
minor linting