On Thursday 03 January 2002 05:16 pm, Julian Opificius wrote:
> Is there some willing chap who can help me configure named.conf?
>
#========== file named.conf on the master ===============
options {
directory "/etc/named"; # where the db files are
allow-transfer { ip.add.re.ss; }; # The slave server ip
version "Name Server"; # some name for the curious
};
zone "." { type hint; file "db.cache"; };
zone "domain1.com" { type master; file "db.domain1.com"; };
# add a zone line for each zone
#add a db.file for each zone on the master only!
============typical db file =============
$ORIGIN com.
$TTL 86400
domain1 IN SOA ns1.nameserver.tld. [EMAIL PROTECTED] (
2001041501 ; serial num
10800 ;
3600 ;
604800 ;
86400 ) ; Min TTL
IN NS ns1.nameserver.tld.
IN NS ns2.nameserver.tld.
IN A 1.2.3.4
$ORIGIN domain1.com.
smtp IN A 1.2.3.4
IN MX 30 smtp.domain1.com.
pop IN A 1.2.3.4
IN MX 30 pop.domain1.com.
ftp IN A 1.2.3.4
www IN A 1.2.3.4
=============end db file ================
#========== file named.conf on slave ================
options {
directory "/etc/named";
allow-transfer { 216.175.178.41; 216.175.178.46; }; # master/slave ip
version "Name Server";
listen-on { 216.175.178.46; 192.168.1.3; 127.0.0.1; };
};
zone "." { type hint; file "db.cache"; };
zone "domain1.com" {
type slave; file "db.domain1.com"; masters { 216.175.178.41; };
};
I set mine up like this!
Gerald
Want to buy your Pack or Services from MandrakeSoft?
Go to http://www.mandrakestore.com