On Sat, 17 Sep 2005, Steve B wrote:
I'm a little confused on the topic of running Bind on OBSD. I've read the
Secure Architectures book, some material at
http://www.aei.ca/~pmatulis/pub/obsd_pf.html and a few other places. My goal
is to provide DNS to my local LANs and probably act as a caching/forwarding
DNS. What confuses me is 1) where to put my db.wired and db.1.168.192 files,
/var/named/master/
If you just need a local resolver, you won't need to create these files
and configure your server to be authoritative for any zones.
2) what to add to named.conf to put these files to use,
for example,
zone "1.168.192.in-addr.arpa" {
type master;
file "master/db.192.168.1";
};
IF you need this.
and 3) how to configure named.conf for caching/forwarding.
You don't have to do anything to set up a caching nameserver. Just set
named_flags=""
in your /etc/rc.conf.local file to have it start at boot time.
Some articles I've read via Google say the default named.conf is configured
as a caching nameserver and to simply start the named daemon, while others
say the forwarders first and forwarders options must be entered. Could
someone with a little more experience on this topic please point me in the
right direction?
You almost certainly don't need to set it up as a forwarder.
It sounds like you need to familiarize yourself with some of the basics
of DNS and BIND. If all you want is to have a DNS resolver for your
local network, don't do anything except add named_flags="" to your
rc.conf.local file and you're done.
-- Ian