-
named.conf!!!
esse eh o named.conf que vai em /etc:
// secret must be the same as in /etc/rndc.conf
key mykey {
algorithm hmac-md5;
secret "oriCelUSbPMypSjImBsiTHMauOumRPMkdBjoxVINAx0vxJZNRKGWzFCKibad";
};
controls {
inet 127.0.0.1 port 953
allow { 127.0.0.1; } keys { mykey; };
};
options {
directory "/var/named/";
pid-file "/var/run/named/named.pid"; // Put pid file in working dir
auth-nxdomain yes;
};
zone "." {
type hint;
file "named.ca";
};
zone "0.0.127.in-addr.arpa" {
type master;
file "named.local";
};
// workaround stupid stuff... (OE: Wed 17 Sep 2003)
zone "ac" { type delegation-only; };
zone "cc" { type delegation-only; };
zone "com" { type delegation-only; };
zone "cx" { type delegation-only; };
zone "museum" { type delegation-only; };
zone "net" { type delegation-only; };
zone "nu" { type delegation-only; };
zone "ph" { type delegation-only; };
zone "sh" { type delegation-only; };
zone "tm" { type delegation-only; };
zone "ws" { type delegation-only; };
zone "people.salto.br" {
type master;
file "people.zone";
allow-update { key mykey; };
};
zone "100.168.192.in-addr.arpa" {
type master;
file "people.reversed";
allow-update { key mykey; };
};
-
rndc.con!!!
esse eh o rndc.conf que vai em /etc:
# Start of rndc.conf
key mykey {
algorithm hmac-md5;
secret "oriCelUSbPMypSjImBsiTHMauOumRPMkdBjoxVINAx0vxJZNRKGWzFCKibad";
};
options {
default-key mykey;
default-server 127.0.0.1;
default-port 953;
};
# End of rndc.conf
-
rndc.key!!
esse eh o rndc.key que tbm vai em /etc:
key mykey {
algorithm hmac-md5;
secret "oriCelUSbPMypSjImBsiTHMauOumRPMkdBjoxVINAx0vxJZNRKGWzFCKibad";
};
-
people.zone!!!
agora vamos começar no diretório /var/named
esse eh o people.zone que vai no diretorio /var/named:
$ORIGIN .
$TTL 86400 ; 1 day
people.salto.br IN SOA sunlight.people.salto.br. root.people.salto.br. (
2001042703 ; serial
86400 ; refresh (1 day)
21600 ; retry (6 hours)
3600000 ; expire (5 weeks 6 days 16 hours)
3600 ; minimum (1 hour)
)
NS sunlight.people.salto.br.
$ORIGIN people.salto.br.
$TTL 86400 ; 1 day
localhost A 127.0.0.1
www A 192.168.100.1
sunlight A 192.168.100.1
-
people.reversed!!!
esse eh o arquivo people.reversed que vai em /var/named:
$ORIGIN .
$TTL 86400 ; 1 day
100.168.192.in-addr.arpa IN SOA sunlight.people.salto.br. root.people.salto.br. (
2001042702 ; serial
28800 ; refresh (8 hours)
14400 ; retry (4 hours)
3600000 ; expire (5 weeks 6 days 16 hours)
86400 ; minimum (1 day)
)
NS sunlight.people.salto.br.
$ORIGIN 100.168.192.in-addr.arpa.
$TTL 3600 ; 1 hour
178 PTR sunlight.people.salto.br.
23 PTR www.people.salto.br.