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

Riga 656: Riga 656:
<pre>
<pre>
authoritative;
authoritative;
server-identifier 192.168.1.100;
ignore client-updates;
ignore client-updates;
# Parametri per l'aggiornamento automatico di Bind
# Parametri per l'aggiornamento automatico di Bind
ddns-updates on;
ddns-updates on;
ddns-update-style interim;
ddns-update-style interim;
update-static-leases on;
update-static-leases off;
ddns-domainname "small.lan.";
ddns-domainname "small.lan.";
include "/etc/bind/rndc.key";
include "/etc/bind/rndc.key";
Riga 679: Riga 678:
     option routers 192.168.1.1;
     option routers 192.168.1.1;
     option ip-forwarding off;
     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-name "small.lan";
     option domain-search "small.lan";
     option domain-search "small.lan";
     option domain-name-servers 192.168.1.100;
     option domain-name-servers 192.168.1.100;
     host PC7C {
     default-lease-time 604800;
        hardware ethernet XX:XX:XX:XX:XX:XX;
    max-lease-time 1209600;
         fixed-address 192.168.1.111;
    pool {
         range 192.168.1.130 192.168.1.140;
        deny unknown-clients;
     }
     }
     host PC7W {
     pool {
         hardware ethernet YY:YY:YY:YY:YY:YY;
         range 192.168.1.150 192.168.1.160;
        fixed-address 192.168.1.111;
        default-lease-time 14400;
    }
        max-lease-time 28800;
    host PC8C {
         option domain-name "none";
         hardware ethernet ZZ:ZZ:ZZ:ZZ:ZZ:ZZ;
         option domain-search "none";
         ddns-hostname PC8C;
        option domain-name-servers 208.67.220.220, 212.216.112.112;
    }
         allow unknown-clients;
    host PC8W {
         deny known-clients;
         hardware ethernet WW:WW:WW:WW:WW:WW;
         ddns-hostname PC8W;
     }
     }
}
# Definizione host noti
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;
    ddns-hostname PC8C;
}
host PC8W {
    hardware ethernet WW:WW:WW:WW:WW:WW;
    ddns-hostname PC8W;
}
}
</pre>
</pre>
3 155

contributi