LookupD for FreeBSD
LookupD for FreeBSD is the BSD analog of Darwin's lookupd.
To work with LookupD, you need to install it from port, or to install it manually. Sources are here:
Version 0.3a: lookupd-0.3a.tar.gz
LookupD consists of two main parts: daemon with it's modules and nss_lookupd.so nsswitch plugin.
The lookupd daemon gives an ability to use IPC model for different lookup operations, (such as getpwnam, getgrnam, getaddrinfo and so on), which in turn make agressive caching possible. It should be plugged into the current nsswitch system as a module (nss_lookupd.so).
As current nsswitch implementation, LookupD uses .SO modules, which are a bit different from standard nsswitch plugins such as nss_ldap, but they are easy to port. Currently files, dns and ldap modules are ported (you can learn more about lkpd_ldap.so here).
LookupD configuration should be in $LOCALBASE/etc/lookupd.conf ($LOCALBASE is typically /usr/local). It's syntax is quite similar to nsswitch.conf syntax, but has some extensions. See lookupd.conf(8) for details. You can use sample files lookupd.conf.sample and nsswitch.conf.sample in your examples folder to start working with lookupd.
Configuration
See lookupd.conf(2) for details. And here is an example of typical /etc/lookupd.conf file.
# Lookupd config file
#
hosts: cache[policy=fifo] dns files
passwd: files
group: files
Contacts
To report bugs or suggestions on what you would like to see in the lookupd please mail me bushman@rsu.ru.
Michael Bushkov, Rostov State University, 2004