Bien le bonjour à vous les gens
Je viens vers vous concernant une petite aide de config de Bind9.
En effet je pêche énormément et ne réussi pas réellement à régler ce serveur de DNS
Ma config est la suivante => debian 5 sur dédié kimsufi (ovh), adresse ip 94.23.219.76, dns primaire ovh kimsufi 213.186.33.199, reverse original ks306074.kimsufi.com et nom de domaine n1-gaming.fr / wolwx.com
1ère question, concernant le réglage du fichier “hosts” de mon debian.
[code]# Do not remove the following line, or various programs
that require network functionality will fail.
127.0.0.1 localhost
94.23.219.76 ks306074.kimsufi.com mta
94.23.219.76 wolwx.com mta
94.23.219.76 n1-gaming.fr mta
94.23.219.76 ks306074.kimsufi.com
94.23.219.76 n1-gaming.fr
94.23.219.76 wolwx.com
The following lines are desirable for IPv6 capable hosts
#(added automatically by netbase upgrade)
::1 ip6-localhost ip6-loopback
feo0::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts[/code]
Puis-je régler ainsi ou bien je ne peux renseigner plusieurs nom de domaine dans ce fichier ?
Le réglage en ipv6 est bon ou bien il faut mieux que je ne le mette pas ?
Lorsque je procède à des maj de ce fichier “hosts” dois-je procéder à un reboot ou autre ?
Ensuite concernant ma config Bind9, j’ai donc l’arborescence suivante (bien entendu j’ai pris le soin de spécifier les bonnes directions dans les fichiers config) :
[/home/config/bind]
db.0
db.127
db.255
db.empty
db.local
db.root
named.conf
named.conf.local
named.conf.options
rndc.key
zones.rfc1918
[zones]
named.conf =>
[code]// prime the server with knowledge of the root servers
zone “.” {
type hint;
file “/home/config/bind/db.root”;
};
zone “localhost” {
type master;
file “/home/config/bind/db.local”;
};
zone “127.in-addr.arpa” {
type master;
file “/home/config/bind/db.127”;
};
zone “0.in-addr.arpa” {
type master;
file “/home/config/bind/db.0”;
};
zone “255.in-addr.arpa” {
type master;
file “/home/config/bind/db.255”;
};[/code]
named.conf.local =>
[code]# This is the zone definition. replace example.com with your domain name
zone “wolwx.com” {
type master;
file “/home/config/bind/zones/wolwx.com.db”;
};
This is the zone definition for reverse DNS. replace 0.168.192 with your network address in reverse notation - e.g my network address is 192.168.0
zone “76.219.23.94.in-addr.arpa” {
type master;
file “/home/config/bind/zones/rev.76.219.23.94.in-addr.arpa”;
};
This is the zone definition. replace example.com with your domain name
zone “n1-gaming.fr” {
type master;
file “/home/config/bind/zones/n1-gaming.fr.db”;
};[/code]
named.conf.options =>
[code]options {
directory “/var/cache/bind”;
auth-nxdomain no; # conform to RFC1035
listen-on { any; };
listen-on-v6 { any; };
allow-query { any; };
allow-recursion { 127.0.0.1; };
# Adresse IP du DNS primaire ovh kimsufi
allow-transfer { 213.186.33.199; };
};[/code]
dans mon dossier zones :
n1-gaming.fr.db =>
[code]$TTL 38400
wolwx.com. IN SOA ns1.n1-gaming.fr. admin.n1-gaming.fr. (
2009101301
28800
3600
604800
38400
)
n1-gaming.fr. IN NS ns1.n1-gaming.fr.
n1-gaming.fr. IN MX 10 mta.n1-gaming.fr.
n1-gaming.fr. IN MX 1 mx.n1-gaming.fr.
www.n1-gaming.fr. IN A 94.23.219.76
mta.n1-gaming.fr. IN A 94.23.219.76
ns1.n1-gaming.fr. IN A 94.23.219.76
mx.n1-gaming.fr. IN A 94.23.219.76
n1-gaming.fr. IN A 94.23.219.76
malatena.n1-gaming.fr. IN A 94.23.219.76
wolwx.n1-gaming.fr. IN A 94.23.219.76
mumble.n1-gaming.fr. IN A 94.23.219.76
ftp.n1-gaming.fr. IN A 94.23.219.76
mail.n1-gaming.fr. IN A 94.23.219.76
redmine.n1-gaming.fr. IN A 94.23.219.76
*.n1-gaming.fr. IN A 94.23.219.76
www.n1-gaming.fr. IN CNAME n1-gaming.fr.
WolwX.n1-gaming.fr. IN RP admin.n1-gaming.fr. WolwX[/code]
wolwx.com.db =>
[code]$TTL 38400
wolwx.com. IN SOA ns1.wolwx.com. admin.wolwx.com. (
2009101301
28800
3600
604800
38400
)
wolwx.com. IN NS ns1.wolwx.com.
wolwx.com. IN MX 10 mta.wolwx.com.
wolwx.com. IN MX 1 mx.wolwx.com.
www.wolwx.com. IN A 94.23.219.76
mta.wolwx.com. IN A 94.23.219.76
ns1.wolwx.com. IN A 94.23.219.76
mx.wolwx.com. IN A 94.23.219.76
wolwx.com. IN A 94.23.219.76
malatena.wolwx.com. IN A 94.23.219.76
wolwx.wolwx.com. IN A 94.23.219.76
mumble.wolwx.com. IN A 94.23.219.76
ftp.wolwx.com. IN A 94.23.219.76
mail.wolwx.com. IN A 94.23.219.76
redmine.wolwx.com. IN A 94.23.219.76
www.wolwx.com. IN CNAME wolwx.com.
WolwX.wolwx.com. IN RP admin.wolwx.com. WolwX
*.wolwx.com. IN A 94.23.219.76[/code]
rev.76.219.23.94.in-addr.arpa =>
[code]@ IN SOA ns1.wolwx.com. admin.wolwx.com. (
2006081401;
28800;
604800;
604800;
86400
)
IN NS ns1.wolwx.com.
1 IN PTR wolwx.com[/code]
J’espère donc qu’il y aura des experts dans le coin pour me dire ce qui n’est pas bien config