Ich habe eine Domain und will die DNS Server selber verwalten.
Dafür brauch ich selber 2 DNS Server.
1. Müssen das beide Master sein oder geht einer Master, einer Slave?
2. Falls auch ein Slave geht:
Ich bekomm nach dem Starten von bind auf dem Slave folgenden Fehler:
Code: Alles auswählen
Feb 7 21:11:50 ruwiepuwieundsiniemini named[11241]: Err/TO getting serial# for "189.172.217.in-addr.arpa"
Allerdings resultiert ein nslookup gnoedi.org 213.202.216.45 (gnoedi.org ist die Domain, 213.202.216.45 ist der Slavedns):
Code: Alles auswählen
Server: 213.202.216.45
Address: 213.202.216.45#53
Non-authoritative answer:
*** Can't find .gnoedi.org: No answer
Hier die named.conf vom Slave.
Code: Alles auswählen
options {
directory "/var/cache/bind";
// If there is a firewall between you and nameservers you want
// to talk to, you might need to uncomment the query-source
// directive below. Previous versions of BIND always asked
// questions using port 53, but BIND 8.1 and later use an unprivileged
// port by default.
// query-source address * port 53;
// If your ISP provided one or more IP addresses for stable
// nameservers, you probably want to use them as forwarders.
// Uncomment the following block, and insert the addresses replacing
// the all-0's placeholder.
// forwarders {
// 0.0.0.0;
// };
//listen-on-v6 { none; };
listen-on { 213.202.216.45; };
fetch-glue no;
recursion no;
allow-transfer { 217.172.189.51; };
transfer-format many-answers;
};
// reduce log verbosity on issues outside our control
logging {
category lame-servers { null; };
category cname { null; };
};
// 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";
};
// add entries for other zones below here
zone "gnoedi.org" {
type slave;
file "/etc/bind/db.gnoedi.org";
masters { 217.172.189.51; };
allow-query { any; };
};
zone "189.172.217.in-addr.arpa" {
type slave;
file "/etc/bind/db.217.172.189.51";
masters { 217.172.189.51; };
allow-query { any; };
};
Bei options {} habe ich nix bis auf listen-on
Code: Alles auswählen
zone "189.172.217.in-addr.arpa" {
type master;
file "/etc/bind/189.172.217.in-addr.arpa";
allow-query { any; };
};
zone "gnoedi.org" {
type master;
file "/etc/bind/gnoedi.org.zone";
allow-query { any; };
};