[35] in Hesiod

home help back first fref pref prev next nref lref last post

Re: getpwent, getgrent

daemon@ATHENA.MIT.EDU (Greg Wohletz)
Tue Oct 2 20:18:23 1990

To: treese@CRL.DEC.COM
Cc: hesiod@ATHENA.MIT.EDU, bind@UCBARPA.BERKELEY.EDU
In-Reply-To: Your message of Sat, 29 Sep 90 00:36:46 -0400.
Date: Tue, 02 Oct 90 12:25:35 -0700
From: Greg Wohletz <greg%duke.cs.unlv.edu@RELAY.CS.NET>


>>While versions of getpwnam, getpwuid, etc. are simple to implement,
>>the password and group routines which retrieve succesive entries pose
>>some problems.  What I'd like to see is a way to call hesiod_resolve
>>such that it initiats a zone transfer.

>In the ULTRIX implementation of Hesiod, get*ent are implemented
>by putting special tags in the zone file as CNAME entries for
>the real entries.  So passwd-1 (say) is a CNAME for the first
>passwd entry, and so on.  Then getpwent simply retrieves the
>entries until it can't get any more.

>This is probably easier to implement, but it does have different
>tradeoffs.

yes, I've implemented something similar, but I don't really like it.  I
know there is a way to get the nameserver to send you a complete list of
things under (say) passwd.research.hesiod.unlv.edu. However I'm not enough
of a reslover hack to do it.  Perhaps someone on the bind list knows the
proper incantation...

						--Greg
						greg@duke.cs.unlv.edu

home help back first fref pref prev next nref lref last post