ISPConfig module for simplify the creation of websites and DNS zones in a only step
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 
 
 

38 líneas
2.4 KiB

  1. /*
  2. Copyright (c) 2017, David Ramos García, Open6Hosting <dramos@open6hosting.com>
  3. All rights reserved.
  4. Redistribution and use in source and binary forms, with or without modification,
  5. are permitted provided that the following conditions are met:
  6. * Redistributions of source code must retain the above copyright notice,
  7. this list of conditions and the following disclaimer.
  8. * Redistributions in binary form must reproduce the above copyright notice,
  9. this list of conditions and the following disclaimer in the documentation
  10. and/or other materials provided with the distribution.
  11. * Neither the name of ISPConfig nor the names of its contributors
  12. may be used to endorse or promote products derived from this software without
  13. specific prior written permission.
  14. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
  15. ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
  16. WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  17. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
  18. INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
  19. BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  20. DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
  21. OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
  22. NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
  23. EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  24. */
  25. /*CONFIGURACIÓN WEBDNS*/
  26. USE `dbispconfig`;
  27. INSERT INTO `dns_template` (`sys_userid`, `sys_groupid`, `sys_perm_user`, `sys_perm_group`, `sys_perm_other`, `name`, `fields`, `template`, `visible`) VALUES
  28. (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');