Subject: Re: re-reading /etc/resolv.conf on change
To: NetBSD Userlevel Technical Discussion List <tech-userlevel@NetBSD.ORG>
From: Luke Mewburn <lukem@NetBSD.org>
List: tech-userlevel
Date: 01/06/2004 10:38:54
--QRo3kt64Wi40AlcO
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

How's this for an solution?

	Implement an optional "init" method for each nsswitch
	backend database (YP, DNS, files), which is called
	whenever nsdispatch reloads /etc/nsswitch.conf.

This provides each database type an opportunity to (re)initialize
itself, which may be useful to simplify various implementations
that retain state.

Then end user then just "touchs" /etc/nsswitch.conf to force a
reinit of the method lookups used by nsdispatch (as currently occurs)
and a reinit of the database backend.

--QRo3kt64Wi40AlcO
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (NetBSD)

iD8DBQE/+fWOpBhtmn8zJHIRAiRFAKC/WHMSrmfOnCk47KI/V/w0OYJTWQCdF0dn
FS1mITJJgURped081hi6tyI=
=oldB
-----END PGP SIGNATURE-----

--QRo3kt64Wi40AlcO--