Anomalie #6682
h2n : ne prend pas en compte les noms sans l'extension nom_domaine_local
Description
Suite à la màj rc, il est impossible de résoudre le nom du serveur scribe spécifié par nom_serveur_scribe_dmz.
en fouillant un peu j'ai pu m'apercevoir qu'en fait il ne comprend pas les noms présents dans /etc/hosts qui n'ont pas l'extension nom_domaine_local :
@root@plateformetest:/etc/bind# /usr/share/eole/h2n -h plateformetest -d 0690133v.lan -s plateformetest.0690133v.lan -u postmaster -n 10.169.253.240:255.255.255.240 -n 10.69.253.0:255.255.255.0 -n 172.23.253.0:255.255.255.0 -n 192.168.220.0:255.255.255.0 -M +c /etc/bind/local.zones -y -b /etc/bind/local.zones -W /etc/bind/
Initializing new database files...
Reading host file `/etc/hosts...
Line 1: Skipping; IP not within range specified by -n/-a options.
127.0.0.1 localhost.localdomain localhost
Line 4: Skipping `plateformetest.plateformetest.ac-lyon.fr.
The canonical name does not match the -d option.
10.169.253.252 plateformetest.plateformetest.ac-lyon.fr
Line 5: Skipping `admin.plateformetest.ac-lyon.fr.
The canonical name does not match the -d option.
10.69.253.252 admin.plateformetest.ac-lyon.fr
Line 8: Skipping `pedago.plateformetest.ac-lyon.fr.
The canonical name does not match the -d option.
172.23.253.252 pedago.plateformetest.ac-lyon.fr
Line 11: Skipping `dmz.plateformetest.ac-lyon.fr.
The canonical name does not match the -d option.
192.168.220.252 dmz.plateformetest.ac-lyon.fr
Line 13: Skipping `srv-scribe.
The canonical name does not match the -d option.
192.168.220.10 srv-scribe
Writing database files...
Generating boot and conf files...
Checking NS, MX, and other RRs for various improprieties...
Warning: found zone(s) not having at least two listed name servers (RFC-1034):
$ORIGIN 0690133v.lan.
@ 86400 IN NS plateformetest
Done.
root@plateformetest:/etc/bind#@
Idem pour les noms avec pour extension nom_academie
Rajouter l'extension nom_domaine_local à srv-scribe dans /etc/hosts corrige le pb.
Associated revisions
gen_dns : prise en compte des noms unqualified de /etc/hosts
fixes #6682 @15m
History
#1 Updated by Fabrice Barconnière over 7 years ago
- Project changed from Amon to eole-dns
- Due date set to 11/29/2013
- Status changed from Nouveau to Accepté
- Assigned To set to Fabrice Barconnière
- Target version set to Mises à jour 2.3.11
il manque l'option mode=D dans la ligne de commande h2n (-d domain mode=D) pour compléter un nom non qualifié avec le nom de domaine par défaut.
#2 Updated by Fabrice Barconnière over 7 years ago
- Status changed from Accepté to Résolu
- % Done changed from 0 to 100
Appliqué par commit 3f3056ea76297f4bab415169ad75f8b2fa0235b4.
#3 Updated by Fabrice Barconnière over 7 years ago
- Status changed from Résolu to Fermé
OK pour Karim et moi : 2.3-eole97~14.gbp60123e