Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Jul 1998 13:33:06 -0400 (EDT)
From:      robert@cyrus.watson.org
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Subject:   bin/7352: Patches to stop warnings from libc when using DNSsec
Message-ID:  <199807211733.NAA12061@fledge.watson.org>

next in thread | raw e-mail | index | archive | help

>Number:         7352
>Category:       bin
>Synopsis:       libc generates spurious warnings when used with DNSsec
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jul 21 10:40:01 PDT 1998
>Last-Modified:
>Originator:     Robert Watson
>Organization:
TISLabs at Network Associates, Inc.
>Release:        FreeBSD 2.2.6-STABLE i386
>Environment:

FreeBSD-stable, FreeBSD-current, secure bind 8

>Description:

gethostbydns in libc generates *lots* of warnings when used in an environment
with DNSsec.  Given the impending release of secure bind, this is a good thing
to fix now before the next release of FreeBSD.  

>How-To-Repeat:

ping buddy.netsec.tis.com

>Fix:
	
this fix just changes the warning level for these warnings when associated
with the DNSsec types from a notify (or such) to a debug level message.

This diff is against stable, but should be identical in current.

--- /home/fbsd-stable/src/lib/libc/net/gethostbydns.c   Sun May 10 08:54:05 1998
+++ /tmp/gethostbydns.c Tue Jul 21 13:23:29 1998
@@ -309,6 +309,15 @@
                        buflen -= n;
                        continue;
                }
+               if ((type == T_SIG) || (type == T_KEY) || (type == T_NXT)) {
+                       /* DNSsec not supported yet */
+                       syslog(LOG_DEBUG|LOG_AUTH,
+       "gethostby*.gethostanswer: asked for \"%s %s %s\", got type \"%s\"",
+                               qname, p_class(C_IN), p_type(qtype),
+                               p_type(type));
+                       cp += n;
+                       continue;
+               }
                if (type != qtype) {
                        syslog(LOG_NOTICE|LOG_AUTH,
        "gethostby*.gethostanswer: asked for \"%s %s %s\", got type \"%s\"",


>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199807211733.NAA12061>