NetBSD Problem Report #8779

Received: (qmail 11457 invoked from network); 11 Nov 1999 11:01:19 -0000
Message-Id: <199911111101.MAA06956@mulet.e.kth.se>
Date: Thu, 11 Nov 1999 12:01:15 +0100 (CET)
From: assar@stacken.kth.se
To: gnats-bugs@gnats.netbsd.org
Cc: assar@stacken.kth.se
Subject: gethostbyname complains about SIG RR:s
X-Send-Pr-Version: 3.95

>Number:         8779
>Category:       lib
>Synopsis:       gethostbyname complains about SIG RR:s
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    assar
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Nov 11 03:03:01 +0000 1999
>Closed-Date:    Tue Dec 28 15:49:16 +0000 1999
>Last-Modified:  Tue Sep 04 23:59:06 +0000 2001
>Originator:     Assar Westerlund
>Release:        NetBSD-current 1.4K ~ Sun Oct 10 01:02:27 CEST 1999
>Organization:
none
>Environment:
System: NetBSD mulet.e.kth.se 1.4K NetBSD 1.4K (MULET) #1: Sun Oct 10 01:02:27 CEST 1999 root@mulet.e.kth.se:/usr/src/sys/arch/i386/compile/MULET i386

>Description:

When doing gethostbyname() on a host that has a SIG RR in DNS, the
resolver libraries gets unhappy and logs a complaint about not getting
an A RR.

>How-To-Repeat:

ping www.s3.kth.se

Nov 11 11:56:29 mulet ping: gethostby*.getanswer: asked for "www.s3.kth.se IN A", got type "SIG"

>Fix:

Just ignoring SIG (and KEY) RR seems fine, the code doesn't care to
verify them or anything anyway.

--- src/lib/libc/net/gethnamaddr.c.orig	Thu Nov 11 11:40:01 1999
+++ src/lib/libc/net/gethnamaddr.c	Thu Nov 11 11:41:05 1999
@@ -356,6 +356,7 @@
 			continue;
 		}
 		if (type != qtype) {
+			if (type != T_KEY && type != T_SIG)
 			syslog(LOG_NOTICE|LOG_AUTH,
 	       "gethostby*.getanswer: asked for \"%s %s %s\", got type \"%s\"",
 			       qname, p_class(C_IN), p_type(qtype),
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: lib-bug-people->assar 
Responsible-Changed-By: assar 
Responsible-Changed-When: Sun Dec 26 18:42:39 PST 1999 
Responsible-Changed-Why:  
I'll take care of my own PR 
State-Changed-From-To: open->closed 
State-Changed-By: assar 
State-Changed-When: Tue Dec 28 07:49:16 PST 1999 
State-Changed-Why:  
fixed in gethnamaddr.c:1.28 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(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.