Outils pour utilisateurs

Outils du site


serveur_install_party:dns

Ceci est une ancienne révision du document !


Résolution de noms

Cette partie va nous servir à résoudre les noms de domaine, mais aussi à résoudre chaque nom de machine si le serveur dhcp a pu l'obtenir.

Rappel du réseau

                                 +-----------+
                                 |           |
INTERNET ---------- (DHCP) eth0 -|  SERVEUR  |- eth1 (10.9.0.0/22) --- Réseau local pour les installs
                                 |           |
                                 +-----------+

Bind

Générez votre clée rndc

rndc-confgen -a -c /etc/bind/rndc.key

Ajoutez les lignes suviantes à votre configuration /etc/bind/named.conf

include "/etc/bind/rndc.key";

Zone locales

/etc/bind/named.conf.local

zone "0.9.10.in-addr.arpa" {
        type master;
        file "/etc/bind/10.9.0.rev";
        allow-update {
                key rndc-key;
                };
        };
zone "lq" {
        type master;
        file "/etc/bind/lq.hosts";
        allow-update {
                key rndc-key;
                };
        };

/etc/bind/10.9.0.rev

$ORIGIN .
$TTL 38400      ; 10 hours 40 minutes
0.9.10.in-addr.arpa     IN SOA  kebab.local. root.localhost. (
                                1270388228 ; serial
                                10800      ; refresh (3 hours)
                                3600       ; retry (1 hour)
                                604800     ; expire (1 week)
                                38400      ; minimum (10 hours 40 minutes)
                                )
                        NS      kebab.local.
$ORIGIN 0.9.10.in-addr.arpa.

/etc/bind/lq.hosts

$ORIGIN .
$TTL 38400      ; 10 hours 40 minutes
lq                      IN SOA  kebab.lq. root.localhost. (
                                1270462992 ; serial
                                10800      ; refresh (3 hours)
                                3600       ; retry (1 hour)
                                604800     ; expire (1 week)
                                38400      ; minimum (10 hours 40 minutes)
                                )
                        NS      kebab.lq.
$ORIGIN lq.
serveur_install_party/dns.1341665245.txt.gz · Dernière modification: 2023/07/18 23:11 (modification externe)