Bug 138677
Summary: | dhcpd silently accepts malformed dhcpd.conf zone statement | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Pavel Polischouk <pavel.polischouk> |
Component: | dhcp | Assignee: | Jason Vas Dias <jvdias> |
Status: | CLOSED NOTABUG | QA Contact: | |
Severity: | low | Docs Contact: | |
Priority: | medium | ||
Version: | 3 | ||
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2005-10-13 23:28:48 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Pavel Polischouk
2004-11-10 17:32:27 UTC
This is really an upstream (ISC) issue. I will develop a patch to fix this and submit it to ISC. This problem should be fixed in the next version of dhcp (dhcp-3.0.1-12). Sorry this bug was somehow overlooked . Having now had a chance to investigate this fully, I don't think it is a bug: Yes, dhcp allows spaces in host names - eg. this is valid: 'option routers 1 . 2 . 3 . 4, router2 . my . net;' and sets the routers option to '1.2.3.4, dns_lookup("router2.my.net. A")' We really don't want to change this, as users may actually depend on it. The 'zone' statement syntax as shown in dhcpd.conf shows host names as the only argument allowed between 'zone' and '{', and makes no pretense of supporting named.conf 'zone' syntax . 'example.com. IN' is valid DHCP input syntax for the host name 'example.com.in', but 'example.com IN' (also valid named.conf syntax) is invalid DHCP host name syntax and does produce a dhcpd.conf parse error. So yes, this is somewhat confusing, but there is not much that can be done about it as long as dhcp ignores whitespace in host name input text, as it always has done and is likely to continue to do. |