[PLUTO-help] DNS aggiornato automaticamente con DHCP

Andrea Bencini andrea.bencini a tin.it
Mar 18 Apr 2006 19:51:03 CEST


Ho installato dhcp-3.0.2 e bind-9.3.1

Ho configurato un client windows 2000 prof (sp 4) con il dhcp
e vorrei che il mio dns venisse aggiornato automaticamente.
Il pc dove e' installato w2k si chiama "nt-andreab" e il dominio si chiama
"sic.local"
L'indirizzo del server e' 10.100.0.159 e si chiama "srv-sic".

Per provare se il dns viene aggionato ho provato a fare un ping
ping nt-andrea.sic.local
e come risposta ho ottenuto
"unknown host nt-andreab.sic.local"

Qui di seguito vi riporto la configurazione di named.conf, di dhcpd.conf e
la parte
del log (messages) che interessa il dns e il dhcp.

Il dns e il dhcp, a parte questo inconveniente di cui vi chiedo aiuto,
funzionano in maniera corretta.

Potete aiutarmi?
Grazie
Andrea

#########################

options {
 directory "/var/named";
 forwarders {150.217.1.32;};
 forward first;
 listen-on { mynet;};
 auth-nxdomain yes;
 notify no;
};
include "/etc/rndc.key";
controls {
 inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};
zone "." IN {
 type hint;
 file "root.hint";
};
zone "localhost" IN {
 type master;
 file "localhost.zone";
 allow-update { none; };
};
zone "0.0.127.in-addr.arpa" IN {
 type master;
 file "127.0.0.0.rev";
 allow-update { none; };
};
zone "sic.local" {
 type master;
 file "sic.local.hosts";
 allow-query {mynet;};
 allow-transfer {mynet;};
 allow-update { key rndckey; };
};
zone "0.100.10.in-addr.arpa" {
 type master;
 file "10.100.0.0.rev";
 allow-query {mynet;};
 allow-transfer {mynet;};
 allow-update { key rndckey; };
};
acl mynet {10.100.0.0/24; 127.0.0.1; };

#########################

default-lease-time 1296000;
max-lease-time 2592000;
option ntp-servers          10.100.0.159;
option domain-name          "sic.local";
option domain-name-servers  10.100.0.159;
option netbios-name-servers 10.100.0.159; # Wins
option netbios-node-type 8;               # Node type = Hybrid
ddns-updates on;                          # Dynamic DNS enabled
ddns-update-style interim;
include "/etc/rndc.key";
subnet 10.100.0.0 netmask 255.255.255.0 {
        range dynamic-bootp 10.100.0.240 10.100.0.245;
        option subnet-mask 255.255.255.0;
        option routers 10.100.0.1;
        ddns-domainname "sic.local";
        ddns-rev-domainname "in-addr.arpa";
 zone sic.local. {
             primary 10.100.0.159;
             key rndckey ; }
 zone 0.100.10.in-addr.arpa. {
             primary 10.100.0.159;
             key rndckey ; }
        }

#########################

01 srv-sic named[2281]: client 10.100.0.159#32773: updating zone
'0.100.10.in-addr.arpa/IN': deleting rrset at '245.0.100.10.in-addr.arpa'
PTR
02 srv-sic named[2281]: client 10.100.0.159#32773: updating zone
'0.100.10.in-addr.arpa/IN': adding an RR at '245.0.100.10.in-addr.arpa' PTR
03 srv-sic named[2281]: journal file 10.100.0.0.rev.jnl does not exist,
creating it
04 srv-sic named[2281]: 10.100.0.0.rev.jnl: create: permission denied
05 srv-sic named[2281]: client 10.100.0.159#32773: updating zone
'0.100.10.in-addr.arpa/IN': error: journal open failed: unexpected error
06 srv-sic dhcpd: unable to add reverse map from 245.0.100.10.in-addr.arpa
to NT-ANDREAB.sic.local: timed out
07 srv-sic dhcpd: DHCPREQUEST for 10.100.0.245 from 00:00:e2:5e:0f:aa
(NT-ANDREAB) via eth0
08 srv-sic dhcpd: DHCPACK on 10.100.0.245 to 00:00:e2:5e:0f:aa (NT-ANDREAB)
via eth0
09 srv-sic named[2281]: client 10.100.0.159#32773: updating zone
'0.100.10.in-addr.arpa/IN': deleting rrset at '245.0.100.10.in-addr.arpa'
PTR
10 srv-sic named[2281]: client 10.100.0.159#32773: updating zone
'0.100.10.in-addr.arpa/IN': adding an RR at '245.0.100.10.in-addr.arpa' PTR
11 srv-sic named[2281]: journal file 10.100.0.0.rev.jnl does not exist,
creating it
12 srv-sic named[2281]: 10.100.0.0.rev.jnl: create: permission denied
13 srv-sic named[2281]: client 10.100.0.159#32773: updating zone
'0.100.10.in-addr.arpa/IN': error: journal open failed: unexpected error
14 srv-sic dhcpd: unable to add reverse map from 245.0.100.10.in-addr.arpa
to NT-ANDREAB.sic.local: timed out
15 srv-sic dhcpd: DHCPREQUEST for 10.100.0.245 from 00:00:e2:5e:0f:aa
(NT-ANDREAB) via eth0
16 srv-sic dhcpd: DHCPACK on 10.100.0.245 to 00:00:e2:5e:0f:aa (NT-ANDREAB)
via eth0
17 srv-sic named[2281]: client 10.100.0.245#1033: updating zone
'sic.local/IN': update unsuccessful: NT-ANDREAB.sic.local/A: 'RRset exists
(value dependent)' prerequisite not satisfied (NXRRSET)
18 srv-sic named[2281]: client 10.100.0.245#1036: update 'sic.local/IN'
denied
19 srv-sic named[2281]: client 10.100.0.245#1041: update
'0.100.10.in-addr.arpa/IN' denied

#########################




More information about the pluto-help mailing list