[bind] problème de conf
gil-
Messages postés
34
Statut
Membre
-
squicky -
squicky -
Bonjour,
Voilà, j'essaye de faire tourner bind9 sur ma machine mais sans résultat pour le moment, j'aurai voulu savoir ce qui cloche dans mes fichier de conf car j'ai un peu tout essayé, rien ne marche.
NAMED.CONF
// 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";
// prime the server with knowledge of the root servers
zone "." {
type hint;
file "/etc/bind/db.root";
};
# Options de sécurité nécessaires à l'utilisation de la commande rndc
# pour administrer le service named.
controls {
inet 127.0.0.1 allow { localhost; } keys { rndc-key; };
};
// 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 "255.in-addr.arpa" {
type master;
file "/etc/bind/db.255";
};
zone "test.local" {
type master;
file "/etc/bind/db.test.local";
};
// zone "com" { type delegation-only; };
// zone "net" { type delegation-only; };
// From the release notes:
// Because many of our users are uncomfortable receiving undelegated answers
// from root or top level domains, other than a few for whom that behaviour
// has been trusted and expected for quite some length of time, we have now
// introduced the "root-delegations-only" feature which applies delegation-only
// logic to all top level domains, and to the root domain. An exception list
// should be specified, including "MUSEUM" and "DE", and any other top level
// domains from whom undelegated responses are expected and trusted.
// root-delegation-only exclude { "DE"; "MUSEUM"; };
include "/etc/bind/named.conf.local";
FICHIER DE ZONE db.test.local
;
; BIND data file for local loopback interface
;
$TTL 604800
@ IN SOA test.local. root.test.local. (
2007042702 ; Serial
21600 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
IN NS test.local.
gil-nc8430 A 192.168.1.10
pouet IN CNAME gil-nc8430
Voila, voila, je suis en nameserver 127.0.0.1, nameserver 192.168.1.1 , nameserver 0.0.0.0 dans mon fichier resolv.conf
Après un dig test.local. , pas de answer section, je craque...
Voilà, j'essaye de faire tourner bind9 sur ma machine mais sans résultat pour le moment, j'aurai voulu savoir ce qui cloche dans mes fichier de conf car j'ai un peu tout essayé, rien ne marche.
NAMED.CONF
// 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";
// prime the server with knowledge of the root servers
zone "." {
type hint;
file "/etc/bind/db.root";
};
# Options de sécurité nécessaires à l'utilisation de la commande rndc
# pour administrer le service named.
controls {
inet 127.0.0.1 allow { localhost; } keys { rndc-key; };
};
// 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 "255.in-addr.arpa" {
type master;
file "/etc/bind/db.255";
};
zone "test.local" {
type master;
file "/etc/bind/db.test.local";
};
// zone "com" { type delegation-only; };
// zone "net" { type delegation-only; };
// From the release notes:
// Because many of our users are uncomfortable receiving undelegated answers
// from root or top level domains, other than a few for whom that behaviour
// has been trusted and expected for quite some length of time, we have now
// introduced the "root-delegations-only" feature which applies delegation-only
// logic to all top level domains, and to the root domain. An exception list
// should be specified, including "MUSEUM" and "DE", and any other top level
// domains from whom undelegated responses are expected and trusted.
// root-delegation-only exclude { "DE"; "MUSEUM"; };
include "/etc/bind/named.conf.local";
FICHIER DE ZONE db.test.local
;
; BIND data file for local loopback interface
;
$TTL 604800
@ IN SOA test.local. root.test.local. (
2007042702 ; Serial
21600 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
IN NS test.local.
gil-nc8430 A 192.168.1.10
pouet IN CNAME gil-nc8430
Voila, voila, je suis en nameserver 127.0.0.1, nameserver 192.168.1.1 , nameserver 0.0.0.0 dans mon fichier resolv.conf
Après un dig test.local. , pas de answer section, je craque...
A voir également:
- [bind] problème de conf
- Conf apple - Accueil - Téléphones
- Bind css - Forum Jeux vidéo
- Fichier .conf ✓ - Forum Linux / Unix
- &Quot;impossible d'imprimer : problème de conf..." - Forum Imprimante
- Votre colissimo va bientôt nous être confié ! il est en cours de préparation chez votre expéditeur - Forum Réseaux sociaux
2 réponses
Il me semble que tu n'as pas spécifié $ORIGIN, du coup tes machines ne pointes sur aucun domaine
voici ma config si ca peut t'aider
$ORIGIN sqy-net.
$TTL 86400
@ IN SOA ns.sqy-net. squicky.squicky.net. (
20080211
8H
2H
1W
1D)
NS ns.sqy-net.
sqy-srv IN A 192.168.1.5
ns IN A 192.168.1.5
bip-bip IN A 192.168.1.110
coyote IN A 192.168.1.120
voici ma config si ca peut t'aider
$ORIGIN sqy-net.
$TTL 86400
@ IN SOA ns.sqy-net. squicky.squicky.net. (
20080211
8H
2H
1W
1D)
NS ns.sqy-net.
sqy-srv IN A 192.168.1.5
ns IN A 192.168.1.5
bip-bip IN A 192.168.1.110
coyote IN A 192.168.1.120
Il me semble que tu n'as pas spécifié $ORIGIN, du coup tes machines ne pointes sur aucun domaine
voici ma config si ca peut t'aider
$ORIGIN sqy-net.
$TTL 86400
@ IN SOA ns.sqy-net. squicky.squicky.net. (
20080211
8H
2H
1W
1D)
NS ns.sqy-net.
sqy-srv IN A 192.168.1.5
ns IN A 192.168.1.5
bip-bip IN A 192.168.1.110
coyote IN A 192.168.1.120
voici ma config si ca peut t'aider
$ORIGIN sqy-net.
$TTL 86400
@ IN SOA ns.sqy-net. squicky.squicky.net. (
20080211
8H
2H
1W
1D)
NS ns.sqy-net.
sqy-srv IN A 192.168.1.5
ns IN A 192.168.1.5
bip-bip IN A 192.168.1.110
coyote IN A 192.168.1.120