Bug #2020

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

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

Target version:
Start date:
Due date:
% Done:


Estimated time:
0.10 h
Affected Version:
Affected Architecture:


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 /etc/dhcpd.conf line 161: expecting string. option host-name 6013; ^ Configuration file errors encountered - exiting If you did not get this software from, please get the latest from and install that before requesting help. If you did get this software from 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/

ee /var/inc/
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 9 years ago

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

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

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


#1 Updated by Seth Mos about 9 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