Hello,
Listed below is a named.conf serving as slave:
named.conf:
_______________________________
// Default named.conf generated by install of bind-9.3.1-20.FC4
acl recurseallow { xx.xx.xx.xx; xx.xx.xx.xx; }; # all NS connected in network
options {
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
allow-recursion { recurseallow; };
};
controls {
inet 127.0.0.1 allow { localhost; };
};
zone "." {
type hint;
file "/etc/named.root";
};
zone "domain.com" { # domain served
type slave;
file "/var/named/db.domain.com";
masters { xx.xx.xx.xx; }; master IP
forwarders { };
};
zone "xx.xx.xx.in-addr.arpa" { # reverse
type slave;
file "/var/named/db.xx.xx.xx"; # reverse
masters { xx.xx.xx.xx; xx.xx.xx.xx; }; # if you have two masters - their IP addresses
};
zone "domain2.com" {
type slave;
file "/var/named/db.domain2.com"; # file contained in this directory for Fedora Core 4 OS
masters { xx.xx.xx.xx; }; # master ip of domain2
forwarders { };
};
zone "0.0.127.in-addr-arpa" {
type master;
file "/var/named/db.127.0.0";
};
zone "domain3.com" {
type slave;
file "/var/named/db.domain3.com";
masters { xx.xx.xx.xx; }; #master IP of domain3
forwarders {};
};
_______________________
Basically, this file shows three zones (3 domains) and it is acting as a secondary server. All you need to do is fill in domain1, domain2 and domain3 with the actual domains that are to be serviced (and add in this same capacity for each additional domain that need to be run as slave). Then go to the directory that holds your zone data files and create the new data files, such as:
touch db.domain1.com, db.domain2.com, db.domain3.com, db.xx.xx.xx.xx(reverse), db.127.0.0, etc.
You do not need to put any data in these files, as Bind will write to them with the data obtained from Master.
Also, acl recurseallow is done because when you allow recursive lookups, you open yourself up to various security risks and performance issues, so you should only allow recursion when needed. Recursive lookups are lookups for domains you are not authoritative for. Therefore, if you are authoritative for yourdomain.com, and you do not allow recursion, then if somebody queries your server for anybodysdomain.com, they will just get a host not found error.
Hope this helps.
Cheers!
FREE Dynamic DNS Services
http://www.t4tm.net