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

    Forwarder: what are VALID custom options?

    Scheduled Pinned Locked Moved DHCP and DNS
    dnsmasqcustominvalid
    4 Posts 2 Posters 953 Views
    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.
    • MrPeteM
      MrPete
      last edited by MrPete

      SOLVED:
      Custom Forwarder Configuration uses the following to test whatever is entered:

      /usr/local/sbin/dnsmasq --test (your stuff)
      

      Where it inserts an argument prefixed by "--" for each custom item you add.

      Original question:
      I have quite a bit of experience customizing dnsmasq. I'm following the man page for it.
      pfSense complains about "invalid custom option" without telling me:

      • What it thinks is a "bad" option
      • What it believes are valid options

      Is there source code anywhere I could examine to see what it believes are good dnsmasq options?

      1 Reply Last reply Reply Quote 0
      • kiokomanK
        kiokoman LAYER 8
        last edited by kiokoman

        pretty much everything that is inside /usr/local/etc/dnsmasq.conf
        it's faster if you tell us what and how you put stuff inside advanced configuration. pfsense can't tell you what's wrong because dnsmasq don't talk too mutch :)
        you can check system Status / system logs, if you put something wrong inside advanced configuration
        you will see that dnsmasq is only telling you this:

        Feb 29 19:13:40 	dnsmasq 	68889 	FAILED to start up
        Feb 29 19:13:40 	dnsmasq 	68889 	bad command line options: try -help
        

        without any mods dnsmasq start like this:

        nobody  /usr/local/sbin/dnsmasq --all-servers -C /dev/null --rebind-localhost-ok --stop-dns-rebind --dns-forward-max=5000 --cache-size=10000 --local-ttl=1
        

        custom options need to be put inside without --

        ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
        Please do not use chat/PM to ask for help
        we must focus on silencing this @guest character. we must make up lies and alter the copyrights !
        Don't forget to Upvote with the 👍 button for any post you find to be helpful.

        MrPeteM 1 Reply Last reply Reply Quote 0
        • MrPeteM
          MrPete
          last edited by MrPete

          I solved it myself.

          Source code: https://github.com/pfsense/pfsense/blob/master/src/usr/local/www/services_dnsmasq.php

          Custom configuration uses the following to test whatever is entered:

          /usr/local/sbin/dnsmasq --test (your stuff)
          

          Where it inserts an argument prefixed by "--" for each custom item you add.

          'Twas quite simple to diagnose my own issues once I have that!

          1 Reply Last reply Reply Quote 0
          • MrPeteM
            MrPete @kiokoman
            last edited by

            @kiokoman
            (BTW, pfSense could say more, simply by testing items one at a time... ;) )

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.