[Bug 351002] New: dhcpcd: host name extension includes trailing '\0'.
https://bugzilla.novell.com/show_bug.cgi?id=351002 Summary: dhcpcd: host name extension includes trailing '\0'. Product: openSUSE 10.3 Version: Final Platform: All OS/Version: Linux Status: NEW Severity: Normal Priority: P5 - None Component: Network AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: eich@novell.com QAContact: qa@suse.de Found By: Development Created an attachment (id=188951) --> (https://bugzilla.novell.com/attachment.cgi?id=188951) Suggested fix. The hostname option that's send by dhcpcd during discover contains the trailing '\0' as end marker of the underlying C-string. This character is also included in the len field. Later versions of the AVM FritzBox Firmware attempt to sanitize the passed hostname and replace every occurance of a non-ASCII character in the hostname passed by a dhcp client by a '-' character. This causes huge problems with DNS for the local network as a host 'foo' is now known as host 'foo-'. Looking at RFC2132 (http://rfc.net/rfc2132.html) section 3.14 a trailing '\0' in a host name doesn't seem to be expected. It points to RFC 1035 (http://rfc.net/rfc1035.html) for restrictions on the characters used for host names. RFC1035 is pretty clear that only '.', '-', [0-9], [a-z,A-Z] are valid characters. (oddly a trailing '-' is also not valid, thus AVM's solution doesn't necessarily produce a same hostname either). In any case the problem goes away by fixing dhcpcd (See patch attached). -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=351002
User eich@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=351002#c1
--- Comment #1 from Egbert Eich
https://bugzilla.novell.com/show_bug.cgi?id=351002
Cristian Rodriguez
https://bugzilla.novell.com/show_bug.cgi?id=351002
Marius Tomaschewski
https://bugzilla.novell.com/show_bug.cgi?id=351002
Peter Varkoly
https://bugzilla.novell.com/show_bug.cgi?id=351002
User varkoly@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=351002#c2
Peter Varkoly
participants (1)
-
bugzilla_noreply@novell.com