On Sat, Sep 17, 2005 at 09:08:20PM -0700, 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,
> 2) what to add to named.conf to put these files to use, and 3) how to
> configure named.conf for caching/forwarding.
> 
> 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?

hello,

for a similar setup (forwarder + master for a local domain), i use the
following lines in /var/named/etc/named.conf:

.......................................................................

zone "." {
        type forward;
        forwarders { 62.4.16.70; 62.4.17.69; }; 
};

zone "localdomain" {
        type master;
        file "master/localdomain";
};

zone "10.in-addr.arpa" {
        type master;
        file "master/localdomain.rev";
};

.......................................................................

where "62.4.16.70" and "62.4.17.69" are my ISP's DNS servers, "localdomain"
is the name of my local domain and 10.0.0.0/8 are the corresponding IP
numbers.

/var/named/master/localdomain contains "A" records for "localdomain" and
/var/named/master/localdomain.rev contains "PTR" records for "10.0.0.0/8"

regards,

-- 
Alexandre

  • Re: DNS Alexandre Ratchov

Reply via email to