nis_local_host
extern nis_name nis_local_host(void);
(void) strncpy(hostname, nis_local_host(), sizeof (hostname));