I recently replaced my windows server with an ubuntu one and I was setting up dhcp when I ran into this error whilst trying to add a 'reserved' client.
expecting IP address or hostname
Jun 6 01:47:27 xee dhcpd: fixed-address:
Jun 6 01:47:27 xee dhcpd: ^
Jun 6 01:47:27 xee dhcpd: Configuration file errors encountered -- exiting
This is the section of the config:
host temple {
hardware ethernet BC:5F:F4:A2:29:96;
fixed-address: 10.1.1.12;
}
From the material I've found online it should all work so I'm not too sure what is happening.
Edit: here is my entire config:
ddns-update-style none;
option domain-name "lan";
option domain-name-servers xee.home.lan;
default-lease-time 600;
max-lease-time 7200;
authoritative;
log-facility local7;
subnet 10.1.1.0 netmask 255.255.255.0 {
range 10.1.1.3 10.1.1.253;
option routers 10.1.1.1;
option subnet-mask 255.255.255.0;
option broadcast-address 10.1.1.254;
option domain-name-servers 10.1.1.2, 8.8.8.8;
}
#host temple {
#hardware ethernet BC:5F:F4:A2:29:96;
#fixed-address 10.1.1.12;
#}
The commented part when uncommented throws the error above.