--- inn1.4unoff4/lib/getfqdn.c.dist Thu Mar 18 22:04:35 1993 +++ inn1.4unoff4/lib/getfqdn.c Tue Jun 11 20:07:48 1996 @@ -31,6 +31,13 @@ if (strchr(buff, '.') != NULL) return buff; + /* Try getdomainname. */ + if (getdomainname(temp, (int)sizeof temp) == 0) { + (void)strcat(buff, "."); + (void)strcat(buff,temp); + return buff; + } + /* See if DNS (or /etc/hosts) gives us a full domain name. */ if ((hp = gethostbyname(buff)) == NULL) return NULL;