OPNsense Forum

Archive => 22.1 Legacy Series => Topic started by: Carsten99 on June 08, 2022, 10:18:06 AM

Title: manual changed named.conf will be replaced after Reboot or GUI Save bind-plugin
Post by: Carsten99 on June 08, 2022, 10:18:06 AM
Hello,

I have to modify named.conf of the bind plugin manually.
My changes works great but after a reboot or a save through the GUI my changes are gone.

Is there a way to modify the named.conf? Do I have to modify a template file?

I am sorry for this silly question, but I did not found anything.

thanks
regards
carsten
Title: Re: manual changed named.conf will be replaced after Reboot or GUI Save bind-plugin
Post by: Carsten99 on June 09, 2022, 10:37:56 AM
Hello,

found by myself.

I modified the template file
/usr/local/opnsense/service/templates/OPNsense/Bind/named.conf.

And it works.

thanks
regards
carsten
Title: Re: manual changed named.conf will be replaced after Reboot or GUI Save bind-plugin
Post by: Patrick M. Hausen on June 09, 2022, 12:09:00 PM
This will be overwritten by the next update. Just saying ;)
Title: Re: manual changed named.conf will be replaced after Reboot or GUI Save bind-plugin
Post by: franco on June 09, 2022, 12:16:41 PM
If you want to use a plugin to add a feature please raise an issue on GitHub and if not please use persistent overrides or avoid using the plugin or build your own that doesn't conflict with updates.

So many options. ;)


Cheers,
Franco
Title: Re: manual changed named.conf will be replaced after Reboot or GUI Save bind-plugin
Post by: Patrick M. Hausen on June 09, 2022, 01:10:08 PM
What precisely do you need to add? Perhaps I can go ahead and add it to the code ...