LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 05-27-2002, 12:03 PM   #1
dguy
Member
 
Registered: Dec 2001
Location: Beckwith Township, Ontario, Canada
Distribution: Slackware 14.0, Slackware-64 14.1
Posts: 116

Rep: Reputation: 16
Question DHCP/DDNS Troubleshooting


I'm having difficulty troubleshooting some DHCP/DDNS interactions on a LAN...

A Win98 SE system boots, requests an IP, and the DHCP server grants a lease. Immediately thereafter the DHCP server sends an update to the DNS, and an 'A' record is created for the recently granted IP. So far, so good.

An OS/2 v4 system boots, requests an IP, and the DHCP server grants a lease. However this time no update is sent to the DNS from the DHCP server.

Any suggestions as to where to start looking?

-d.
 
Old 05-27-2002, 07:12 PM   #2
finegan
Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 57
Aside from /var/log/syslog, and unfortunately dhcpd doesn't have an option to crank up the verbosity of logging, but that's where the request and lease hand-off information is going to be. Its probably a matter of "how" the client asks for a lease. For instance, the windows default may be that it asks for a hostname and so dhcpd creates a dns record for it, but the OS/2 machine doesn't handle it like that.

Cheers,

Finegan
 
Old 06-06-2002, 09:13 AM   #3
dguy
Member
 
Registered: Dec 2001
Location: Beckwith Township, Ontario, Canada
Distribution: Slackware 14.0, Slackware-64 14.1
Posts: 116

Original Poster
Rep: Reputation: 16
I think you've hit the nail on the head... I didn't roll far enough back through the syslog this morning to find the lease requests for each client, but a quick glance at dhdpd.leases shows no hostname for the OS/2 system (the first entry below).

lease 192.168.42.30 {
starts 4 2002/06/06 07:03:38;
ends 4 2002/06/06 19:03:38;
binding state active;
next binding state free;
hardware ethernet 00:60:67:24:0c:a8;
uid "\001\000`g$\014\250";
}
lease 192.168.42.31 {
starts 4 2002/06/06 10:29:52;
ends 4 2002/06/06 22:29:52;
binding state active;
next binding state free;
hardware ethernet 00:40:f4:42:38:df;
uid "\001\000@\364B8\337";
set ddns-rev-name = "31.42.168.192.in-addr.arpa.";
set ddns-txt = "31923ef723277ca84d26a475c2e7d3b173";
set ddns-fwd-name = "Stormie.miliways";
client-hostname "Stormie";
}

I still have to check the syslog to verify the actual behavior, but I have a suspicion that the OS/2 system may not include its hosname in the DHCP request...

Assuming that that is the case, IIRC one can force a hostname upon a dhcp client via the use-host-decl-names keyword?
 
Old 06-06-2002, 02:59 PM   #4
finegan
Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 57
I just read up on the man page for dhcpd.conf as I've never had to plunger force feed a machine a hostname either, but yeah that seems to be the way to do it, especially if your handing out fixed IPs based on card MAC addresses.

Post back on how it works.

Cheers,

Finegan
 
Old 06-08-2002, 07:04 PM   #5
dguy
Member
 
Registered: Dec 2001
Location: Beckwith Township, Ontario, Canada
Distribution: Slackware 14.0, Slackware-64 14.1
Posts: 116

Original Poster
Rep: Reputation: 16
Thumbs down

No luck there I'm afraid...

While use-host-decl-names can indeed be used to force a hostname upon a client, doing so does not trigger a DDNS update.

I haven't been able to find any documentation on it, but I suspect that dhcp 3 requires that the client system identify itself with a hostname in order to trigger the DDNS update.

The OS/2 system *does* have a DDNS client, however it appears to use a protocol proprietary to IBM and/or OS/2. Attempts to have the OS/2 system's DDNS client send an update return an error stating "the DDNS server did not understand the request."

There is however a tool on the OS/2 system called "nsupdate," which appears to be a command line tool for manually updating resource records. I have no idea if bind will accept requests made by nsupdate; I haven't had the opportunity to test it yet.

I'm going to try two routes... It *may* be possible to configure the DDNS client program to send updates in a format which bind will accept. If not, I'm going to have a go at writing a script on the OS/2 system which will use nsupdate to do the work.

This is proving to be an interesting exercise...
 
Old 06-09-2002, 03:27 AM   #6
finegan
Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 57
The other route, slightly uglier, is to see if any of the modern dhcp client daemons will compile and run against an OS/2 machine, but really I don't know dink about that OS, so maybe I'm blowing smoke.

Either way, luck,

Finegan
 
  


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
NSlookup fails, DDNS & DHCP HellSpawn Linux - Networking 7 04-06-2007 08:50 AM
DDNS Bind 9.0 / DHCP - mule Linux - Networking 2 01-06-2006 11:55 PM
DHCP and DDNS - not working ccigmaian Linux - Networking 3 12-05-2005 11:19 PM
DHCP and DDNS garullon245136 Linux - Networking 1 06-20-2005 08:29 PM
DHCP/DDNS Doesn't Work with Netgear Devices MQMan Linux - Networking 1 03-07-2004 11:25 AM


All times are GMT -5. The time now is 09:07 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