<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <br>
    <br>
    <div class="moz-cite-prefix">Il 30/11/2022 11:36, Andrea Biancalani
      via Pdns-users ha scritto:<br>
    </div>
    <blockquote type="cite"
      cite="mid:0b806c4f-2520-b989-1ea5-3182d6c3889b@conmet.it">
      <br>
      <br>
      Il 28/11/2022 22:56, Michael Hallager via Pdns-users ha scritto:
      <br>
      <blockquote type="cite">On 2022-11-29 07:13, Andrea Biancalani via
        Pdns-users wrote:
        <br>
        <blockquote type="cite">Is there a way to select default zone
          type for a server instead
          <br>
          specify it everytime I enter a new zone in my master? I'd like
          to
          <br>
          pre-select type:master everytime instead asking for
          <br>
          native/master/slave options (with native pre-selected).
          <br>
        </blockquote>
        <br>
        Are you using a DB backend? You could set a default value for
        the field.
        <br>
        _______________________________________________
        <br>
        Pdns-users mailing list
        <br>
        <a class="moz-txt-link-abbreviated" href="mailto:Pdns-users@mailman.powerdns.com">Pdns-users@mailman.powerdns.com</a>
        <br>
        <a class="moz-txt-link-freetext" href="https://mailman.powerdns.com/mailman/listinfo/pdns-users">https://mailman.powerdns.com/mailman/listinfo/pdns-users</a>
        <br>
      </blockquote>
      <br>
      <br>
      Yeah, I'm actually using MariaDB as backend. Do you know which
      field contains that parameter?
      <br>
      _______________________________________________
      <br>
      Pdns-users mailing list
      <br>
      <a class="moz-txt-link-abbreviated" href="mailto:Pdns-users@mailman.powerdns.com">Pdns-users@mailman.powerdns.com</a>
      <br>
      <a class="moz-txt-link-freetext" href="https://mailman.powerdns.com/mailman/listinfo/pdns-users">https://mailman.powerdns.com/mailman/listinfo/pdns-users</a>
      <br>
    </blockquote>
    <br>
    I found the solutions modifing html on powerdnsadmin folder, in my
    case the complete path is the following<br>
    <br>
    /opt/web/powerdns-admin/powerdnsadmin/templates/domain_add.html<br>
    <br>
    change this<br>
    <br>
    <blockquote type="cite"> <div class="radio"><br>
      <font color="#ff0000"><b>                               
          <label></b><b><br>
        </b><b>                                    <input
          type="radio" name="radio_type" id="radio_type_native"
          value="native" checked></b><b><br>
        </b><b>                                    Native</b><b><br>
        </b><b>                                </label></b></font><br>
                                      &nbsp;&nbsp;&nbsp;<br>
                                      <label><br>
                                          <input type="radio"
      name="radio_type" id="radio_type_master" value="master"> Master<br>
                                      </label><br>
                                      &nbsp;&nbsp;&nbsp;<br>
                                      <label><br>
                                          <input type="radio"
      name="radio_type" id="radio_type_slave" value="slave">Slave<br>
                                      </label><br>
                                  </div></blockquote>
    <br>
    into this<br>
    <br>
    <blockquote type="cite"> <div class="radio"><br>
      <font color="#ff0000"><b>                               
          <label></b><b><br>
        </b><b>                                    <input
          type="radio" name="radio_type" id="radio_type_native"
          value="native" ></b><b><br>
        </b><b>                                    Native</b><b><br>
        </b><b>                                </label></b></font><br>
                                      &nbsp;&nbsp;&nbsp;<br>
                                      <label><br>
                                          <input type="radio"
      name="radio_type" id="radio_type_master" value="master" <font
        color="#ff0000"><b>checked</b></font>> Master<br>
                                      </label><br>
                                      &nbsp;&nbsp;&nbsp;<br>
                                      <label><br>
                                          <input type="radio"
      name="radio_type" id="radio_type_slave" value="slave">Slave<br>
                                      </label><br>
                                  </div></blockquote>
    <br>
    restart the powerdns-admin service with <br>
    <br>
    <blockquote type="cite">systemctl restart powerdns-admin.service</blockquote>
    <br>
    that's all.<br>
    <br>
    <br>
    <br>
    <br>
  </body>
</html>