Bind 9 ustawienie i konfiguracja - serwer DNS
: 06 marca 2009, 21:17
Postępowałem według poradnika http://debian.linux.pl/viewtopic.php?t=3267 błędów nie było i tu zaczyna się problem nadal nie działa mi serwer dns.
Wpisy wyglądają tak:
/etc/bin/named.conf.local
No i plik strefy /etc/bind/db.siec.domowa (zmienilem nazwe siec.domowa na allemuza.pl)
/etc/bin/named.conf.local
/etc/bind/db.192 (ten plik utworzyłem)
Jak tak zrobiłem to co teraz aby działała mi domena allemuza.pl, którą mam na domenomania.pl?
Wpisy wyglądają tak:
/etc/bin/named.conf.local
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 "allemuza.pl" IN {
type master;
file "/etc/bind/db.allemuza.pl";
allow-query { allemuza.pl; };
};
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";
Kod: Zaznacz cały
$TTL 604800
@ IN SOA stacjonarny.allemuza.pl root.stacjonarny.allemuza.pl (
1 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
IN NS dns1.allemuza.pl
IN NS dns2.allemuza.pl
IN MX 10 smtp.allemuza.pl
@ IN A 87.98.157.166
stacjonarny IN A 87.98.157.166
dns1 IN A 87.98.157.166
smtp IN A 87.98.157.166
dns2 IN A 87.98.157.166
Kod: Zaznacz cały
//
// 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 "allemuza.pl" IN {
type master;
file "/etc/bind/db.allemuza.pl";
allow-query { allemuza.pl; };
};
zone "0.168.192.IN-ADDR.ARPA" IN {
type master;
file "/etc/bind/db.192";
allow-query { allemuza.pl; };
};
Kod: Zaznacz cały
$TTL 600
0.168.192.IN-ADDR.ARPA. IN SOA stacjonarny.allemuza.pl root.stacjonarny.allemuza.pl (
1 ; serial
12h ; refresh
1h ; retry
2w ; expire
1h ; default_ttl
)
IN NS dns1.allemuza.pl
IN NS dns2.allemuza.pl
1 IN PTR stacjonarny.allemuza.pl
2 IN PTR dns2.allemuza.pl