[Pdns-users] Select default type for new zones

Andrea Biancalani a.biancalani at conmet.it
Wed Nov 30 10:54:57 UTC 2022



Il 30/11/2022 11:36, Andrea Biancalani via Pdns-users ha scritto:
>
>
> Il 28/11/2022 22:56, Michael Hallager via Pdns-users ha scritto:
>> On 2022-11-29 07:13, Andrea Biancalani via Pdns-users wrote:
>>> Is there a way to select default zone type for a server instead
>>> specify it everytime I enter a new zone in my master? I'd like to
>>> pre-select type:master everytime instead asking for
>>> native/master/slave options (with native pre-selected).
>>
>> Are you using a DB backend? You could set a default value for the field.
>> _______________________________________________
>> Pdns-users mailing list
>> Pdns-users at mailman.powerdns.com
>> https://mailman.powerdns.com/mailman/listinfo/pdns-users
>
>
> Yeah, I'm actually using MariaDB as backend. Do you know which field 
> contains that parameter?
> _______________________________________________
> Pdns-users mailing list
> Pdns-users at mailman.powerdns.com
> https://mailman.powerdns.com/mailman/listinfo/pdns-users

I found the solutions modifing html on powerdnsadmin folder, in my case 
the complete path is the following

/opt/web/powerdns-admin/powerdnsadmin/templates/domain_add.html

change this

>  <div class="radio">
> *<label>**
> **                                    <input type="radio" 
> name="radio_type" id="radio_type_native" value="native" checked>**
> **                                    Native**
> **                                </label>*
>                                    
>                                 <label>
>                                     <input type="radio" 
> name="radio_type" id="radio_type_master" value="master"> Master
>                                 </label>
>                                    
>                                 <label>
>                                     <input type="radio" 
> name="radio_type" id="radio_type_slave" value="slave">Slave
>                                 </label>
>                             </div>

into this

>  <div class="radio">
> *<label>**
> **                                    <input type="radio" 
> name="radio_type" id="radio_type_native" value="native" >**
> **                                    Native**
> **                                </label>*
>                                    
>                                 <label>
>                                     <input type="radio" 
> name="radio_type" id="radio_type_master" value="master" *checked*> Master
>                                 </label>
>                                    
>                                 <label>
>                                     <input type="radio" 
> name="radio_type" id="radio_type_slave" value="slave">Slave
>                                 </label>
>                             </div>

restart the powerdns-admin service with

> systemctl restart powerdns-admin.service

that's all.



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.powerdns.com/pipermail/pdns-users/attachments/20221130/1c116e11/attachment-0001.htm>


More information about the Pdns-users mailing list