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
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)
Created attachment 39713 [details, diff] patch to dhcpcd-1.3.22_p4-r5.ebuild
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.
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.
Created attachment 42606 [details, diff] Patch for cvs version 1.11 of the -r5 ebuild Also needs -r5 of the main patch, as well.
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
Created attachment 42611 [details, diff] Same as #42607, uncompressed for easy viewing in bugzilla
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
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.
Created attachment 44821 [details, diff] Same as #44820, uncompressed for easy viewing in bugzilla
Created attachment 44822 [details, diff] Patch for -r5 ebuild
Created attachment 44823 [details, diff] Patch for -r7 ebuild
This fix ROCKS! How can we help push this fix along????
base-system people - if you have no objections, I'll try pushing this additional dhc-fqdn functionality for dhcpcd upstream.
Patch applied in -r8. Thanks Kevin!