Advertisement
mabigboy

dhcpd.conf

Dec 26th, 2011
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.28 KB | None | 0 0
  1. ### /etc/dhcpd.conf du DHCP
  2. # /etc/dhcpd.conf - Option globale pour le DHCP
  3.  
  4. # Mise à jour dynamique pour le DNS
  5. ddns-update-style interim;
  6. ddns-updates on;
  7. update-static-leases on;
  8. ddns-domainname "milky.way";
  9.  
  10. # Les clients peuvent mettre à jour leur hostname
  11. allow client-updates;
  12.  
  13. # on utilise une clé pour chiffrer les transactions
  14. include "/etc/rndc.key";
  15.  
  16. # Les adresse du serveur DNS
  17. option domain-name-servers 192.168.0.2, 192.168.0.3;
  18.  
  19. # Le nom du domaine DNS
  20. option domain-name "milky.way";
  21.  
  22. # Le masque
  23. option subnet-mask 255.255.255.0;
  24.  
  25. default-lease-time 14400; # Bail par défaut 4H
  26. max-lease-time 43200; # Bail maximum propose au client 12H
  27.  
  28. # Accepte les clients inconnus    
  29. allow unknown-clients;
  30.  
  31. # Authoritaire
  32. authoritative;
  33.  
  34. # Les options que l'on va refile aux clients
  35. subnet 192.168.0.0 netmask 255.255.255.0 {
  36.     range 192.168.0.4 192.168.0.254;
  37.     host dns1
  38.     {
  39.      hardware ethernet  08:00:27:00:00:02;
  40.     fixed-address 192.168.0.2;    
  41.     }
  42.     host dns2
  43.     {
  44.      hardware ethernet  08:00:27:00:00:03;
  45.     fixed-address 192.168.0.3;    
  46.     }
  47. }
  48.  
  49. # Pour la mise à jour dynamique du DNS primaire
  50. zone milky.way. {
  51.     primary 192.168.0.2;
  52.     key rndckey;
  53. }
  54.  
  55. zone 0.168.192.in-addr.arpa. {
  56.     primary 192.168.0.2;
  57.     key rndckey;
  58. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement