dnsmasq failed to start up with a "bad option" error.

Solution Verified - Updated -

Issue

  • dnsmasq failed to start up with a "bad option" error.
  • The journal log shows messages like below.

    Jun 05 20:23:20 rhel8u8-1 dnsmasq[32180]: dnsmasq: bad option at line 686 of /etc/dnsmasq.conf
    Jun 05 20:23:20 rhel8u8-1 dnsmasq[32180]: bad option at line 686 of /etc/dnsmasq.conf
    Jun 05 20:23:20 rhel8u8-1 dnsmasq[32180]: FAILED to start up
    Jun 05 20:23:20 rhel8u8-1 systemd[1]: dnsmasq.service: Main process exited, code=exited, status=1/FAILURE
    Jun 05 20:23:20 rhel8u8-1 systemd[1]: dnsmasq.service: Failed with result 'exit-code'.
    

Environment

  • Red Hat Enterprise Linux 9
  • Red Hat Enterprise Linux 8
  • dnsmasq

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content