Named.conf.local
Код: Выделить всё
//
// Do any local configuration here
//
// Consider adding the 1918 zones here, if they are not used in your
// organization
//include "/etc/bind/zones.rfc1918";
zone "example.nku" {
type master;
file "/etc/bind/db.example.nku";
};
zone "0.168.192.in-addr.arpa" {
type master;
file "/etc/bind/0.168.192.in-addr.arpa.zone";
};
Код: Выделить всё
$TTL 30 $ORIGIN example.nku.
@ IN SOA nku.example.nku. test.example.nku. (
2016031816 ; Serial
1d ; Refresh
1h ; Retry
1w ; Expire
2h ; Negative Cache TTL
)
@ IN NS nku.example.nku. ; Master
@ IN A 192.168.0.1 ;
@ IN MX 10 nku.example.nku. ;
@ IN MX 10 nrku.mail.nrku. ;
nku IN A 192.168.0.1
nrku IN A 192.168.0.10
mailserver IN A 192.168.0.1
Код: Выделить всё
$TTL 30
$ORIGIN 0.168.192.in-addr.arpa.
@ IN SOA nku.example.nku. test.example.nku. (
2016031808 ; Serial
1d ; Refresh
1h ; Retry
1w ; Expire
2h ; Negative Cache TTL
)
NS nku.example.nku.
1 PTR nku.example.nku.
10 PTR nrku.mail.nrku.
Код: Выделить всё
domain example.nku
nameserver 192.168.0.1