njh at kernighan.demon.co.uk
Sun Jun 24 10:07:36 BST 2001
On Fri, 22 Jun 2001 fbsdusers at rikrose.net wrote:
> Here's my situation. I have a network here, which I want to provide a name
> service for. It's an internal network, and so call the machines will
> resolve to a fake top level domain (.foo, for the purposes of examples).
> The problem is that we also have an external connection too (hence the
> fake TLD). I want to use djbdns as the nameserver. My problem is that
> I can't get anything to hang together. I can make a local chace on the
> router machine (also the nameserver), and I can make a local DNS, but I
> can't get it to do both.
1) Set up dnscache on the router machine, listening on the Ethernet
interface for the internal network (192.168.0.254).
2) Set up tinydns on the router machine, listening on the "locahost"
loopback interface (127.0.0.1). Configure this to serve your local
3) Configure dnscache to consult tinydns (in preference to the root name
servers) by creating files containing the string "127.0.0.1" in the
directory "/service/dnscache/root/servers". You probably want one
called "foo" (to redirect queries concerning the .foo domain) and one
called "168.192.in-addr.arpa" or "0.168.192.in-addr.arpa" (to redirect
reverse-queries concerning your local IP addresses). Restart dnscache
to get it to pick up the configuration change "svc -t /service/dnscache".
4) Configure the resolvers on all the machines (including the router
machine itself) to send DNS queries to 192.168.0.254.
More information about the Ukfreebsd