Project

General

Profile

Bug #2020

dhcpd fails to start when a static lease's hostname is numerical.

Added by Jeff Shaw about 8 years ago. Updated about 8 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
DHCP Server
Target version:
Start date:
11/22/2011
Due date:
% Done:

100%

Estimated time:
0.10 h
Affected Version:
2.1-IPv6
Affected Architecture:

Description

For instance, I had a static dhcp lease with the hostname set to 6013. However, when I enabled this interface's dhcpd service, dhcpd would fail to start. The syslog would contain this entry:

"php: /status_services.php: The command '/usr/local/sbin/dhcpd user dhcpd -group _dhcp -chroot /var/dhcpd -cf /etc/dhcpd.conf bge0_vlan2 bge0_vlan7 bge0_vlan10' returned exit code '1', the output was 'Internet Systems Consortium DHCP Server 4.2.1-P1 Copyright 2004-2011 Internet Systems Consortium. All rights reserved. For info, please visit https://www.isc.org/software/dhcp/ /etc/dhcpd.conf line 161: expecting string. option host-name 6013; ^ Configuration file errors encountered - exiting If you did not get this software from ftp.isc.org, please get the latest from ftp.isc.org and install that before requesting help. If you did get this software from ftp.isc.org and have not yet read the README, please read it before requesting help. If you intend to request help from the mailing list, please read the section on the README about submitting bug reports and requests for help. Please do not under any circumstances send requests for help dire"

I fixed this by logging into pfSense, and editing /etc/inc/services.inc.

ee /var/inc/services.inc
ctrl-e
option host-name
change {$dhhostname} to \"{$dhhostname}\"

I haven't found the official documentation saying this is correct, but I suspect it is.

Associated revisions

Revision 2f590513 (diff)
Added by Seth Mos about 8 years ago

Enclose the hostname in quotes so that numerical values work too.
Fixes Ticket #2020

Revision af6f42c1 (diff)
Added by Seth Mos about 8 years ago

Ecnlose the host-name in quotes so that numerical values work.
Fixes ticket #2020

History

#1 Updated by Seth Mos about 8 years ago

  • Status changed from New to Resolved
  • Assignee set to Seth Mos
  • Target version set to 2.0.1
  • % Done changed from 0 to 100
  • Estimated time set to 0.10 h
  • Affected Version set to 2.1-IPv6

Fixes checked in, thank you for your report.

Also available in: Atom PDF