Hesiod support bug?

Richard Feltstykket rf at ucdavis.edu
Thu Dec 15 01:14:18 UTC 2016


Hello list,

I'm in the process of trying to move a few dozen file servers to FreeBSD.  During this I've encountered something confusing with hesiod support.  I'm wondering if I should submit a PR for this:

If you install pkg you can install the hesiod utilities with:
 pkg install hesiod

Also, in the man page for nsswitch.conf it suggests that hesiod support is included by default with:
 dns     Internet Domain Name System.  “hosts” and ‘networks’ use IN class
         entries, all other databases use HS class (Hesiod) entries.

With a proper hesiod.conf file on a system installed from either a 10.3 or 11.0 release iso I get:
# hesinfo rf passwd
hesiod_resolve: hesiod name not found

getent also fails:
# getent passwd rf

So I did some spelunking about the FreeBSD source tree and compiled a custom iso, adding WITH_HESIOD=true to /etc/src.conf.  After installing from this media it functions properly:

# hesinfo rf passwd
rf:x:12345:12345:Richard Feltstykket:/home/rf:/bin/bash

# getent passwd rf
rf:x:12345:12345:Richard Feltstykket:/home/rf:/bin/bash

Is this a bug?

Thanks!
Richard
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20161214/c53cbbb1/attachment.sig>


More information about the freebsd-questions mailing list