From 3d18ac13231c92bcc3c46d9aa1ca851d2a5fbc2a Mon Sep 17 00:00:00 2001 From: Alexey Ivanov Date: Wed, 18 Mar 2015 10:53:35 +0000 Subject: [PATCH] Fix error in default dhcpd configuration: 'host' section should not be nested into 'subnet'. --- dhcp.spec | 2 +- dhcpd.conf | 14 ++++++++------ 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/dhcp.spec b/dhcp.spec index 5da3bd3..a16edbd 100644 --- a/dhcp.spec +++ b/dhcp.spec @@ -8,7 +8,7 @@ Name: dhcp Epoch: 3 Version: %{major_version}%{patch_version} -Release: 2 +Release: 3 Summary: The ISC DHCP (Dynamic Host Configuration Protocol) server/relay agent/client License: Distributable Group: System/Servers diff --git a/dhcpd.conf b/dhcpd.conf index 6afd09e..e51e87d 100644 --- a/dhcpd.conf +++ b/dhcpd.conf @@ -14,10 +14,12 @@ subnet 192.168.0.0 netmask 255.255.255.0 { default-lease-time 21600; max-lease-time 43200; - # we want the nameserver to appear at a fixed address - host ns { - next-server fixed.domain.org; - hardware ethernet 12:34:56:78:AB:CD; - fixed-address 192.168.0.10; - } } + +# we want the nameserver to appear at a fixed address +host ns { + next-server fixed.domain.org; + hardware ethernet 12:34:56:78:AB:CD; + fixed-address 192.168.0.10; +} +