Bug 18771

Summary: [PATCH] dhclient enter hooks cannot be used to tweak resolv.conf
Product: Base System Reporter: pdh <pdh>
Component: confAssignee: David E. O'Brien <obrien>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.0-STABLE   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description pdh 2000-05-23 09:10:01 UTC
	/etc/dhclient-enter-hooks cannot be used to override build of
	/etc/resolv.conf. The "make_resolv_conf" function defined in
	/sbin/dhclient (and overridable in dhclient-enter-hooks) is
	never actually called; its code is actually duplicated instead
	instead of the function being called.

How-To-Repeat: 
	Define a new make_resolv_conf() in /etc/dhclient-enter-hooks
	(I wanted to add to search path) and watch it get ignored.

	Incidentally, would it make more sense to add a "local_search_path"
	or similar to rc.conf and modify dhclient-script to source rc.conf
	and use this variable? (Probably not, but I'll send a patch to do
	it if required.)
Comment 1 Johan Karlsson freebsd_committer freebsd_triage 2000-09-19 19:27:24 UTC
Responsible Changed
From-To: freebsd-bugs->obrien

Over to dhcp maintianer.
Comment 2 David E. O'Brien freebsd_committer freebsd_triage 2000-11-04 20:24:17 UTC
State Changed
From-To: open->closed

I'll only make this change in FreeBSD if you get the ISC to agree to the 
same exact change in the version 3 offering.