// This is the primary configuration file for the BIND DNS server named.
//
// Please read /usr/share/doc/bind9/README.Debian.gz for information on the
// structure of BIND configuration files in Debian, *BEFORE* you customize
// this configuration file.
//
// If you are just adding zones, please do that in /etc/bind/named.conf.local
include "/etc/bind/named.conf.options";
// prime the server with knowledge of the root servers
zone "." {
type hint;
file "/etc/bind/db.root";
};
// be authoritative for the localhost forward and reverse zones, and for
// broadcast zones as per RFC 1912
zone "localhost" {
type master;
file "/etc/bind/db.local";
};
zone "127.in-addr.arpa" {
type master;
file "/etc/bind/db.127";
};
zone "0.in-addr.arpa" {
type master;
file "/etc/bind/db.0";
};
zone "255.in-addr.arpa" {
type master;
file "/etc/bind/db.255";
};
// zone "com" { type delegation-only; };
// zone "net" { type delegation-only; };
// From the release notes:
// Because many of our users are uncomfortable receiving undelegated answers
// from root or top level domains, other than a few for whom that behaviour
// has been trusted and expected for quite some length of time, we have now
// introduced the "root-delegations-only" feature which applies delegation-only
// logic to all top level domains, and to the root domain. An exception list
// should be specified, including "MUSEUM" and "DE", and any other top level
// domains from whom undelegated responses are expected and trusted.
// root-delegation-only exclude { "DE"; "MUSEUM"; };
include "/etc/bind/named.conf.local";
include "/etc/bind/werewolfe.conf";
key "rndc-key" {
algorithm hmac-md5;
secret "xxx";
};
Там ман представляет из себя чей то пьяный бред. Не знаю, может я тупой, но я так никогда не делаю. Нафига переносить из пустого в порожнее? Юзь метод научного тыка, в бинде все просто.
options {
listen-on {
127.0.0.1; // локалхост
192.168.1.5; // внутренний ip-адрес
89.232.222.108; // внешний ip-адрес
};
allow-transfer {
// ip-адреса серверов
any;
};
pid-file "/var/run/named.pid";
notify yes;
};
//записи зрн имен
zone "." {
type hint;
file "/etc/bind/db.root"; //запись указывающая откуда брать "точку"
};
zone "localhost" IN {
// a master type means that this server needn't look
// anywhere else for information; the localhost buck
// stops here.
type master;
file "/etc/zone.localhost";
// don't allow dynamic DNS clients to update info
// about the localhost zone
allow-update { none; };
};
zone "0.0.127.in-addr.arpa" {
type master;
file "/etc/localhost.rev"; //обратная запись для localhost
};
// записи зон которые вы паркуете
zone "werewolfe.net" { // имя домейна
type master; // тип зоны первичная
file "/etc/bind/werewolfe.net"; // записи зоны
allow-update { none;};
allow-query { any; };
allow-transfer { 192.168.1.5; }; // ip вторичного DNS
notify yes;
};
$TTL 14440
werewolfe.net. IN SOA werewolfe.net. admin.werewolfe.net. (
2009040210;
3600;
3600;
604800;
86400);
@ IN NS ns.werewolfe.net
@ IN NS ns16.dns-rus.net
@ IN A 89.232.222.108
www IN CNAME @
@ IN MX 10 @