Bug 17290 - getaddrinfo() does not seem to honor NIS
Summary: getaddrinfo() does not seem to honor NIS
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 4.0-CURRENT
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2000-03-09 20:50 UTC by Jonathan Lemon
Modified: 2000-03-09 22:54 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.