NetBSD Problem Report #3535
Received: (qmail-queue invoked from smtpd); 24 Apr 1997 23:50:52 -0000
Message-Id: <199704242350.TAA15128@repo-man.ai.mit.edu>
Date: Thu, 24 Apr 1997 19:50:49 -0400 (EDT)
From: Daniel Hagerty <hag@ai.mit.edu>
Reply-To: hag@ai.mit.edu
To: gnats-bugs@gnats.netbsd.org
Subject: resolver broken in current of 19970424
X-Send-Pr-Version: 3.95
>Number: 3535
>Category: lib
>Synopsis: current resolver has problems with hostnames that are
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: mrg
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Apr 24 17:05:03 +0000 1997
>Closed-Date: Sat Apr 26 04:11:53 +0000 1997
>Last-Modified: Sat Apr 26 04:12:23 +0000 1997
>Originator:
>Release: NetBSD-current 19970424
>Organization:
>Environment:
System: NetBSD repo-man.ai.mit.edu 1.2D NetBSD 1.2D (REPO_MAN) #36: Thu Apr 24 13:23:17 EDT 1997 hag@repo-man.ai.mit.edu:/fs/repo/hag/work/hacking/os/netbsd/src/sys/arch/i386/compile/REPO_MAN i386
>Description:
The current resolver library is somewhat broken. I have
several machines with two letter CNAMEs and several of them broke
today, i.e:
$ host bc
bc.ai.mit.edu CNAME beet-chex.ai.mit.edu
beet-chex.ai.mit.edu A 128.52.32.22
$ ping bc
ping: Cannot resolve host `bc' (Unknown host)
[exit 1]
$
>How-To-Repeat:
Haven't looked at the code to make a good simple test case;
but if you have problems reproducing it I'm happy to hand out accounts
on my box.
>Fix:
The problem chunk of code is gethostnamaddr.c around line 512
or so, this chunk of code; I don't have a fix:
if (isxdigit(name[0]) || name[0] == ':')
for (cp = name;; ++cp) {
if (!*cp) {
if (*--cp == '.')
break;
/*
* All-IPv6-legal, no dot at the end.
* Fake up a hostent as if we'd actually
* done a lookup.
*/
if (inet_pton(af, name, host_addr) <= 0) {
h_errno = HOST_NOT_FOUND;
return (NULL);
}
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->analyzed
State-Changed-By: mrg
State-Changed-When: Fri Apr 25 19:59:58 PDT 1997
State-Changed-Why:
mrg understands the bug.
Responsible-Changed-From-To: lib-bug-people->mrg
Responsible-Changed-By: mrg
Responsible-Changed-When: Fri Apr 25 19:59:58 PDT 1997
Responsible-Changed-Why:
mrg will take care of this bug.
State-Changed-From-To: analyzed->closed
State-Changed-By: mrg
State-Changed-When: Fri Apr 25 21:11:53 PDT 1997
State-Changed-Why:
got a patch from vixie to fix this problem.
>Unformatted:
all hex digits
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.