Projet

Général

Profil

Evolution #7008

Ajout d'un "." dans le template pour "nom_zone_dns_cache"

Ajouté par Emmanuel GARETTE il y a plus de 10 ans. Mis à jour il y a presque 10 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Catégorie:
-
Début:
Echéance:
04/04/2014
% réalisé:

100%

Temps estimé:
2.00 h
Temps passé:
Distribution:
EOLE 2.4

Description

Le template ajoute obligatoirement "." à "nom_zone_dns_cache". Si on ajoute plusieurs domaines le contenu de la variable est donc différent pour le 1er domaine et les autres.

Par exemple si on veut ".domain1 .domain2 .domain3" il faut mettre "domain1 .domain2 .domain3" (sans le ".").

De plus il est possible de vouloir redirigé un domaine (et non un sous-domaine) vers un proxy particulière (même si ce cas doit être rare).


Demandes liées

Lié à eole-proxy - Evolution #7007: La variable "nom_zone_dns_cache" ne permet que de mettre une nom de domaine Fermé 10/01/2014

Révisions associées

Révision 571d77d5 (diff)
Ajouté par Emmanuel GARETTE il y a environ 10 ans

migration de la variable nom_zone_dns_cache (ref #7008)

Révision 3458b28d (diff)
Ajouté par Emmanuel GARETTE il y a environ 10 ans

suppression du '.' obligatoire pour nom_zone_dns_cache (fixes #7008)

Révision cffbf6c2 (diff)
Ajouté par Joël Cuissinat il y a environ 10 ans

creole/upgrade.py : utilisation de eosfunc.is_empty()

Ref #7008
Ref #2795

Historique

#1 Mis à jour par Joël Cuissinat il y a environ 10 ans

  • Version cible changé de Eole 2.4-RC2 à Eole 2.4-RC3

#2 Mis à jour par Joël Cuissinat il y a environ 10 ans

  • Echéance mis à 04/04/2014
  • Temps estimé mis à 2.00 h

Supprimer le "." + documenter (help/description/doc?) + demande pour migration

#3 Mis à jour par Emmanuel GARETTE il y a environ 10 ans

  • Assigné à mis à Emmanuel GARETTE

Le test que j'ai fait pour la migration :

  1. place le fichier suivant dans /etc/eole/config.eol :
[nom_zone_dns_cache]
valdefault = []
valprec = []
val = ['example.fr']

[nom_cache_pere_zone]
valdefault = []
valprec = []
val = ['eth0']

[port_cache_pere_zone]
valdefault = []
valprec = []
val = ['3128']
  1. lancer gen_config et vérifier que "nom_zone_dns_cache" soit bien charger dans l'onglet "proxy père" avec la valeur ".example.fr" (et non "example.fr")

#4 Mis à jour par Emmanuel GARETTE il y a environ 10 ans

  • Statut changé de Nouveau à Résolu
  • % réalisé changé de 0 à 100

#5 Mis à jour par Joël Cuissinat il y a presque 10 ans

  • Statut changé de Résolu à Fermé

Migration OK + test suivant :

root@amon:~# CreoleGet  nom_zone_dns_cache
.avecpoint sanspoint .encoreavec
root@amon:~# grep point /etc/squid3/*
/etc/squid3/common-squid1.conf:acl intradom0 dstdomain ".avecpoint sanspoint .encoreavec" 
/etc/squid3/common-squid2.conf:cache_peer_domain toto .avecpoint sanspoint .encoreavec

Formats disponibles : Atom PDF