Un server DNS e DHCP su Debian: differenze tra le versioni

Riga 644: Riga 644:
==== dhcpd.conf ====
==== dhcpd.conf ====
<pre>
<pre>
authoritative;
server-identifier 192.168.1.100;
ignore client-updates;
# Parametri per l'aggiornamento automatico di Bind
ddns-updates on;
ddns-update-style interim;
update-static-leases on;
ddns-domainname "small.lan.";
include "/etc/bind/rndc.key";
zone dune.lan. {
    primary 192.168.1.100;
    key rndc-key;
}
zone 1.168.192.in-addr.arpa. {
    primary 192.168.1.100;
    key rndc-key;
}
# Fine zona aggiornamento automatico di Bind
# Definizione rete
subnet 192.168.1.0 netmask 255.255.255.0 {
    option broadcast-address 192.168.1.255;
    option subnet-mask 255.255.255.0;
    option routers 192.168.1.1;
    option ip-forwarding off;
    range 192.168.1.150 192.168.1.160;
    default-lease-time 14400;
    max-lease-time 28800;
    option domain-name-servers 208.67.220.220, 212.216.112.112;
}
# Definizione host noti
group {
    default-lease-time 604800;
    max-lease-time 1209600;
    option domain-name "small.lan";
    option domain-search "small.lan";
    option domain-name-servers 192.168.1.100;
    host PC7C {
        hardware ethernet XX:XX:XX:XX:XX:XX;
        fixed-address 192.168.1.111;
    }
    host PC7W {
        hardware ethernet YY:YY:YY:YY:YY:YY;
        fixed-address 192.168.1.111;
    }
    host PC8C {
        hardware ethernet ZZ:ZZ:ZZ:ZZ:ZZ:ZZ;
        fixed-address 192.168.1.112;
    }
    host PC8W {
        hardware ethernet WW:WW:WW:WW:WW:WW;
        fixed-address 192.168.1.112;
    }
    host caio {
        hardware ethernet KK:KK:KK:KK:KK:KK;
        ddns-hostname caio;
    }
}
</pre>
</pre>


3 155

contributi