Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Dnsmasq broken in latest snap

    2.1 Snapshot Feedback and Problems - RETIRED
    2
    3
    2341
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      dhatz
      last edited by

      The latest snap seems to have broken dnsmasq on my system.

      I'm sorry that I don't have the time to look into it right now, but here are the relevant logs from /var/log/resolver.log

      May 16 17:37:45 fw dnsmasq[35362]: bad command line options: bad address
      May 16 17:37:45 fw dnsmasq[35362]: FAILED to start up
      May 16 17:56:12 fw dnsmasq[34887]: bad command line options: bad address
      May 16 17:56:12 fw dnsmasq[34887]: FAILED to start up

      whereas if I just start dnsmasq from CLI it seems to work

      May 16 18:22:40 fw dnsmasq[40934]: started, version 2.66 cachesize 150
      May 16 18:22:40 fw dnsmasq[40934]: compile time options: IPv6 GNU-getopt no-DBus i18n IDN DHCP DHCPv6 no-Lua TFTP no-conntrack no-ipset auth
      May 16 18:22:40 fw dnsmasq[40934]: reading /etc/resolv.conf
      May 16 18:22:40 fw dnsmasq[40934]: using nameserver 193.x.y.z#53
      May 16 18:22:40 fw dnsmasq[40934]: using nameserver 193.w.y.v#53
      May 16 18:22:40 fw dnsmasq[40934]: ignoring nameserver 127.0.0.1 - local interface
      May 16 18:22:40 fw dnsmasq[40934]: read /etc/hosts - 3 addresses

      1 Reply Last reply Reply Quote 0
      • D
        dhatz
        last edited by

        Uncommenting the log_error line #1666 of /etc/inc/services.inc it seems to be due to a missing space when adding the "address=/test.testdomain.com/192.168.222.111" line that I had in my "Advaced" textarea box in Services -> DNS forwarder:

        May 16 18:44:28 fw php: /services_dnsmasq.php: dnsmasq command: /usr/local/sbin/dnsmasq –all-servers --rebind-localhost-ok --stop-dns-rebind  --address=/test.testdomain.com/192.168.222.111--dns-forward-max=5000 --cache-size=10000 --local-ttl=1

        1 Reply Last reply Reply Quote 0
        • jimpJ
          jimp Rebel Alliance Developer Netgate
          last edited by

          Try this fix:
          https://github.com/pfsense/pfsense/commit/41567e0639d1e7541e2dbf249e3e569f017e984e

          Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

          Need help fast? Netgate Global Support!

          Do not Chat/PM for help!

          1 Reply Last reply Reply Quote 0
          • First post
            Last post