Installation DNS SOUS RedHat
Modérateur : Modérateurs
Installation DNS SOUS RedHat
, j'ai installé le DNS SOUS REdHat et aprés j'ai configuré le fichier named.conf et resolv.conf,mais il est pas marché, est ce qu'il y a quelqu'un peut me aider,et merci bien d'avaence .
العلم نورا
je suis dans une salle de 16 machines,
voici le fichier de configuration named.conf
// secret must be the same as in /etc/rndc.conf
key "key" {
algorithm hmac-md5;
secret
"c3Ryb25nIGVub3VnaCBmb3IgYSBtYW4gYnV0IG1hZGUgZm9yIGEgd29tYW4K";
};
controls {
inet 127.0.0.1 allow { any; } keys { "key"; };
};
options {
pid-file "/var/run/named/named.pid";
directory "/var/named";
/*
* 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 uses an unprivileged
* port by default.
*/
// query-source address * port 53;
forward first;
forwarders {
194.149.160.9;
194.149.160.1;
};
};
//
// a caching only nameserver config
//
zone "." {
type hint;
file "named.ca";
};
zone "0.0.127.in-addr.arpa" {
type master;
file "named.local";
};
zone "mst11.fsts.ac.ma" {
type master;
file "mst11.fsts.ac.ma";
};
zone "100.20.172.in-addr.arpa" {
type master;
file "fsts";
};
et voici la configuration de fichier named.local
@ IN SOA mst11.mst11.fsts.ac.ma. root.mst11.fsts.ac.ma. (
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS mst11.mst11.fsts.ac.ma.
1 IN PTR localhost.
voici le fichier resolv.conf
search mst11.fsts.ac.ma
nameserver 127.0.0.1
nameserver 172.16.0.2
nameserver 194.149.160.1
voici le fichier mst11.fsts.ac.ma
@ IN SOA mst11.mst11.fsts.ac.ma. root.mst11.fsts.ac.ma. (
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
TXT "mon sous domaine fsts"
NS mst11
NS mst11.mst11.fsts.ac.ma.
MX 10 mst11
MX 20 mst11.mst11.fsts.ac.ma.
localhost A 127.0.0.1
mst9 A 172.20.2.9
mst3 A 172.20.2.3
mst1 A 172.20.2.1
mst2 A 172.20.2.2
mst4 A 172.20.2.4
mst10 A 172.20.2.10
mst13 A 172.20.2.13
mst11 A 172.20.2.11
mst12 A 172.20.2.12
mst14 A 172.20.2.14
mst5 A 172.20.2.5
mst6 A 172.20.2.6
mst7 A 172.20.2.7
mst8 A 172.20.2.8
mst15 A 172.20.2.15
mst16 A 172.20.2.16
mst13 A 172.20.2.13
mst11 A 172.20.2.11
mst12 A 172.20.2.12
mst14 A 172.20.2.14
merci bien d'avance.
voici le fichier de configuration named.conf
// secret must be the same as in /etc/rndc.conf
key "key" {
algorithm hmac-md5;
secret
"c3Ryb25nIGVub3VnaCBmb3IgYSBtYW4gYnV0IG1hZGUgZm9yIGEgd29tYW4K";
};
controls {
inet 127.0.0.1 allow { any; } keys { "key"; };
};
options {
pid-file "/var/run/named/named.pid";
directory "/var/named";
/*
* 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 uses an unprivileged
* port by default.
*/
// query-source address * port 53;
forward first;
forwarders {
194.149.160.9;
194.149.160.1;
};
};
//
// a caching only nameserver config
//
zone "." {
type hint;
file "named.ca";
};
zone "0.0.127.in-addr.arpa" {
type master;
file "named.local";
};
zone "mst11.fsts.ac.ma" {
type master;
file "mst11.fsts.ac.ma";
};
zone "100.20.172.in-addr.arpa" {
type master;
file "fsts";
};
et voici la configuration de fichier named.local
@ IN SOA mst11.mst11.fsts.ac.ma. root.mst11.fsts.ac.ma. (
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS mst11.mst11.fsts.ac.ma.
1 IN PTR localhost.
voici le fichier resolv.conf
search mst11.fsts.ac.ma
nameserver 127.0.0.1
nameserver 172.16.0.2
nameserver 194.149.160.1
voici le fichier mst11.fsts.ac.ma
@ IN SOA mst11.mst11.fsts.ac.ma. root.mst11.fsts.ac.ma. (
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
TXT "mon sous domaine fsts"
NS mst11
NS mst11.mst11.fsts.ac.ma.
MX 10 mst11
MX 20 mst11.mst11.fsts.ac.ma.
localhost A 127.0.0.1
mst9 A 172.20.2.9
mst3 A 172.20.2.3
mst1 A 172.20.2.1
mst2 A 172.20.2.2
mst4 A 172.20.2.4
mst10 A 172.20.2.10
mst13 A 172.20.2.13
mst11 A 172.20.2.11
mst12 A 172.20.2.12
mst14 A 172.20.2.14
mst5 A 172.20.2.5
mst6 A 172.20.2.6
mst7 A 172.20.2.7
mst8 A 172.20.2.8
mst15 A 172.20.2.15
mst16 A 172.20.2.16
mst13 A 172.20.2.13
mst11 A 172.20.2.11
mst12 A 172.20.2.12
mst14 A 172.20.2.14
merci bien d'avance.
العلم نورا
Qui est en ligne
Utilisateurs parcourant ce forum : Aucun utilisateur enregistré et 2 invités