Fix get full host name via gethostbyname in stead of gethostname