How do I add hundreds of domain overrides

Started by Kiwifruta, February 27, 2020, 11:29:03 AM

Previous topic - Next topic
Thanks, it seems we have our replacement strategy here... let me record this in a ticket for 20.7 :)


Cheers,
Franco

Franco,
being able to point to the files and/or directories where dnsmasq configuration file, host files and server files are located will be great.

My next step is writing a script to automatically populate the above files.

I'm really appreciating the active and helpful nature of this OPNsense forum, especially to have a core developer such as yourself responding. Cheers.


Sent from my iPhone using Tapatalk

Quote from: Kiwifruta on March 10, 2020, 09:18:37 AM
Quote from: stefanpf on February 27, 2020, 08:56:33 PM
You could simply add this Server entries
into the advanced Options field or add an extra config File e.g. with
conf-file=/usr/local/etc/dnsstuff.conf

I followed your approach but set up a directory and put it in /etc, so
conf-dir=/etc/dnsmasq.d
It worked perfectly, thanks.
I need to clarify that the CNAME records are in the above directory.

These are my current advanced settings

addn-hosts=/etc/hosts.custom
servers-file=/etc/hosts.dnsmasq
conf-file=/etc/dnsmasq.d/safe.conf


Sent from my iPhone using Tapatalk