/*
Copyright (c) 2017, David Ramos García, Open6Hosting <dramos@open6hosting.com>
All rights reserved.

Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:

    * Redistributions of source code must retain the above copyright notice,
      this list of conditions and the following disclaimer.
    * Redistributions in binary form must reproduce the above copyright notice,
      this list of conditions and the following disclaimer in the documentation
      and/or other materials provided with the distribution.
    * Neither the name of ISPConfig nor the names of its contributors
      may be used to endorse or promote products derived from this software without
      specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

/*CONFIGURACIÓN WEBDNS*/
USE `dbispconfig`;

INSERT INTO `dns_template` (`sys_userid`, `sys_groupid`, `sys_perm_user`, `sys_perm_group`, `sys_perm_other`, `name`, `fields`, `template`, `visible`) VALUES
(1, 1, 'riud', 'riud', '', 'webdns', 'DOMAIN,IP,IPV6,NS1,NS2,EMAIL', '[ZONE]\r\norigin={DOMAIN}.\r\nns=119.open6servers.com.\r\nmbox=soporte@open6hosting.com.\r\nrefresh=7200\r\nretry=540\r\nexpire=604800\r\nminimum=3600\r\nttl=3600\r\n\r\n[DNS_RECORDS]\r\nA|{DOMAIN}.|{IP}|0|3600\r\nA|www|{IP}|0|3600\r\nA|mail|{IP}|0|3600\r\nA|smtp|{IP}|0|3600\r\nA|ftp|{IP}|0|3600\r\nNS|{DOMAIN}.|119.open6servers.com.|0|3600\r\nNS|{DOMAIN}.|119a.open6servers.com.|0|3600\r\nMX|{DOMAIN}.|mail.{DOMAIN}.|10|3600\r\nTXT|{DOMAIN}.|v=spf1 mx a ip6:{IPV6}/64 -all|0|3600\r\nAAAA|{DOMAIN}.|{IPV6}|0|3600\r\nAAAA|www|{IPV6}|0|3600\r\nAAAA|ftp|{IPV6}|0|3600\r\nAAAA|smtp|{IPV6}|0|3600\r\nAAAA|mail|{IPV6}|0|3600', 'Y');




