Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Jun 1998 22:38:40 +0800
From:      Peter Wemm <peter@netplex.com.au>
To:        Bill Paul <wpaul@FreeBSD.ORG>
Cc:        cvs-committers@FreeBSD.ORG
Subject:   Re: cvs commit: src/lib/libc/net ns_name.c ns_netint.c ns_parse.c ns_print.c ns_ttl.c res_mkupdate.c res_update.c Makefile.i 
Message-ID:  <199806111438.WAA12236@spinner.netplex.com.au>
In-Reply-To: Your message of "Thu, 11 Jun 1998 06:32:50 MST." <199806111332.GAA13466@hub.freebsd.org> 

next in thread | previous in thread | raw e-mail | index | archive | help
Bill Paul wrote:
> > peter       1998/06/11 02:03:06 PDT
> > 
> >   Modified files:
> >     lib/libc/net         Makefile.inc base64.c herror.c 
> >                          inet_net_pton.c inet_network.c 
> >                          inet_ntoa.c inet_ntop.c inet_pton.c 
> >                          nsap_addr.c res_comp.c res_config.h 
> >                          res_data.c res_debug.c res_init.c 
> >                          res_mkquery.c res_query.c res_send.c 
> >                          res_stubs.c 
> >   Added files:
> >     lib/libc/net         ns_name.c ns_netint.c ns_parse.c 
> >                          ns_print.c ns_ttl.c res_mkupdate.c 
> >                          res_update.c 
> >   Log:
> >   Update the resolver parts to bind-8.1.2 level.  I have not touched the
> >   getXXXXbyYYYY() interfaces yet.
> 
> Please tell me that you plan to incorporate the IRS system, not just
> for host lookups but for getpwent, getgrent and friends as well. Please.
> Pretty please. With sugar on top. I'll be your best friend. :)

I'm thinking about it. :-)  There are a couple of things to consider...

1: we get things like hesiod for free, along with scope for things like 
pure radius accounts etc.

2: IRS is "pure"..  This means that getpwent/getpwnam() would not know 
about the '+' hack to switch over to YP.  On one hand I think killing this 
off would be good, but on the other hand we loose some flexability.  I 
guess there is always the option of using a Solaris-style 'passwd', 
'passwd_compat', and 'nis' style schemes where passwd is pure local, nis 
is pure nis, and 'passwd_compat' is a hybrid that understands '+' and can 
be configured on or off as needed.

> This would not only let us get rid of /etc/host.conf, it would give
> me everything I need to drop NIS+ into the system (well, I'd have to
> write some NIS+ IRS modules, but that's much less of a pain than
> merging IRS with libc in the first place).

The IRS passwd and NIS modules are very weak compared to our present libc
system..  No hashed pwd.db files, no caching of YP data in hash tables etc
and all the other fine tuning.  So, we pretty much have to re-write our 
passwd, NIS, etc stuff with an IRS interface to replace the simple 
versions there (no disrespect intended towards the bind8 irs stuff, it's 
got to aim at a lowest common denominator - not all OS's have db in libc).

> -Bill
> 
> PS: I presume you preserved the __dns_getanswer() hack for ypserv, yes?

Yes, that is part of the getXXXbyYYY() code that I have not touched yet.

Cheers,
-Peter
--
Peter Wemm <peter@netplex.com.au>   Netplex Consulting



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199806111438.WAA12236>