What are you trying to do?
my situation is so,
i dont have have any write storeage on my pfsense (embedded) , and i dont want any additional storage on the pfsense,
so everytime when pfSense is booting up, and connected successfully to "WAN" , pfSense is downloading the "ads" file, called "unbound_ad_servers"(aka /tmp/mydnsfile), from an additional host.
How would "/tmp/mydnsfile" be created?
only working with the workaround which i posted before
What is in that file that cant be placed in the custom options section?
inside the file i have over 40000 "ads" domains (not static, no static IP's or HOST's)which id like to redirect to 127.0.0.1 some like this:
local-zone: “adserver.yahoo.com” redirect
local-data: “adserver.yahoo.com A 127.0.0.1″
after the "ads" file has been downloaded to his place like "/tmp/unbound_ad_servers" , unbound automaticly uses the new domains thats nice :)
so i hope you understand now what id like to do.
and some additional thinking:
but even if you have a something else/different inside the "ads" file, can be also used as configuration file instead of holding hosts to block, like a home network configuration … and if you have as example 3 different configuration files for 3 different scenarios , 3 include custom options are then needed, but you like to use only 1 of these 3(1file filled with information the 2 others are 0bytes files and unbound can run, for your home office and everytime to like to change/switch the configuration you can do this by a file which unbounds reads and is setting the configuration.
this should be a really flexible way to use unbound to set up configuration for different host, depending if the file has information inside or not.
best regards