From jlemon@flugsvamp.com  Thu Mar  9 12:46:33 2000
Return-Path: <jlemon@flugsvamp.com>
Received: from prism.flugsvamp.com (cb58709-a.mdsn1.wi.home.com [24.17.241.9])
	by hub.freebsd.org (Postfix) with ESMTP id D5C2537B81F
	for <FreeBSD-gnats-submit@freebsd.org>; Thu,  9 Mar 2000 12:46:31 -0800 (PST)
	(envelope-from jlemon@flugsvamp.com)
Received: (from jlemon@localhost)
	by prism.flugsvamp.com (8.9.3/8.9.3) id OAA14205;
	Thu, 9 Mar 2000 14:49:45 -0600 (CST)
	(envelope-from jlemon)
Message-Id: <200003092049.OAA14205@prism.flugsvamp.com>
Date: Thu, 9 Mar 2000 14:49:45 -0600 (CST)
From: Jonathan Lemon <jlemon@flugsvamp.com>
Reply-To: jlemon@flugsvamp.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: getaddrinfo() does not seem to honor NIS
X-Send-Pr-Version: 3.2

>Number:         17290
>Category:       kern
>Synopsis:       getaddrinfo() does not seem to honor NIS
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Mar  9 12:50:01 PST 2000
>Closed-Date:    Thu Mar 9 14:52:39 PST 2000
>Last-Modified:  Thu Mar  9 14:54:58 PST 2000
>Originator:     Jonathan Lemon
>Release:        FreeBSD 4.0-CURRENT i386
>Organization:
>Environment:

	4.0-current, circa March 9th, ~ 10:30 PST

>Description:

	telnet/ftp, which use the new getaddrinfo() call, do not 
	appear to honor host entries listed in NIS, perferring 
	the DNS entry, even if "nis" precedes "bind" in /etc/host.conf.

>How-To-Repeat:

	Create /etc/host.conf:
		hosts
		nis
		bind

	Create and bind to a yp domain which contains a host entry
	different from DNS:

	ypcat hosts | grep prism
		24.17.241.9             prism

	observe ping(1) works properly:
		ping prism
		PING prism (24.17.241.9): 56 data bytes

	observe telnet return the wrong host:
		telnet prism
		Trying 171.69.180.7...

>Fix:

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: jlemon 
State-Changed-When: Thu Mar 9 14:52:39 PST 2000 
State-Changed-Why:  
Patch applied to libc/net/name6.c to allow IPV4 hosts to use NIS maps. 
>Unformatted:

Patch applied to libc/net/name6.c to allow IPV4 hosts to use NIS maps.
