Forwarder: what are VALID custom options?
-
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?
-
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 --
-
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!
-
@kiokoman
(BTW, pfSense could say more, simply by testing items one at a time... ;) )