Ciao a tutti.
Non riesco a aggiornare un server dns tramite dhcp premetto:
-i demoni dhcpd e named sul server si avviano.
-named -g non da alcun errore di sintassi sul file named.conf
-alle macchine viene assegnato l'indirizzo ip e si pingano (server-client)
ma un nslookup "nome macchina" dà questo errore:
Server :127.0.0.1
Address 127.0.0.1#53
server can't find "nome macchina": serverfail
La risoluzione dinamica dei nomi non funziona.
Vi incollo i file di interesse che ho modificato, dopo aver creato la chiave:
DHCP_UPDATER.key:
key DHCP_UPDATER {
algorithm hmac-md5;
secret zUXMoNDWCvOnWDxQb3AOfQ==;
};
DHCPD.CONF:
# Configuration file for ISC dhcpd (see 'man dhcpd.conf')
include "/var/named/DHCP_UPDATER.key";
ddns-update-style interim;
ddns-updates on;
authoritative;
subnet 192.168.0.0 netmask 255.255.255.0{
range 192.168.0.2 192.168.0.10;}
default-lease-time 86400;
max-lease-time 259200;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.0.255;
option routers 192.168.0.1;
option domain-name-servers 192.168.0.1;
option domain-name "e3l";
zone e3l. {
primary 127.0.0.1;
key DHCP_UPDATER;
}
zone e3l.rev. {
primary 127.0.0.1;
key DHCP_UPDATER;
}
NAMED.CONF:
options {
directory "/var/named";
/*
* If there is a firewall between you and nameservers you want
* to talk to, you might need to uncomment the query-source
* directive below. Previous versions of BIND always asked
* questions using port 53, but BIND 8.1 uses an unprivileged
* port by default.
*/
};
include "/var/named/DHCP_UPDATER.key";
zone "." IN {
type hint;
file "caching-example/named.ca";
};
zone "127.in-addr.arpa"{
type master;
file "named.rev-local";
};
zone "e3l"{
type master;
file "e3l";
allow-update { key DHCP_UPDATER; };
};
zone "0.168.192.in-addr.arpa"{
type master;
file "e3l.rev";
allow-update { key DHCP_UPDATER; };
};
Grazie in anticipo!

