From owner-freebsd-bugs Thu Jul 18 18:00:03 1996 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id SAA05204 for bugs-outgoing; Thu, 18 Jul 1996 18:00:03 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id SAA05196; Thu, 18 Jul 1996 18:00:02 -0700 (PDT) Resent-Date: Thu, 18 Jul 1996 18:00:02 -0700 (PDT) Resent-Message-Id: <199607190100.SAA05196@freefall.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org, pst@jnx.com Received: from red.jnx.com (ppp-2-14.sntc01.pacbell.net [206.170.2.14]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id RAA04986 for ; Thu, 18 Jul 1996 17:57:04 -0700 (PDT) Received: from base.jnx.com (base.jnx.com [208.197.169.238]) by red.jnx.com (8.7.5/8.7.3) with ESMTP id RAA19693 for ; Thu, 18 Jul 1996 17:57:02 -0700 (PDT) Received: (from pst@localhost) by base.jnx.com (8.7.5/8.7.3) id RAA00383; Thu, 18 Jul 1996 17:58:06 -0700 (PDT) Message-Id: <199607190058.RAA00383@base.jnx.com> Date: Thu, 18 Jul 1996 17:58:06 -0700 (PDT) From: Paul Traina Reply-To: pst@jnx.com To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: bin/1400: getnetbyname() for DNS network resolution is violently broken Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >Number: 1400 >Category: bin >Synopsis: libc/net/getnetbydns.c needs an enema >Confidential: no >Severity: non-critical >Priority: high >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Jul 18 18:00:01 PDT 1996 >Last-Modified: >Originator: Paul Traina >Organization: Juniper Networks, Inc. >Release: FreeBSD 2.2-CURRENT i386 >Environment: FreeBSD 2.2 current and previous versions >Description: _getnetbydnsname() in the standard library doesn't even begin to do the right thing. It needs to be rewritten from scratch, so that it behaves more like _gethostbydnsname(). >How-To-Repeat: Try to use -net -mask conventions in /etc/exports if dns is before bind in /etc/host.conf. In fact, /etc/host.conf should really be split into multiple files or we should follow the sun hack of: host: hosts, dns, yp net: hosts, yp in their file. >Fix: On its way... >Audit-Trail: >Unformatted: