###########################################################################
##
## DHCPD.CONF
## file di configurazione per un server DHCP ridondato
## contiene le direttive di configurazione generiche
##
## 12.02.2008
## Mattia Gandolfi <mgandolf@redhat.com>
## versione 1.0
##
###########################################################################

authoritative;
one-lease-per-client true;
# Tempo predefinito per la scadenza del lease
default-lease-time 604800;
# Tempo massimo per la scadenza del lease
max-lease-time 604800;

# Opzioni Avaya
option option-176 code 176 = string;
option option-242 code 242 = string;

# Server DNS
option domain-name-servers 10.73.6.32,192.168.162.35;
option domain-name "sky.local";
# Server WINS 
option netbios-name-servers 10.73.6.32,192.168.162.33;
option netbios-node-type 8;

# DHCP FAILOVER
failover peer "dhcp-failover" {
   primary;
   address 10.72.253.254;
   port 520;

   peer address 10.72.252.254;
   peer port 520;
   
   max-response-delay 30;
   max-unacked-updates 10;
 
   load balance max seconds 3;

   split 128;
   mclt 1800;
}

# DHCP Dynamic-DNS update
# permetto ai client di aggiornare i record DNS
ddns-update-style interim;
allow client-updates;
# chiave del DNS
key "rndckey" {
        algorithm       hmac-md5;
        secret          "Oc2uAQCnocuIPG3wpLIo0g7r1hGW9og4bqYWAOoRyEZ2THYxQiPqK4aEAc3m";
};
# ma solo per le seguenti zone DNS
zone ilo. {
	primary 10.73.3.30;
	key rndckey;
}
zone 0.73.10.in-addr.arpa. {
	primary 10.73.3.30;
	key rndckey;
}

# Includo le configurazioni relative agli scope ed alle reservation
include "/etc/dhcpd.scopes";
include "/etc/dhcpd.reserves";


