1) est ce quelqu'un sait comment on active le mode debuggage de bind (erreurs loggés qq part) sous la débian....
2) la redhat semble semble bien fonctionner, et tente de transférer la zone stocké vers le secondaire (debian)....sans succes vu que celui ci ne semble pas puvoir faire de résolution sur cette zone.
Voici le contenu de mon /var/log/messages:
Aug 17 14:15:30 LinuxServer named[3063]: running
Aug 17 14:15:30 LinuxServer named[3063]: zone 0.0.127.in-addr.arpa/IN: sending n
otifies (serial 4)
Aug 17 14:15:30 LinuxServer named[3063]: zone g9/IN: sending notifies (serial 4)
Aug 17 14:15:30 LinuxServer named[3063]: client 172.16.4.27#1052: transfer of 'g
9/IN': AXFR started
Mon named.conf sur la red hat 9 serveur dns principal (ns1)
- Code: Tout sélectionner
controls {
inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};
include "/etc/named.custom";
include "/etc/rndc.key";
zone "0.0.127.in-addr.arpa" {
type master;
file "local/0.0.127.in-addr.arpa.zone";
};
zone "4.16.172.in-addr.arpa" {
type master;
file "g9/4.16.172.in-addr.arpa.zone";
};
zone "localhost" {
type master;
file "local/localhost.zone";
};
zone "g9" {
type master;
file "g9/g9.zone";
};
named.conf coté debian dns secondaire sans cache. (ns2) Code:
- Code: Tout sélectionner
options {
directory "/etc/bind";
auth-nxdomain no; # conform to RFC1035
};
logging {
category "unmatched" { "null"; };
category "default" { "default_syslog"; "default_debug"; };
};
// 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";
};
zone "0.0.127.in-addr.arpa" {
type master;
file "/etc/bind/0.0.127.in-addr.arpa";
};
//////////////////////////////////////////////
// add entries for other zones below here
//////////////////////////////////////////////
zone "4.16.172.in-addr.arpa" {
type slave;
file "4.16.172.in-addr.arpa";
masters { 172.16.4.26; };
};
zone "g9" {
type slave;
file "g9.zone";
masters { 172.16.4.26; };
};
# Use with the following in named.conf, adjusting the allow list as needed:
key "rndc-key" {
algorithm hmac-md5;
secret "BwlxG2vSikcZa7JzcCom9A==";
};
controls {
inet 127.0.0.1 port 953
allow { 127.0.0.1; } keys { "rndc-key"; };
};
# End of named.conf
voici la zone g9 pui sont inverse 4.16.172...:
- Code: Tout sélectionner
$TTL 86400
@ IN SOA ns1.g9. root.localhost (
4 ; serial
60 ; refresh
60 ; retry
604800 ; expire
86400 ; ttl
)
IN NS ns1.g9.
IN NS ns2.g9.
ns1 IN A 172.16.4.26
ns2 IN A 172.16.4.27
megspc IN A 172.16.4.25
@ IN A 172.16.4.26
www IN CNAME ns1
ftp IN CNAME ns1
------------------------------------------------------------------------------------------
$TTL 86400
@ IN SOA ns1.g9. root.localhost (
7 ; serial
60;28800 ; refresh
60;7200 ; retry
604800 ; expire
86400 ; ttk
)
@ IN NS ns1.g9.
25 IN PTR megspc.
26 IN PTR ns1.
27 IN PTR ns2.