added support for getting host DNS name