skalibs
Software
www.skarnet.org
The dns library interface
libdns is the DNS client library from
djbdns.
It has been placed into the public domain by D. J. Bernstein.
Compiling
- Add /package/prog/skalibs/include to your header directory list
- Use #include "dns.h"
Linking
- Define a global variable PROG of type char const *
that contains the name of your executable.
- Link against /package/prog/skalibs/library/libdns.a,
/package/prog/skalibs/library/librandom.a
and /package/prog/skalibs/library/libstddjb.a.
- If you're using EGD, you should link against
/package/prog/skalibs/library/libdns.a,
/package/prog/skalibs/library/librandom.a,
/package/prog/skalibs/library/libwebipc.a and
/package/prog/skalibs/library/libstddjb.a; and add the switches
specified by /package/prog/skalibs/sysdeps/socket.lib to your
compiler command line for linking.
Programming
libdns implements the following functions, documented by Dan Bernstein:
The dns_random functions have been included in
librandom as a default pseudo-random number
generator for systems that lack /dev/urandom and EGD. You should call
badrandom_init() before performing DNS queries.