slt,
j'ai conf bind avec webmin1.530 .
Mon fichier named.comf est
Code :
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
| // 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";
key key {
algorithm hmac-md5;
secret "***************************";
};
controls {
inet 127.0.0.1 allow { any; } keys { key; rndc-key; };
};
// 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 "0.168.192.in-addr.arpa" {
type master;
file "/etc/bind/db.192.168.0.rev";
};
include "/etc/bind/named.conf.local";
key rndc-key {
algorithm hmac-md5;
secret "******************";
}; |
le fichier named.option
Code :
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
| options {
directory "/var/cache/bind";
// If there is a firewall between you and nameservers you want
// to talk to, you may need to fix the firewall to allow multiple
// ports to talk. See http://www.kb.cert.org/vuls/id/800113
// 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.
query-source address * port 53;
forwarders {
212.27.40.241;212.27.40.240;//dns free
};
auth-nxdomain no; # conform to RFC1035
listen-on-v6 { any; };
forward first;
}; |
fichier named.local
Code :
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
| //
// 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 "13.0.168.192.in-addr.arpa" {
type master;
file "/var/lib/bind/192.168.0.13.rev";
};
zone "mondomaine.fr" {
type master;
file "/var/lib/bind/mondomaine.fr.hosts";
allow-query { any; };
allow-transfer { any; };
}; |
mon fichier mondomaine.fr.hosts
Code :
1 2 3 4 5 6 7 8 9 10 11 12
| $ttl 38400
mondomaine.fr. IN SOA ns1.mondomaine.fr. contact.mondomaine.fr (
1298986654
10800
3600
604800
38400 )
mondomaine.fr. IN NS ns1.mondomaine.fr.
mondomaine.fr. IN A 192.168.0.13
ns1.mondomaine.fr. IN A 192.168.0.13
ns1.mondomaine.fr. IN A 88.169.***.**
www.mondomaine.fr. IN CNAME mondomaine.fr. |
fichier 192.168.0.13.rev
Code :
1 2 3 4 5 6 7 8 9
| $ttl 38400
13.0.168.192.in-addr.arpa. IN SOA ns1. contact.mondomaine.fr (
1298986655
10800
3600
604800
38400 )
13.0.168.192.in-addr.arpa. IN NS ns1.
13.0.168.192.in-addr.arpa. IN PTR ns1. |
fichier resolv.conf
Code :
1 2 3
| search ns1.mondomaine.fr
nameserver 192.168.0.13
nameserver 88.169.***.** |
mon problème est que lorsque je fais
Code :
dig ns1.mondomaine.fr ou ping ns1.mondomaine.fr
sa marche sur le serveur , mais pas depuis un pc connecter au réseaux ni de l'extérieur.