LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   dhcpd not starting, has errors (https://www.linuxquestions.org/questions/linux-software-2/dhcpd-not-starting-has-errors-446825/)

Armon 05-20-2006 05:34 PM

dhcpd not starting, has errors
 
I am getting this set of errors when I try to start dhcpd:

May 20 15:25:24 localhost dhcpd: /etc/dhcpd.conf line 2: expecting a parameter or declaration.
May 20 15:25:24 localhost dhcpd: ddns-rev-domainname
May 20 15:25:24 localhost dhcpd: ^
May 20 15:25:24 localhost dhcpd: /etc/dhcpd.conf line 10: expecting a parameter or declaration.
May 20 15:25:24 localhost dhcpd: include
May 20 15:25:24 localhost dhcpd: ^
May 20 15:25:24 localhost dhcpd: /etc/dhcpd.conf line 18: expecting a parameter or declaration.
May 20 15:25:24 localhost dhcpd: zone
May 20 15:25:24 localhost dhcpd: ^
May 20 15:25:24 localhost dhcpd: /etc/dhcpd.conf line 29: expecting allow/deny key
May 20 15:25:24 localhost dhcpd: allow client-updates;
May 20 15:25:24 localhost dhcpd: ^
May 20 15:25:24 localhost dhcpd: /etc/dhcpd.conf line 30: expecting a parameter or declaration.
May 20 15:25:24 localhost dhcpd: ddns-domainname
May 20 15:25:24 localhost dhcpd: ^
May 20 15:25:24 localhost dhcpd: /etc/dhcpd.conf line 31: expecting a parameter or declaration.
May 20 15:25:24 localhost dhcpd: ddns-updates
May 20 15:25:24 localhost dhcpd: ^
May 20 15:25:24 localhost dhcpd: /etc/dhcpd.conf line 32: expecting a parameter or declaration.
May 20 15:25:24 localhost dhcpd: ddns-update-style
May 20 15:25:24 localhost dhcpd: ^
May 20 15:25:24 localhost dhcpd: /etc/dhcpd.conf line 41: expecting allow/deny key
May 20 15:25:24 localhost dhcpd: ^Iallow client-updates;
May 20 15:25:24 localhost dhcpd: ^
May 20 15:25:24 localhost dhcpd: /etc/dhcpd.conf line 43: expecting a parameter or declaration.
May 20 15:25:24 localhost dhcpd: ^Iddns-updates
May 20 15:25:24 localhost dhcpd: ^
May 20 15:25:24 localhost dhcpd: /etc/dhcpd.conf line 44: expecting a parameter or declaration.
May 20 15:25:24 localhost dhcpd: ^Iddns-rev-domainname
May 20 15:25:24 localhost dhcpd: ^
May 20 15:25:24 localhost dhcpd: /etc/dhcpd.conf line 45: expecting a parameter or declaration.
May 20 15:25:24 localhost dhcpd: ^Iddns-domainname
May 20 15:25:24 localhost dhcpd: ^
May 20 15:25:24 localhost dhcpd: /etc/dhcpd.conf line 48: expecting a parameter or declaration.
May 20 15:25:24 localhost dhcpd: ^Izone
May 20 15:25:24 localhost dhcpd: ^
May 20 15:25:24 localhost dhcpd: /etc/dhcpd.conf line 52: expecting a parameter or declaration.
May 20 15:25:24 localhost dhcpd: ^Izone
May 20 15:25:24 localhost dhcpd: ^
May 20 15:25:24 localhost dhcpd: /etc/dhcpd.conf line 60: expecting a parameter or declaration.
May 20 15:25:24 localhost dhcpd: ^I^Iddns-rev-domainname
May 20 15:25:24 localhost dhcpd: ^
May 20 15:25:24 localhost dhcpd: /etc/dhcpd.conf line 61: expecting a parameter or declaration.
May 20 15:25:24 localhost dhcpd: ^I^Iddns-domainname
May 20 15:25:24 localhost dhcpd: ^
May 20 15:25:24 localhost dhcpd: /etc/dhcpd.conf line 65: expecting allow/deny key
May 20 15:25:24 localhost dhcpd: ^I^Iallow client-updates;
May 20 15:25:24 localhost dhcpd: ^
May 20 15:25:24 localhost dhcpd: /etc/dhcpd.conf line 67: expecting a parameter or declaration.
May 20 15:25:24 localhost dhcpd: ^I^Iddns-updates
May 20 15:25:24 localhost dhcpd: ^
May 20 15:25:24 localhost dhcpd: Configuration file errors encountered -- exiting
May 20 15:25:24 localhost dhcpd: exiting.


Any ideas what it could be? This is my dhcpd.conf file:

allow unknown-clients;
ddns-rev-domainname "armon.server";
server-name "mc1.armon.server";
use-host-decl-names on;
option broadcast-address 192.168.1.255;
option subnet-mask 255.255.255.0;
option routers 192.168.1.1;
# File with key we shall use to securely update zone files
###########################################################
include "/etc/named.keys";

# Our server is authority
#########################################################
server-identifier armon.server;
authoritative;

# Fedora 's DDNS Zone
zone armon.server. {
primary 192.168.1.1;
key DHCP_UPDATER;
}

default-lease-time 86400;
max-lease-time 172800;

option domain-name "armon.server";
option domain-name-servers 192.168.1.1;

allow client-updates;
ddns-domainname "armon.server";
ddns-updates on;
ddns-update-style interim;

# Declaration of network properties ( range ... )
# Fedora 's DDNS Zone
subnet 192.168.1.0 netmask 255.255.255.0 {
max-lease-time 172800;
default-lease-time 86400;
next-server mc1.armon.server;
authoritative;
allow client-updates;
allow unknown-clients;
ddns-updates on;
ddns-rev-domainname "armon.server";
ddns-domainname "armon.server";
server-name "mc1.armon.server";
range dynamic-bootp 192.168.1.100 192.168.1.254;
zone armon.server {
primary 127.0.0.1;
key DHCP_UPDATER;
}
zone 1.168.192.in-addr.arpa. {
primary 127.0.0.1;
key DHCP_UPDATER;
}
option subnet-mask 255.255.255.0;
option routers 192.168.1.1;
one-lease-per-client on;
group {
ddns-rev-domainname "armon.server";
ddns-domainname "armon.server";
server-name "mc1.armon.server";
max-lease-time 172800;
default-lease-time 86400;
allow client-updates;
allow unknown-clients;
ddns-updates on;
use-host-decl-names on;
}
}

Even though it says fedora everywhere, I am running ubuntu breezy. Anyone know what the problem is?

Armon 05-21-2006 02:11 AM

Figured it out. It was the wrong version of dhcp. But then the server wouldn't serve ip addresses even though it was running... Oh well.


All times are GMT -5. The time now is 08:32 AM.