Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 64307 - dhcpcd does not support draft-ietf-dhc-fqdn-option, aka "option 81", for connecting in particular to Microsoft DHCP/DNS networks
Summary: dhcpcd does not support draft-ietf-dhc-fqdn-option, aka "option 81", for conn...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-16 12:58 UTC by Kevin F. Quinn (RETIRED)
Modified: 2005-06-01 08:27 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
(compressed) patch to add option 81 functionality to dhcpcd (dhcpcd-1.3.22_p4-optionFQDN.diff.bz2,16.67 KB, application/octet-stream)
2004-09-16 13:04 UTC, Kevin F. Quinn (RETIRED)
Details
patch to dhcpcd-1.3.22_p4-r5.ebuild (ebuild.diff,928 bytes, patch)
2004-09-16 13:05 UTC, Kevin F. Quinn (RETIRED)
Details | Diff
patch to dhcpcd-1.3.22_p4-r5.ebuild (ebuild.diff,739 bytes, patch)
2004-09-16 13:33 UTC, Kevin F. Quinn (RETIRED)
Details | Diff
Patch for cvs version 1.11 of the -r5 ebuild (dhcpcd-1.3.22_p4-r5.ebuild.patch,1.10 KB, patch)
2004-10-26 02:49 UTC, Kevin F. Quinn (RETIRED)
Details | Diff
(compressed) patch against -r5 as of ebuild version 1.11 (dhcpcd-1.3.22_p4-r5-optionFQDN.diff.bz2,3.94 KB, application/octet-stream)
2004-10-26 02:53 UTC, Kevin F. Quinn (RETIRED)
Details
Same as #42607, uncompressed for easy viewing in bugzilla (dhcpcd-1.3.22_p4-r5-optionFQDN.diff,18.01 KB, patch)
2004-10-26 02:57 UTC, Kevin F. Quinn (RETIRED)
Details | Diff
(compressed) patch for r5 and r7 as of 27/11/2004 (dhcpcd-1.3.22_p4-optionFQDN.diff.bz2,3.95 KB, application/octet-stream)
2004-11-27 05:09 UTC, Kevin F. Quinn (RETIRED)
Details
Same as #44820, uncompressed for easy viewing in bugzilla (dhcpcd-1.3.22_p4-optionFQDN.diff,16.95 KB, patch)
2004-11-27 05:10 UTC, Kevin F. Quinn (RETIRED)
Details | Diff
Patch for -r5 ebuild (dhcpcd-1.3.22_p4-r5.ebuild.patch,1.10 KB, patch)
2004-11-27 05:11 UTC, Kevin F. Quinn (RETIRED)
Details | Diff
Patch for -r7 ebuild (dhcpcd-1.3.22_p4-r7.ebuild.patch,1.11 KB, patch)
2004-11-27 05:12 UTC, Kevin F. Quinn (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin F. Quinn (RETIRED) gentoo-dev 2004-09-16 12:58:17 UTC
It's common on networks using Microsoft DHCP and DNS servers, that the DNS updates are performed by the DHCP server via a draft option to the dhc specification.  Microsoft refer to it as "option 81", the IETF refer to it as draft-ietf-dhc-fqdn-option; draft at time of writing can be found at: http://www.ietf.org/internet-drafts/draft-ietf-dhc-fqdn-option-07.txt
I have a patch to add support for it, which I'll attach to this bug once it's entered.

Reproducible: Always
Steps to Reproduce:
1.Connect by DHCP to a network using the option (MS)
2.Check DNS
3.

Actual Results:  
DNS has no A or PTR record of the IP address allocated

Expected Results:  
DNS should be magically updated by the DHCP server
Comment 1 Kevin F. Quinn (RETIRED) gentoo-dev 2004-09-16 13:04:27 UTC
Created attachment 39712 [details]
(compressed) patch to add option 81 functionality to dhcpcd

The attached patch adds DHC-FQDN ("option 81") support to dhcpcd-1.3.22_p4;
this is against the -r5 ebuild.  I have been using it since July without any
problems - forum topic http://forums.gentoo.org/viewtopic.php?p=1542398 is
where I started.
The code changes are surrounded by '#ifdef DRAFT_OPTION_FQDN" for development,
and I hacked the ebuild to define this if USE="dhc-fqdn" is specified (ebuild
diff to follow)
Comment 2 Kevin F. Quinn (RETIRED) gentoo-dev 2004-09-16 13:05:45 UTC
Created attachment 39713 [details, diff]
patch to dhcpcd-1.3.22_p4-r5.ebuild
Comment 3 Kevin F. Quinn (RETIRED) gentoo-dev 2004-09-16 13:33:50 UTC
Created attachment 39715 [details, diff]
patch to dhcpcd-1.3.22_p4-r5.ebuild

*ahem*
this ebuild patch works - I don't understand why it didn't before, but hey.
Comment 4 Rick Jenkins 2004-09-21 09:03:33 UTC
My vote is to commit this ASAP. I suddenly needed it when my ADSL ISP quietly "upgraded", so that I started to lose my connection every night when the lease expired.
This fixed the problem, and seems to have caused no others.

Thanks, Mr. Quinn, for a good job well documented. 
Comment 5 Kevin F. Quinn (RETIRED) gentoo-dev 2004-10-26 02:49:51 UTC
Created attachment 42606 [details, diff]
Patch for cvs version 1.11 of the -r5 ebuild

Also needs -r5 of the main patch, as well.
Comment 6 Kevin F. Quinn (RETIRED) gentoo-dev 2004-10-26 02:53:10 UTC
Created attachment 42607 [details]
(compressed) patch against -r5 as of ebuild version 1.11

Install in /usr/portage/distfiles, for use with ebuild patch #42606
Comment 7 Kevin F. Quinn (RETIRED) gentoo-dev 2004-10-26 02:57:14 UTC
Created attachment 42611 [details, diff]
Same as #42607, uncompressed for easy viewing in bugzilla
Comment 8 Kevin F. Quinn (RETIRED) gentoo-dev 2004-11-01 09:26:04 UTC
Reported issues:

'-F' not listed in the usage line, whilst present in the man page.  Brief look at latest patch indicates an omission in the patch.

Option 81 not reported in the server response.  Check again the client request; see forum thread  http://forums.gentoo.org/viewtopic.php?p=1714365
Comment 9 Kevin F. Quinn (RETIRED) gentoo-dev 2004-11-27 05:09:23 UTC
Created attachment 44820 [details]
(compressed) patch for r5 and r7 as of 27/11/2004

Latest compressed patchfile, for copying to /usr/portage/distfiles.
Fixes spurious text in usage text (syntax).
Reorders request options so that they appear in ascending numerical order,
which shouldn't be necessary but may please fussy servers.
Comment 10 Kevin F. Quinn (RETIRED) gentoo-dev 2004-11-27 05:10:51 UTC
Created attachment 44821 [details, diff]
Same as #44820, uncompressed for easy viewing in bugzilla
Comment 11 Kevin F. Quinn (RETIRED) gentoo-dev 2004-11-27 05:11:56 UTC
Created attachment 44822 [details, diff]
Patch for -r5 ebuild
Comment 12 Kevin F. Quinn (RETIRED) gentoo-dev 2004-11-27 05:12:38 UTC
Created attachment 44823 [details, diff]
Patch for -r7 ebuild
Comment 13 Steve Egbert 2005-02-10 20:44:57 UTC
This fix  ROCKS!  

How can we help push this fix along????
Comment 14 Kevin F. Quinn (RETIRED) gentoo-dev 2005-02-11 00:48:12 UTC
base-system people - if you have no objections, I'll try pushing this additional dhc-fqdn functionality for dhcpcd upstream.
Comment 15 Roy Marples (RETIRED) gentoo-dev 2005-06-01 08:27:40 UTC
Patch applied in -r8.
Thanks Kevin!