Bug 17290

Summary: getaddrinfo() does not seem to honor NIS
Product: Base System Reporter: Jonathan Lemon <jlemon>
Component: kernAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.0-CURRENT   
Hardware: Any   
OS: Any   

Description Jonathan Lemon 2000-03-09 20:50:01 UTC
	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...
Comment 1 jlemon freebsd_committer freebsd_triage 2000-03-09 22:52:39 UTC
State Changed
From-To: open->closed

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