Linking against -lbind intead of -lresolv

Russ Allbery rra at stanford.edu
Mon Dec 27 14:03:47 UTC 1999


Tom Kacvinsky <tjk at ams.org> writes:

> I am using gcc 2.95.2 to compile today's (1999/12/26) snapshot.  It
> looks like the inet.h getting used is in /usr/local/include, which is
> the version we have installed from our bind 8 installation.

> So, I am thinking that I should link against libbind instead of
> libresolv.

Yes, if you're using BIND's include files, you'll want to link against
BIND's resolver.  (I don't know of a good way of taking care of this
automatically in configure.)

> Is this a good thing, or a bad thing?

Probably good, unless you wanted to use an /etc/hosts file or NIS to do
name resolution.  If you're doing pure DNS, BIND's resolver is probably
better than the one that came with your system.

-- 
Russ Allbery (rra at stanford.edu)         <URL:http://www.eyrie.org/~eagle/>



More information about the inn-workers mailing list