I have an Edgerouter 4 and I am trying to make sense of the configuration areas for DHCP and DNS, when use-dnsmasq enable
is set.
I see four places where the configuration can be done:
from the command line (
set service dns forwarding ...
seems to be the way to provide DNS parameters (but not DHCP?))by editing (EDIT: a copy of)
/config/config.boot
and loading it up
These two seem to be tightly linked together, the command line config seems to be written to /config/config.boot
by configuring
/etc/dnsmasq.conf
by adding a file to
/etc/dnsmasq.d
The configurations follows the dnsmasq
configuration file, I have the file /etc/dnsmasq.d/dnsmasq-dhcp-config.conf
which was created for me.
Note: I have a strong preference for the approach where /etc/dnsmasq.conf
would be all commented out as it is today, and have all my DNS and DHCP cpnfiguration in files living in /etc/dnsmasq.d
. I can accept that this configuration will not be visible from the GUI (in the DNS
page).
My questions
- How do these configuration approaches work together?
- Is it possible to only use the approach 3. or 4.?
- If yes:
- are there drawbacks? (= inconveniences such as the need to backup teh files during an upgrade, lack of visibility in the GUI, etc.)
- are there incompatibilities? (= something can be configured exclusively via 1., 2. or 3./4.?)