
This is the Title of the Book, eMatter Edition
Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.
djbdns
|
209
Coexisting with BIND
You may decide to install some components of djbdns on your servers to handle
name-service duties. By choice or necessity, you may need to share these duties with
an existing BIND installation. This section describes how to exchange zone data
between nameservers running djbdns and BIND.
Installing ucspi-tcp
You first need to install a small external toolkit, also written by Bernstein, called
ucspi-tcp. This contains the tcpserver and tcpclient programs. Similar to inetd, they
manage external access to TCP-based clients and servers, but they do so more reli-
ably due to better load and resource controls. Follow these steps to install ucspi-tcp:
1. Using wget (or the HTTP tool of your choice), download the latest tarball from
http://cr.yp.to/ucspi-tcp/install.html:
$ wget http://cr.yp.to/ucspi-tcp/ucspi-tcp-0.88.tar.gz
2. Extract:
$ tar xvzf ucspi-tcp-0.88.tar.gz
3. Fix errno.h, if needed:
$ cd ucspi-tcp.0.88
$ vi error.h
Change:
extern int errno;
to:
#include <errno.h>
dnsmx dnsmx fqdn Print the MX record for fqdn.
dnstxt
dnstxt fqdn Print the TXT record for fqdn.
dnsq
dnsq type fqdn server Send a nonrecursive query to server for records of type type
for fqdn.
dnsqr
dnsqr type fqdn Get records of type type for fqdn. This sends a recursive query
to the nameserver specified ...