bind, konfiguracja stref
: 29 kwietnia 2011, 19:15
Witajcie.
Ostatnio rozpocząłem naukę zarządzania serwerem i do tej pory wszystko szło dobrze, aż do tego momentu. Podczas konfiguracji binda nie działały mi moje nowo skonfigurowane strefy. Przejrzałem logi, a tam:
Przy konfiguracji korzystałem z poradnika, sprawdziłem wszystko trzy razy, ale dalej to samo. Dlatego postanowiłem poprosić Was o pomoc.
Mój plik db.domena.pl
Mój plik domena.us, który robi za NS
Nie wiem co może być źle. Próbowałem szukać rozwiązania z pomocą Google, ale nic to nie dało.
Plik named.conf:
Ostatnio rozpocząłem naukę zarządzania serwerem i do tej pory wszystko szło dobrze, aż do tego momentu. Podczas konfiguracji binda nie działały mi moje nowo skonfigurowane strefy. Przejrzałem logi, a tam:
Kod: Zaznacz cały
Apr 28 21:20:19 szewczyk named[18340]: /etc/bind/db.domena.pl:1: no current owner name
Apr 28 21:20:19 szewczyk named[18340]: zone domena.pl/IN: loading from master file /etc/bind/db.domena.pl failed: no owner
Apr 28 21:20:19 szewczyk named[18340]: zone domena.pl/IN: not loaded due to errors.
Apr 28 21:20:19 szewczyk named[18340]: /etc/bind/domena.xxx.us:1: no current owner name
Apr 28 21:20:19 szewczyk named[18340]: zone domena.us/IN: loading from master file /etc/bind/db.domena.us failed: no owner
Apr 28 21:20:19 szewczyk named[18340]: zone domena.us/IN: not loaded due to errors.
Mój plik db.domena.pl
Kod: Zaznacz cały
$TTL 86401
$ORIGIN domena.pl.
@ IN SOA ns1.domena.us. root.domena.pl. (
2011042809
3600
3600
3600000
1209600
)
;
@ IN NS ns1.domena.us.
@ IN NS ns2.domena.us.
;
@ IN MX 10 mail.domena.pl.
;
@ IN A 89.231.xxx.xxx
www IN A 89.231.xxx.xxx
Mój plik domena.us, który robi za NS
Kod: Zaznacz cały
$TTL 86400
@ IN SOA ns1.domena.us. root.domena.us. (
2011042806
3600
3600
3600000
1209600
)
;
@ IN NS ns1.domena.us.
@ IN NS ns2.domena.us.
;
@ IN MX 10 mail.domena.us.
;
@ IN A 89.231.xxx.xxx
www IN CNAME domena.us.
ns1 IN A 89.231.xxx.xxx
ns2 IN A 89.231.xxx.xxx
Plik named.conf:
Kod: Zaznacz cały
// 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 "domena.us" {
type master;
file "/etc/bind/db.domena.us";
};
include "/etc/bind/named.conf.local";
zone "domena.pl" { type master; file "/etc/bind/db.domena.pl"; };