Project

General

Profile

Scénario #25599

Revoir la gestion du mode "DHCP" en 2.7

Added by Emmanuel GARETTE almost 5 years ago. Updated almost 5 years ago.

Status:
Terminé (Sprint)
Priority:
Normal
Category:
-
Start date:
01/29/2018
Due date:
10/26/2018
% Done:

100%

Estimated time:
(Total: 8.00 h)
Spent time:
(Total: 0.50 h)
Story points:
2.0
Remaining (hours):
0.00 hour
Velocity based estimate:
Release:
Release relationship:
Auto

Description

Problème

  • Avant l’instance d’un serveur, si un serveur DHCP est disponible, la résolution DNS ne fonctionne pas.
  • Le DHCP de systemd-networkd n’utilise pas la configuration isc-dhcp-client

Propositions

Avant l’instance

Nous ne devons pas toucher à la configuration.

Gestion de /etc/resolv.conf

Il faut gérer manuellement si /etc/resolv.conf doit être un lien symbolique:
  • S’il n’y a pas de configuration GenConfig, /etc/resolv.conf doit pointer sur /run/systemd/resolve/stub-resolv.conf et le template ne doit pas être instancié
  • S’il y a une configuration GenConfig, /etc/resolv.conf ne doit pas être un lien symbolique

Gestion avec serveur DNS local

  • Le résolveur doit utiliser 127.0.0.1
  • Le serveur DNS doit utiliser comme forwarder :
    • La valeur configurée dans GenConfig si elle est configurée
    • Sinon les valeurs renvoyées par systemd-resolve --status pour les sections d’interfaces, par exemple :
      Global
               DNS Servers: 192.168.232.2
                DNS Domain: eole.lan
                DNSSEC NTA: 10.in-addr.arpa
                            16.172.in-addr.arpa
                            168.192.in-addr.arpa
                            17.172.in-addr.arpa
                            18.172.in-addr.arpa
                            19.172.in-addr.arpa
                            20.172.in-addr.arpa
                            21.172.in-addr.arpa
                            22.172.in-addr.arpa
                            23.172.in-addr.arpa
                            24.172.in-addr.arpa
                            25.172.in-addr.arpa
                            26.172.in-addr.arpa
                            27.172.in-addr.arpa
                            28.172.in-addr.arpa
                            29.172.in-addr.arpa
                            30.172.in-addr.arpa
                            31.172.in-addr.arpa
                            corp
                            d.f.ip6.arpa
                            home
                            internal
                            intranet
                            lan
                            local
                            private
                            test
      
      Link 2 (ens4)
            Current Scopes: DNS
             LLMNR setting: yes
      MulticastDNS setting: no
            DNSSEC setting: no
          DNSSEC supported: no
               DNS Servers: 192.168.0.1
                DNS Domain: ac-test.fr
      

Subtasks

Tâche #25588: La résolution du nom doit fonctionner en environnement DHCP avant instanceFerméDaniel Dehennin

Tâche #25600: Il ne devrait pas y avoir d'erreur "bastion" pré instanceFerméFabrice Barconnière

Tâche #25613: Gérer manuellement si /etc/resolv.conf est un lien symbolique ou nonFerméDaniel Dehennin

Tâche #25614: La fonction creole.eosfunc.auto_dns doit utiliser la sortie de systemd-resolve --status de l’interface 0FerméDaniel Dehennin

History

#1 Updated by Daniel Dehennin almost 5 years ago

  • Description updated (diff)

#2 Updated by Daniel Dehennin almost 5 years ago

  • Assigned To set to Fabrice Barconnière
  • Release set to EOLE 2.7.0

#3 Updated by Joël Cuissinat almost 5 years ago

  • Remaining (hours) changed from 0.1 to 0.10000000149011612
  • Story points set to 2.0

#4 Updated by Joël Cuissinat almost 5 years ago

  • Status changed from Nouveau to Terminé (Sprint)

Also available in: Atom PDF