LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 12-07-2006, 07:10 PM   #1
entropy
LQ Newbie
 
Registered: Dec 2006
Distribution: Kubuntu
Posts: 4

Rep: Reputation: 0
Dynamic update DNS through DHCP? Problems configuring in Ubuntu 6.10


Hi,

I know I'm new at this forum but I hope I can get some help, because I've been learning and experimenting with this for a while and I haven't found the culprit. I've researched several sites and manuals, and although many looked promising, none solved my issue, so here I am...

I'm trying to get my Linux and Windows clients to update their DNS records via DHCP. Both bind9 and dhcp3 are working properly, but updates aren't working. Here are my config files and I hope you can help me out (I omit stuff I don't think is relevant):

named.conf.local (merged):

include "/etc/bind/rndc.key";
zone "oc.hemac.com.mx" {
type master;
file "/etc/bind/oc.hemac.com.mx.hosts";
allow-update { key "rndc-key"; };
};
zone "168.192.in-addr.arpa" {
type master;
file "/etc/bind/192.168.rev";
allow-update { key "rndc-key"; };
};

dhcpd.conf:
authoritative;
include "/etc/dhcp3/rndc.key"; << this file is a copy of bind's key
subnet 192.168.0.0 netmask 255.255.0.0 {
option domain-name-servers 192.168.1.1;
option domain-name "oc.hemac.com.mx.";
authoritative;
deny client-updates;
allow unknown-clients;
ddns-updates on;
ddns-update-style interim;
ddns-rev-domainname "168.192.in-addr.arpa.";
ddns-domainname "oc.hemac.com.mx.";
ignore client-updates;
zone 168.192.in-addr.arpa. {
primary 127.0.0.1;
key "rndc-key";
}
}
zone oc.hemac.com.mx. {
primary 127.0.0.1;
key rndc-key;
}

Well, I think that's all.

There are no errors on the logs, and the clients do get an IP address from DHCP, but no records are created on the DNS server.

Thanks in advance!
 
Old 12-08-2006, 08:41 PM   #2
squisher
Member
 
Registered: Apr 2005
Location: Abq, NM
Distribution: Debian, Ubuntu
Posts: 40

Rep: Reputation: 15
I've never used this, but a quick look at the dhcpd.conf manpage shows that you can enable logging for the dns updates. Have you tried that? (search for 'logging' in the manpage). That might give you the information that you need, because otherwise your setup seems to be right out of the manpage.
 
Old 12-11-2006, 05:56 PM   #3
entropy
LQ Newbie
 
Registered: Dec 2006
Distribution: Kubuntu
Posts: 4

Original Poster
Rep: Reputation: 0
Actually, logging has to be enabled for bind, not for dhcp -- took me a while to figure that out

I've enabled it, but it throws no hints at all...

As an aside, I've tried manually doing an nsupdate, and it sorta works, but I can only resolve the host to the IP, not the other way around. Maybe it's because I don't know how to use nsupdate, but this is what I tried:

# nsupdate -y my-key:somekey
update add hostname 86400 A 192.168.0.123
send

And after that I can do an nslookup for the hostname, but not for the IP address...

If anyone else has a hint on what the issue could be, by all means, help a clueless soul out
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Dynamic update of linux clients via DHCP/DNS (Windows currently works) tnine9 Linux - Networking 11 05-10-2007 05:18 AM
LXer: Configuring Dynamic DNS & DHCP on Debian Stable LXer Syndicated Linux News 0 02-13-2006 10:16 AM
LXer: Configuring Dynamic DNS & DHCP on Debian Stable LXer Syndicated Linux News 0 02-02-2006 03:16 PM
How to Update dynamic DNS with DHCP router? longblock454 Linux - Networking 4 05-18-2004 07:21 AM
Dynamic DNS for DHCP neovox Linux - Networking 0 03-23-2001 04:56 PM


All times are GMT -5. The time now is 12:37 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration