From nobody  Fri Nov 22 10:15:15 1996
Received: (from nobody@localhost)
          by freefall.freebsd.org (8.7.5/8.7.3) id KAA07813;
          Fri, 22 Nov 1996 10:15:15 -0800 (PST)
Message-Id: <199611221815.KAA07813@freefall.freebsd.org>
Date: Fri, 22 Nov 1996 10:15:15 -0800 (PST)
From: mhugo@dataphone.se
To: freebsd-gnats-submit@freebsd.org
Subject: Resolver in 2.1.6 stable
X-Send-Pr-Version: www-1.0

>Number:         2083
>Category:       misc
>Synopsis:       Resolver in 2.1.6 stable
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Nov 22 10:20:07 PST 1996
>Closed-Date:    Fri Nov 22 10:44:21 PST 1996
>Last-Modified:  Fri Nov 22 10:51:43 PST 1996
>Originator:     Mikael Hugo
>Release:        2.1.6
>Organization:
Dataphone
>Environment:
FreeBSD ninja.dataphone.se 2.1.6-RELEASE FreeBSD 2.1.6-RELEASE #0: Fri Nov 22 18
:41:09 MET 1996     m2@ninja.dataphone.se:/usr/src/sys/compile/NINJA  i386
>Description:
When making world on the sup distribution on 2.1.6, the following occurs:

ninja: {9} /sbin/ping nic
ping: unknown host nic
ninja: {10} nslookup nic
Server:  nic.dataphone.se
Address:  194.23.92.66

Non-authoritative answer:
Name:    nic.dataphone.se
Address:  194.23.92.66 

All programs that use gethostbyname seems unable to resolve.

nslookup works fine, and adds to the fact.

>How-To-Repeat:
Happens every time the programs are executed.
>Fix:

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: fenner 
State-Changed-When: Fri Nov 22 10:44:21 PST 1996 
State-Changed-Why:  
Fixed in  rev 1.4.4.6 of src/lib/libc/net/gethostbydns.c, just moments 
ago.  Patch attached so you don't have to wait for the sup scan. 


Index: gethostbydns.c 
=================================================================== 
RCS file: /home/ncvs/src/lib/libc/net/gethostbydns.c,v 
retrieving revision 1.4.4.5 
retrieving revision 1.4.4.6 
diff -c -r1.4.4.5 -r1.4.4.6 
*** gethostbydns.c	1996/11/20 18:36:37	1.4.4.5 
--- gethostbydns.c	1996/11/22 18:07:52	1.4.4.6 
*************** 
*** 53,59 **** 

#if defined(LIBC_SCCS) && !defined(lint) 
static char sccsid[] = "@(#)gethostnamadr.c	8.1 (Berkeley) 6/4/93"; 
! static char rcsid[] = "$Id: gethostbydns.c,v 1.4.4.5 1996/11/20 18:36:37 pst Exp $"; 
#endif /* LIBC_SCCS and not lint */ 

#include <sys/param.h> 
--- 53,59 ---- 

#if defined(LIBC_SCCS) && !defined(lint) 
static char sccsid[] = "@(#)gethostnamadr.c	8.1 (Berkeley) 6/4/93"; 
! static char rcsid[] = "$Id: gethostbydns.c,v 1.4.4.6 1996/11/22 18:07:52 fenner Exp $"; 
#endif /* LIBC_SCCS and not lint */ 

#include <sys/param.h> 
*************** 
*** 391,396 **** 
--- 391,398 ---- 
h_errno = NETDB_INTERNAL; 
return (NULL); 
} 
+  
+ 	host.h_length = INT32SZ; 

/* 
* if there aren't any dots, it could be a user-level alias. 
>Unformatted:
