Syntax checker ?

Glenn Satchell Glenn.Satchell at
Fri Feb 23 13:01:15 UTC 2007

>Date: Fri, 23 Feb 2007 12:45:28 +0000
>From: "Jóhann B. Guðmundsson" <johannbg at>
>To: dhcp-users at
>Subject: Syntax checker ?
>Is there any syntax checker to parse large DHCP files ?
>Best Regards
>                   Jóhann B.

Hi Jóhann

I think dhcpd -t and/or dhcpd -T may be what you're looking for.

man dhcpd
     The DHCP server reads two files on startup: a  configuration
     file,  and  a lease database.   If the -t flag is specified,
     the server will  simply  test  the  configuration  file  for
     correct  syntax, but will not attempt to perform any network
     operations.   This can be used to test the a new  configura-
     tion file automatically before installing it.

     The -T flag can be used to test the lease database file in a
     similar way.


More information about the dhcp-users mailing list