add host to name resolution function