Resolve host name

Closes #1415