Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ### /etc/dhcpd.conf du DHCP
- # /etc/dhcpd.conf - Option globale pour le DHCP
- # Mise à jour dynamique pour le DNS
- ddns-update-style interim;
- ddns-updates on;
- update-static-leases on;
- ddns-domainname "milky.way";
- # Les clients peuvent mettre à jour leur hostname
- allow client-updates;
- # on utilise une clé pour chiffrer les transactions
- include "/etc/rndc.key";
- # Les adresse du serveur DNS
- option domain-name-servers 192.168.0.2, 192.168.0.3;
- # Le nom du domaine DNS
- option domain-name "milky.way";
- # Le masque
- option subnet-mask 255.255.255.0;
- default-lease-time 14400; # Bail par défaut 4H
- max-lease-time 43200; # Bail maximum propose au client 12H
- # Accepte les clients inconnus
- allow unknown-clients;
- # Authoritaire
- authoritative;
- # Les options que l'on va refile aux clients
- subnet 192.168.0.0 netmask 255.255.255.0 {
- range 192.168.0.4 192.168.0.254;
- host dns1
- {
- hardware ethernet 08:00:27:00:00:02;
- fixed-address 192.168.0.2;
- }
- host dns2
- {
- hardware ethernet 08:00:27:00:00:03;
- fixed-address 192.168.0.3;
- }
- }
- # Pour la mise à jour dynamique du DNS primaire
- zone milky.way. {
- primary 192.168.0.2;
- key rndckey;
- }
- zone 0.168.192.in-addr.arpa. {
- primary 192.168.0.2;
- key rndckey;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement