Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[bind] problèmes de configuration
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index French
View previous topic :: View next topic  
Author Message
reydelprusse
n00b
n00b


Joined: 28 Feb 2006
Posts: 45
Location: Anteuil city

PostPosted: Fri Mar 03, 2006 9:08 am    Post subject: [bind] problèmes de configuration Reply with quote

Bonjour,
j'essaie de mettre en place un serveur Bind sous Gentoo, mais je rencontre quelques problèmes:
adresse de mon serveur: 10.0.0.2
je peux lancer le service bind, mais nslookup donne le résultat suivant: ";;connection timed out; no servers could be reached".
j'ai configuré les fichiers suivant dans /etc/bind/, il y a les mêmes dans /var/bind aussi!!
si quelqu'un voit des erreurs, ça serait bien de m'en faire part, merci:

named.conf:

options { directory "/var/bind"; listen-on { 10.0.0.2; }; };

zone "." IN {
type hint;
file "named.ca"; };

zone "localhost" IN {
type master;
file "pri/localhost.zone";
allow-update { none; };
notify no; };

zone "127.in-addr.arpa" IN {
type master;
file "pri/127.zone";
allow-update { none; };
notify no; };

zone "domtest" IN {
type master;
file "pri/domtest.zone"
allow-update { 10.0.0.2; };
};

zone "0.0.10.in-addr.arpa" IN {
type master;
file "pri/10.zone";
allow-update { 10.0.0.2; };
};
------------------------------------------
10.zone:

$TTL 1w
$ORIGIN 0.0.10.in-addr.arpa
@ IN SOA serveurlinux.domtest. root.domtest. (
2002081601 ; serial
3H ; refresh
15M ; retry
1W ; expiry
1D ; minimum )
IN NS serveurlinux.domtest.
2 IN PTR serveurlinux.domtest.

--------------------------------------------
127.zone:

$TTL 1w
$ORIGIN 0.0.127.in-addr.arpa
@ IN SOA localhost. root.localhost. (
2002081601 ; serial
3H ; refresh
15M ; retry
1W ; expiry
1D ; minimum )
IN NS localhost.
* IN PTR localhost.

-------------------------------------------
localhost.zone:

$TTL 1W
$ORIGIN localhost
@ IN SOA ns.localhost. root.localhost. (
2002081601 ; serial
3H ; refresh
15M ; retry
1W ; expiry
1D ; minimum )
IN NS serveurlinux.domtest.
localhost IN A 127.0.0.1

---------------------------------------------
domtest.zone:

$TTL 1W
$ORIGIN domtest
@ IN SOA serveurlinux.domtest. root.domtest. (
2002081601 ; serial
3H ; refresh
15M ; retry
1W ; expiry
1D ; minimum )
IN NS serveurlinux.domtest.
serveurlinux IN A 10.0.0.2

------------------------------------------
resolv.conf:

nameserver 10.0.0.2
_________________
------------------------------
JUST GOD WILL JUDGE ME
Back to top
View user's profile Send private message
letoff
Apprentice
Apprentice


Joined: 04 Mar 2004
Posts: 163
Location: root in Paris, windsurfer in Brest

PostPosted: Fri Mar 03, 2006 1:25 pm    Post subject: Re: [bind] problèmes de configuration Reply with quote

reydelprusse wrote:
Bonjour,
j'essaie de mettre en place un serveur Bind sous Gentoo, mais je rencontre quelques problèmes:
adresse de mon serveur: 10.0.0.2
je peux lancer le service bind, mais nslookup donne le résultat suivant: ";;connection timed out; no servers could be reached".


Bonjour, peux-tu vérifier que named est bien lancé?


Code:
netstat -tan --program|grep named



reydelprusse wrote:
j'ai configuré les fichiers suivant dans /etc/bind/, il y a les mêmes dans /var/bind aussi!!
si quelqu'un voit des erreurs, ça serait bien de m'en faire part, merci:


Avant de regarder en détail le contenu de ton named.conf il faut savoir pourquoi le service ne peut être joint. Plutot que d'utiliser le vieillisant nslookup, que dit un:

Code:
dig @localhost  www.gentoo.org


N'oublies pas également de mentionner le domaine de ta machine dans ton resolv.conf
_________________
Gentoo won't be suitable for server's use until GLEP 19 is alive.
Back to top
View user's profile Send private message
man in the hill
Veteran
Veteran


Joined: 15 Dec 2005
Posts: 1552
Location: Madinina

PostPosted: Fri Mar 03, 2006 1:58 pm    Post subject: Reply with quote

salut


Code:
named-checkconf

pour vérifier que ton fichier est bien configué...

Code:
named-checkzone   ma_zone   /var/bind/mon_fichier.zone


Code:
nslookup

fonctionne sans problème chez moi mais je viens d' essayer dig qui te donne plus d'infos...

Donc vérifie ce que t'a dit letoff .

Sinon donne la topologie de ton réseaux avec les interfaces...



@ +
_________________
Get Up and Go !
Back to top
View user's profile Send private message
nemo13
Veteran
Veteran


Joined: 08 Oct 2004
Posts: 1016
Location: France/Istres

PostPosted: Fri Mar 03, 2006 9:57 pm    Post subject: Re: [bind] problèmes de configuration Reply with quote

letoff wrote:
Plutot que d'utiliser le vieillisant nslookup, que dit un:
Code:
dig @localhost  www.gentoo.org

Bonsoir,
par quel paquet dig est-il fourni ?
A+
Back to top
View user's profile Send private message
letoff
Apprentice
Apprentice


Joined: 04 Mar 2004
Posts: 163
Location: root in Paris, windsurfer in Brest

PostPosted: Fri Mar 03, 2006 10:02 pm    Post subject: Re: [bind] problèmes de configuration Reply with quote

nemo13 wrote:
letoff wrote:
Plutot que d'utiliser le vieillisant nslookup, que dit un:
Code:
dig @localhost  www.gentoo.org

Bonsoir,
par quel paquet dig est-il fourni ?
A+


net-dns/bind-tools
_________________
Gentoo won't be suitable for server's use until GLEP 19 is alive.
Back to top
View user's profile Send private message
reydelprusse
n00b
n00b


Joined: 28 Feb 2006
Posts: 45
Location: Anteuil city

PostPosted: Mon Mar 06, 2006 10:11 am    Post subject: Reply with quote

OK merci pour les commandes, je vai essayer de m'en sortir avec ça.
_________________
------------------------------
JUST GOD WILL JUDGE ME
Back to top
View user's profile Send private message
reydelprusse
n00b
n00b


Joined: 28 Feb 2006
Posts: 45
Location: Anteuil city

PostPosted: Mon Mar 06, 2006 10:13 am    Post subject: Reply with quote

Au fait, c'est quoi la commande pour voir les logs directement?
merci
_________________
------------------------------
JUST GOD WILL JUDGE ME
Back to top
View user's profile Send private message
reydelprusse
n00b
n00b


Joined: 28 Feb 2006
Posts: 45
Location: Anteuil city

PostPosted: Mon Mar 06, 2006 10:43 am    Post subject: Reply with quote

J'ai fait la commande de "man in the hill"

"named-checkzone ma_zone /var/bind/mon_fichier.zone"

avec tous mes fichiers de zone, réponse à chaque fois:

"SOA record not at top of zone".

C'est à dire?

ex dans mon fichier 10.zone:
-----------------
$TTL 1W
$origin 0.0.10.in-addr.arpa
@ IN SOA serveurlinux.domtest.com. root.domtest.com.
------------------

C'est quoi qui va pas dans mes lignes?
_________________
------------------------------
JUST GOD WILL JUDGE ME
Back to top
View user's profile Send private message
reydelprusse
n00b
n00b


Joined: 28 Feb 2006
Posts: 45
Location: Anteuil city

PostPosted: Tue Mar 07, 2006 12:47 pm    Post subject: Reply with quote

Bind fonctionne impec maintenant, merci
_________________
------------------------------
JUST GOD WILL JUDGE ME
Back to top
View user's profile Send private message
man in the hill
Veteran
Veteran


Joined: 15 Dec 2005
Posts: 1552
Location: Madinina

PostPosted: Tue Mar 07, 2006 1:15 pm    Post subject: Reply with quote

salut ,


Quelle a été la solution pour que ton post soit utile à d'autres ?




Merci,


@ +
_________________
Get Up and Go !
Back to top
View user's profile Send private message
reydelprusse
n00b
n00b


Joined: 28 Feb 2006
Posts: 45
Location: Anteuil city

PostPosted: Wed Mar 15, 2006 1:18 pm    Post subject: Reply with quote

La commande de "man in the Hill" a été géniale pour m'en sortir, j'ai pu voir mes erreurs dans les fichiers de configuration.
Ca serait bien si ça marcherais pour les autres services comme openldap par exemple.
(si quelqu'un a une idée)

rappel:

Code:
named-checkconf

pour vérifier que ton fichier est bien configué...

Code:
named-checkzone ma_zone /var/bind/mon_fichier.zone


Ensuite j'ai fait les vérifications avec dig:

dig serveur.domaine.com par exemple
dig -x 10.0.0.2

On peut essayer avec nslookup aussi.
_________________
------------------------------
JUST GOD WILL JUDGE ME
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index French All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum