• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
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 948 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.
  • M
    MrPete
    last edited by MrPete Feb 29, 2020, 7:26 PM Feb 29, 2020, 5:23 PM

    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
    • K
      kiokoman LAYER 8
      last edited by kiokoman Feb 29, 2020, 6:26 PM Feb 29, 2020, 6:18 PM

      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.

      M 1 Reply Last reply Feb 29, 2020, 7:28 PM Reply Quote 0
      • M
        MrPete
        last edited by MrPete Feb 29, 2020, 7:17 PM Feb 29, 2020, 7:16 PM

        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
        • M
          MrPete @kiokoman
          last edited by Feb 29, 2020, 7:28 PM

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

          1 Reply Last reply Reply Quote 0
          4 out of 4
          • First post
            4/4
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
            This community forum collects and processes your personal information.
            consent.not_received