Add gethost utilities
Merge branch 'master' into next