1
General Discussion / How do I add hundreds of domain overrides
« on: February 27, 2020, 11:29:03 am »
Hi.
I'm new to OPNsense, having moved from OpenWRT and Ubiquiti.
I have a list of several hundred domains that need to use custom DNS, i.e. not those configured under the System - Settings - General.
With OpenWRT and Ubiquiti I ran a script that downloaded the list of domain overrides (e.g. server=/tvnz.co.nz/8.8.8. and populated a configuration file read by dnsmasq. Can I do something similar in OPNsense?
DDGing for information about configuring OPNsense by CLI/Shell has been fruitless, so I'm wondering if the only way to configure OPNsense is via the GUI. I found the /conf/config.xml file. Is this the file to edit the configuration via the shell?
Will putting dnsmasq configuration files in /etc/dnsmasq.d dnd edit /usr/loca/etc/dnsmasq.conf to point to that directory work, or will it get overriden by /conf/config.xml?
I'd prefer not to enter hundreds of domain overrides by hand in to Services-Dnsmasq DNS-Settings-Domain Overrides, as it'll take a long time plus it's also subject to change. With the other firmware I ran the script on a cron job to provide updates.
Thanks
I'm new to OPNsense, having moved from OpenWRT and Ubiquiti.
I have a list of several hundred domains that need to use custom DNS, i.e. not those configured under the System - Settings - General.
With OpenWRT and Ubiquiti I ran a script that downloaded the list of domain overrides (e.g. server=/tvnz.co.nz/8.8.8. and populated a configuration file read by dnsmasq. Can I do something similar in OPNsense?
DDGing for information about configuring OPNsense by CLI/Shell has been fruitless, so I'm wondering if the only way to configure OPNsense is via the GUI. I found the /conf/config.xml file. Is this the file to edit the configuration via the shell?
Will putting dnsmasq configuration files in /etc/dnsmasq.d dnd edit /usr/loca/etc/dnsmasq.conf to point to that directory work, or will it get overriden by /conf/config.xml?
I'd prefer not to enter hundreds of domain overrides by hand in to Services-Dnsmasq DNS-Settings-Domain Overrides, as it'll take a long time plus it's also subject to change. With the other firmware I ran the script on a cron job to provide updates.
Thanks