Networking Forums

Networking Forums > Computer Networking > Linux Networking > Update of DNS via DHCP

Reply
Thread Tools Display Modes

Update of DNS via DHCP

 
 
Francesco
Guest
Posts: n/a

 
      08-05-2003, 08:07 AM
Hi all,
I'm trying to set up a small network where IP Addresses are
provided by a DHCP server and DNS entries are updated
as DHCP give leases for the addresses.
I have set-up the basic configuration....DHCP actually give IP
addresses to the host which are connected but the DNS entries
aren't refreshed.
When I query the DNS for that host I only get the address that is
in the static file (/var/named/mydomain.it)

This is a piece of the core config files:
Hope I can get help !
(By the way I'm using Mandrake 9.0 distribution)
Thanks a lot in advance
Francesco

/etc/named.conf
...............
zone "mydomain.it" {
type master;
file "mydomain.it.db";
allow-update { key DHCP_UPDATER; } ;
};

zone "59.12.10.in-addr.arpa" {
type master;
file "59.12.10.db";
allow-update { key DHCP_UPDATER; } ;
};





/etc/dhcpd.conf

ddns-update-style interim;
subnet 10.12.59.0 netmask 255.255.255.0 {

option routers 10.12.59.61;
option subnet-mask 255.255.255.0;

option domain-name "mydomain.it";
option nis-domain "mydomain.it";

range dynamic-bootp 10.12.59.2 10.12.59.200;
default-lease-time 21600;
max-lease-time 43200;
}

key DHCP_UPDATER {
algorithm hmac-md5;
secret
"c3Ryb25nIGVub3VnaCBmb3IgYSBtYW4gYnV0IG1hZGUgZm9yI GEgd29tYW4K";
}

zone mydomain.it. {
primary 127.0.0.1;
key DHCP_UPDATER;
}

zone 59.12.10.in-addr.arpa. {
key DHCP_UPDATER;
}





 
Reply With Quote
 
 
 
 
Massimiliano Adamo
Guest
Posts: n/a

 
      08-05-2003, 11:12 AM
On Tue, 05 Aug 2003 12:06:32 +0200, Massimiliano Adamo wrote:


fai cosi':
ferma il servizio ed esegui da riga di comando.
named -g -f -d 9 -u named
prova eventualmente a diminuire il 9 ....

MASSIMILIANO
 
Reply With Quote
 
maxx
Guest
Posts: n/a

 
      08-05-2003, 11:13 AM
On Tue, 05 Aug 2003 12:06:32 +0200, Massimiliano Adamo wrote:

Hi Massimiliano,

could you please try to keep your answer in English? That way, not just
Italian readers can benefit from your answers.

Ciao,
maxx

--
Remove underscores from my e-mail address when sending an e-mail.

 
Reply With Quote
 
Francesco
Guest
Posts: n/a

 
      08-06-2003, 07:33 AM
> > i suggest
> >
> > 1) to debug stop service and trying that
> >
> > named -g -f -d (1-9) -u named
> >
> > 2) moreover, he must look if journal file *.jnl is created and if there
> > are no permission problem. If "named" service is run by "named" user
> > directories be owned from named user and have apropriate permissions.


Hello,
well I checked the permission of files - they were created with root user.
Anyway after "chown" and "chgroup" of all files to named, still I cannot get
zone address refreshed by dhcpd.
I include the debug of named

I can see that there are lines like these:

"Aug 05 22:41:54.381 no journal file, but that's OK
Aug 05 22:41:54.381 zone 59.12.10.in-addr.arpa/IN: journal rollforward
completed
successfully: no journal"

what does it mean "no journal"?

At the moment I tried with only on host connecting to DHCPD. The host "acer"
is registered on
DNS zones as 10.12.59.60 but DHCPD leases 10.12.59.200.
As a matter of fact if I query DNS for 10.12.59.200 I get nothing as result
(it doesn't get updated)

snippet:

Aug 05 22:32:22.634 client 10.12.59.61#32774: UDP request
Aug 05 22:32:22.635 client 10.12.59.61#32774: using view '_default'
Aug 05 22:32:22.635 client 10.12.59.61#32774: request is not signed
Aug 05 22:32:22.635 client 10.12.59.61#32774: recursion available:
approved
Aug 05 22:32:22.635 client 10.12.59.61#32774: query
Aug 05 22:32:22.635 client 10.12.59.61#32774: v6 synthesis denied
Aug 05 22:32:22.635 client 10.12.59.61#32774: query
'200.59.12.10.in-addr.arpa/I
N' approved
Aug 05 22:32:22.635 client 10.12.59.61#32774: send
Aug 05 22:32:22.635 client 10.12.59.61#32774: sendto
Aug 05 22:32:22.635 client 10.12.59.61#32774: senddone
Aug 05 22:32:22.635 client 10.12.59.61#32774: next
Aug 05 22:32:22.635 client 10.12.59.61#32774: endrequest


This is the full debug:
Aug 05 22:29:07.247 set maximum stack size to 4294967295: success
Aug 05 22:29:07.247 set maximum data size to 4294967295: success
Aug 05 22:29:07.247 set maximum core size to 4294967295: success
Aug 05 22:29:07.247 set maximum open files to 1024: success
Aug 05 22:29:07.262 no IPv6 interfaces found
Aug 05 22:29:07.263 listening on IPv4 interface lo, 127.0.0.1#53
Aug 05 22:29:07.263 clientmgr @0x817d6e0: create
Aug 05 22:29:07.264 clientmgr @0x817d6e0: createclients
Aug 05 22:29:07.264 clientmgr @0x817d6e0: create new
Aug 05 22:29:07.264 client @0x8190800: create
Aug 05 22:29:07.264 binding TCP socket: address in use
Aug 05 22:29:07.264 listening on IPv4 interface eth0, 10.12.59.61#53
Aug 05 22:29:07.264 clientmgr @0x81922d8: create
Aug 05 22:29:07.264 clientmgr @0x81922d8: createclients
Aug 05 22:29:07.264 clientmgr @0x81922d8: create new
Aug 05 22:29:07.264 client @0x8192658: create
Aug 05 22:29:07.264 binding TCP socket: address in use
Aug 05 22:29:07.267 res 0x81982b0: create
Aug 05 22:29:07.267 Cleaning interval for adb: 8 buckets every 30 seconds,
1009
buckets in system, 3600 cl.interval
Aug 05 22:29:07.267 dns_requestmgr_create
Aug 05 22:29:07.267 dns_requestmgr_create: 0x81997b0
Aug 05 22:29:07.267 dns_requestmgr_whenshutdown
Aug 05 22:29:07.268 replacing zone database
Aug 05 22:29:07.268 replacing zone database
Aug 05 22:29:07.268 processing control channel 127.0.0.1#953
Aug 05 22:29:07.268 /etc/named.conf:13: couldn't add command channel
127.0.0.1#9
53: address in use
Aug 05 22:29:07.268 ignoring config file logging statement due to -g option
Aug 05 22:29:07.269 load_configuration: success
Aug 05 22:29:07.269 zone 59.12.10.in-addr.arpa/IN: starting load
Aug 05 22:29:07.270 zone 59.12.10.in-addr.arpa/IN: number of nodes in
database:
3
Aug 05 22:29:07.270 zone 59.12.10.in-addr.arpa/IN: loaded
Aug 05 22:29:07.270 no journal file, but that's OK
Aug 05 22:29:07.270 zone 59.12.10.in-addr.arpa/IN: journal rollforward
completed
successfully: no journal
Aug 05 22:29:07.270 zone 59.12.10.in-addr.arpa/IN: loaded serial 199609206
Aug 05 22:29:07.270 zone 0.0.127.in-addr.arpa/IN: starting load
Aug 05 22:29:07.271 zone 0.0.127.in-addr.arpa/IN: number of nodes in
database: 2
Aug 05 22:29:07.271 zone 0.0.127.in-addr.arpa/IN: loaded
Aug 05 22:29:07.271 no journal file, but that's OK
Aug 05 22:29:07.271 zone 0.0.127.in-addr.arpa/IN: journal rollforward
completed
successfully: no journal
Aug 05 22:29:07.271 zone 0.0.127.in-addr.arpa/IN: loaded serial 1997022700
Aug 05 22:29:07.271 zone mydomain.it/IN: starting load
Aug 05 22:29:07.272 zone mydomain.it/IN: number of nodes in database: 4
Aug 05 22:29:07.272 zone mydomain.it/IN: loaded
Aug 05 22:29:07.272 no journal file, but that's OK
Aug 05 22:29:07.272 zone mydomain.it/IN: journal rollforward completed
successfull
y: no journal
Aug 05 22:29:07.272 zone mydomain.it/IN: loaded serial 199609206
Aug 05 22:29:07.272 dns_zone_maintenance: zone 0.0.127.in-addr.arpa/IN:
enter
Aug 05 22:29:07.272 dns_zone_maintenance: zone mydomain.it/IN: enter
Aug 05 22:29:07.272 dns_zone_maintenance: zone 59.12.10.in-addr.arpa/IN:
enter
Aug 05 22:29:07.273 dns_zone_maintenance: zone version.bind/CH: enter
Aug 05 22:29:07.273 dns_zone_maintenance: zone authors.bind/CH: enter
Aug 05 22:29:07.273 running
Aug 05 22:29:07.273 client @0x8190800: udprecv
Aug 05 22:29:07.273 client @0x8192658: udprecv
Aug 05 22:29:07.273 zone_timer: zone 0.0.127.in-addr.arpa/IN: enter
Aug 05 22:29:07.273 zone_maintenance: zone 0.0.127.in-addr.arpa/IN: enter
Aug 05 22:29:07.273 zone_timer: zone mydomain.it/IN: enter
Aug 05 22:29:07.273 zone_maintenance: zone mydomain.it/IN: enter
Aug 05 22:29:07.273 zone_timer: zone 59.12.10.in-addr.arpa/IN: enter
Aug 05 22:29:07.273 zone_maintenance: zone 59.12.10.in-addr.arpa/IN: enter
Aug 05 22:29:07.273 zone_timer: zone version.bind/CH: enter
Aug 05 22:29:07.273 zone_maintenance: zone version.bind/CH: enter
Aug 05 22:29:07.273 zone_timer: zone authors.bind/CH: enter
Aug 05 22:29:07.273 zone_maintenance: zone authors.bind/CH: enter
Aug 05 22:29:57.279 client 10.12.59.61#32774: UDP request
Aug 05 22:29:57.279 client 10.12.59.61#32774: using view '_default'
Aug 05 22:29:57.279 client 10.12.59.61#32774: request is not signed
Aug 05 22:29:57.279 client 10.12.59.61#32774: recursion available:
approved
Aug 05 22:29:57.279 client 10.12.59.61#32774: query
Aug 05 22:29:57.279 client 10.12.59.61#32774: query 'acer.mydomain.it/IN'
approved
Aug 05 22:29:57.279 client 10.12.59.61#32774: send
Aug 05 22:29:57.283 client 10.12.59.61#32774: sendto
Aug 05 22:29:57.284 client 10.12.59.61#32774: senddone
Aug 05 22:29:57.284 client 10.12.59.61#32774: next
Aug 05 22:29:57.284 client 10.12.59.61#32774: endrequest
Aug 05 22:29:57.284 client @0x8192658: udprecv
Aug 05 22:32:22.634 client 10.12.59.61#32774: UDP request
Aug 05 22:32:22.635 client 10.12.59.61#32774: using view '_default'
Aug 05 22:32:22.635 client 10.12.59.61#32774: request is not signed
Aug 05 22:32:22.635 client 10.12.59.61#32774: recursion available:
approved
Aug 05 22:32:22.635 client 10.12.59.61#32774: query
Aug 05 22:32:22.635 client 10.12.59.61#32774: v6 synthesis denied
Aug 05 22:32:22.635 client 10.12.59.61#32774: query
'200.59.12.10.in-addr.arpa/I
N' approved
Aug 05 22:32:22.635 client 10.12.59.61#32774: send
Aug 05 22:32:22.635 client 10.12.59.61#32774: sendto
Aug 05 22:32:22.635 client 10.12.59.61#32774: senddone
Aug 05 22:32:22.635 client 10.12.59.61#32774: next
Aug 05 22:32:22.635 client 10.12.59.61#32774: endrequest
Aug 05 22:32:22.635 client @0x8192658: udprecv
Aug 05 22:32:44.405 client 10.12.59.61#32774: UDP request
Aug 05 22:32:44.406 client 10.12.59.61#32774: using view '_default'
Aug 05 22:32:44.406 client 10.12.59.61#32774: request is not signed
Aug 05 22:32:44.406 client 10.12.59.61#32774: recursion available:
approved
Aug 05 22:32:44.406 client 10.12.59.61#32774: query
Aug 05 22:32:44.406 client 10.12.59.61#32774: v6 synthesis denied
Aug 05 22:32:44.406 client 10.12.59.61#32774: query
'61.59.12.10.in-addr.arpa/IN
' approved
Aug 05 22:32:44.406 client 10.12.59.61#32774: send
Aug 05 22:32:44.406 client 10.12.59.61#32774: sendto
Aug 05 22:32:44.406 client 10.12.59.61#32774: senddone
Aug 05 22:32:44.406 client 10.12.59.61#32774: next
Aug 05 22:32:44.406 client 10.12.59.61#32774: endrequest
Aug 05 22:32:44.406 client @0x8192658: udprecv
Aug 05 22:37:31.956 client 10.12.59.61#32774: UDP request
Aug 05 22:37:31.956 client 10.12.59.61#32774: using view '_default'
Aug 05 22:37:31.956 client 10.12.59.61#32774: request is not signed
Aug 05 22:37:31.956 client 10.12.59.61#32774: recursion available:
approved
Aug 05 22:37:31.956 client 10.12.59.61#32774: query
Aug 05 22:37:31.956 client 10.12.59.61#32774: v6 synthesis denied
Aug 05 22:37:31.956 client 10.12.59.61#32774: query
'200.59.12.10.in-addr.arpa/I
N' approved
Aug 05 22:37:31.956 client 10.12.59.61#32774: send
Aug 05 22:37:31.956 client 10.12.59.61#32774: sendto
Aug 05 22:37:31.956 client 10.12.59.61#32774: senddone
Aug 05 22:37:31.956 client 10.12.59.61#32774: next
Aug 05 22:37:31.956 client 10.12.59.61#32774: endrequest
Aug 05 22:37:31.956 client @0x8192658: udprecv
Aug 05 22:37:38.611 client 10.12.59.61#32774: UDP request
Aug 05 22:37:38.611 client 10.12.59.61#32774: using view '_default'
Aug 05 22:37:38.611 client 10.12.59.61#32774: request is not signed
Aug 05 22:37:38.611 client 10.12.59.61#32774: recursion available:
approved
Aug 05 22:37:38.611 client 10.12.59.61#32774: query
Aug 05 22:37:38.611 client 10.12.59.61#32774: v6 synthesis denied
Aug 05 22:37:38.611 client 10.12.59.61#32774: query
'200.59.12.10.in-addr.arpa/I
N' approved
Aug 05 22:37:38.611 client 10.12.59.61#32774: send
Aug 05 22:37:38.611 client 10.12.59.61#32774: sendto
Aug 05 22:37:38.611 client 10.12.59.61#32774: senddone
Aug 05 22:37:38.611 client 10.12.59.61#32774: next
Aug 05 22:37:38.611 client 10.12.59.61#32774: endrequest
Aug 05 22:37:38.611 client @0x8192658: udprecv
Aug 05 22:38:32.049 client 10.12.59.61#32774: UDP request
Aug 05 22:38:32.049 client 10.12.59.61#32774: using view '_default'
Aug 05 22:38:32.049 client 10.12.59.61#32774: request is not signed
Aug 05 22:38:32.049 client 10.12.59.61#32774: recursion available:
approved
Aug 05 22:38:32.049 client 10.12.59.61#32774: query
Aug 05 22:38:32.049 client 10.12.59.61#32774: query 'acer.mydomain.it/IN'
approved
Aug 05 22:38:32.049 client 10.12.59.61#32774: send
Aug 05 22:38:32.049 client 10.12.59.61#32774: sendto
Aug 05 22:38:32.049 client 10.12.59.61#32774: senddone
Aug 05 22:38:32.049 client 10.12.59.61#32774: next
Aug 05 22:38:32.049 client 10.12.59.61#32774: endrequest
Aug 05 22:38:32.049 client @0x8192658: udprecv
Aug 05 22:39:33.870 client 10.12.59.61#32774: UDP request
Aug 05 22:39:33.870 client 10.12.59.61#32774: using view '_default'
Aug 05 22:39:33.870 client 10.12.59.61#32774: request is not signed
Aug 05 22:39:33.870 client 10.12.59.61#32774: recursion available:
approved
Aug 05 22:39:33.870 client 10.12.59.61#32774: query
Aug 05 22:39:33.870 client 10.12.59.61#32774: v6 synthesis denied
Aug 05 22:39:33.870 client 10.12.59.61#32774: query
'200.59.12.10.in-addr.arpa/I
N' approved
Aug 05 22:39:33.870 client 10.12.59.61#32774: send
Aug 05 22:39:33.871 client 10.12.59.61#32774: sendto
Aug 05 22:39:33.871 client 10.12.59.61#32774: senddone
Aug 05 22:39:33.871 client 10.12.59.61#32774: next
Aug 05 22:39:33.871 client 10.12.59.61#32774: endrequest
Aug 05 22:39:33.871 client @0x8192658: udprecv
Aug 05 22:39:43.183 client 10.12.59.61#32774: UDP request
Aug 05 22:39:43.184 client 10.12.59.61#32774: using view '_default'
Aug 05 22:39:43.184 client 10.12.59.61#32774: request is not signed
Aug 05 22:39:43.184 client 10.12.59.61#32774: recursion available:
approved
Aug 05 22:39:43.184 client 10.12.59.61#32774: query
Aug 05 22:39:43.184 client 10.12.59.61#32774: v6 synthesis denied
Aug 05 22:39:43.184 client 10.12.59.61#32774: query
'200.59.12.10.in-addr.arpa/I
N' approved
Aug 05 22:39:43.184 client 10.12.59.61#32774: send
Aug 05 22:39:43.184 client 10.12.59.61#32774: sendto
Aug 05 22:39:43.184 client 10.12.59.61#32774: senddone
Aug 05 22:39:43.184 client 10.12.59.61#32774: next
Aug 05 22:39:43.184 client 10.12.59.61#32774: endrequest
Aug 05 22:39:43.184 client @0x8192658: udprecv
Aug 05 22:41:24.362 shutting down

Anything else I could try ?
Thanks a lot
Francesco


"Francesco" <(E-Mail Removed)> ha scritto nel messaggio
news:t7QXa.227312$(E-Mail Removed).. .
> Thanks for your answer. I'll take a look and let you know if it works.
> regards
> Francesco
>
> "Massimiliano Adamo" <(E-Mail Removed)> ha scritto
> nel messaggio news(E-Mail Removed) t...
> > On Tue, 05 Aug 2003 12:13:03 +0200, maxx wrote:
> >
> > > On Tue, 05 Aug 2003 12:06:32 +0200, Massimiliano Adamo wrote:
> > >
> > > Hi Massimiliano,
> > >
> > > could you please try to keep your answer in English? That way, not

just
> > > Italian readers can benefit from your answers.
> > >
> > > Ciao,
> > > maxx

> >
> > i suggest
> >
> > 1) to debug stop service and trying that
> >
> > named -g -f -d (1-9) -u named
> >
> > 2) moreover, he must look if journal file *.jnl is created and if there
> > are no permission problem. If "named" service is run by "named" user
> > directories be owned from named user and have apropriate permissions.
> >
> > Ciao.
> > Massimiliano.

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
DHCP information update UnderCoverGuy Windows Networking 3 03-29-2008 11:10 AM
dns update using dhcp Mario Setini Linux Networking 0 01-12-2006 10:18 AM
DNS or DHCP update problem Sensay Windows Networking 0 11-21-2005 02:01 PM
Redhat 9.0 dhcp client & windows 2003 dhcp server: dynamic dns update Mads Ravn Linux Networking 0 06-29-2004 06:27 PM
DHCP Server does not update DNS Andrew Windows Networking 3 04-24-2004 01:02 AM



1 2 3 4 5 6 7 8 9 10 11