title: How can I check dhcpd.conf against syntax error without running dhcpd?
body: <p>I need to make sure there are no syntax errors on dhcpd.conf. If there are errors, I want to get what they are.</p>
  
  <p>I can check for syntax errors with this command:</p>
  
  <pre><code>dhcpd -cf /path/to/dhcpd.conf
  </code></pre>
  
  <p>but that prints a lot of information in addition to the error I got. Another thing is that I don't want to run dhcpd, even there is no syntax error. I only want to check for syntax errors and see what they are.</p>
  
  <hr>
  
  <p>Unfortunately, running <code>dhcpd -tf /path/to/dhcpd.conf</code> also didn't solve my problem.</p>