[Dnsmasq-discuss] Documentation error: Inaccurate conf-file behavior

moistice at riseup.net moistice at riseup.net
Wed Jul 23 09:47:21 UTC 2025


-C, --conf-file=<file>
    Specify a configuration file. The presence of this option stops
dnsmasq from reading the default configuration file (normally
/etc/dnsmasq.conf). Multiple files may be specified by repeating the
option either on the command line or in configuration files. A filename
of "-" causes dnsmasq to read configuration from stdin. 

I am confused with "The presence of this option STOPS dnsmasq FROM
READING the default configuration" part.

This literaly means:
/etc/dnsmasq.conf {
...
no-ping
no-poll
conf-file = /some/additional/rules_addresses.conf <--- STOPS here
no-resolv <--- and 
no-round-robin <--- those lines
stop-dns-rebind <--- are not processed anymore
}

Right??
But there are some online guies which uses "conf-file" as additional
rules;

/etc/dnsmasq.conf {
...
no-ping
no-poll
conf-file = /some/additional/rules_addresses.conf
conf-file = /some/additional/rules_addresses.conf 
conf-file = /some/additional/rules_addresses.conf 
other-config-here
some-other-config
...
}

The question is this - Am I allowed to use conf-file like "include", or
the documentation is correct that any config lines below conf-file are
not processed?



More information about the Dnsmasq-discuss mailing list