sabinich / VestaDNSmanagerIntegration

Simple integration module Vesta Control Panel with DNSmanager to create and delete records on the secondary NS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Requirements

This library requires PHP extension php_curl

Install

This guide actual for Vesta Control Panel version 0.9.8-10

Unpack web folder in the root directory of vestacp

Open web/add/dns/index.php

Find the line ~40:

exec (VESTA_CMD."v-add-dns-domain ".$user." ".$v_domain." ".$v_ip." ".$v_ns1." ".$v_ns2." ".$v_ns3." ".$v_ns4." no", $output, $return_var);

Paste after:

require $_SERVER['DOCUMENT_ROOT'] . '/dnsmanager/add.php';

Find the line ~109:

exec (VESTA_CMD."v-add-dns-record ".$user." ".$v_domain." ".$v_rec." ".$v_type." ".$v_val." ".$v_priority, $output, $return_var);

Paste after:

require $_SERVER['DOCUMENT_ROOT'] . '/dnsmanager/add.php';

Open web/add/dns/index.php, find the line ~95:

exec (VESTA_CMD."v-add-dns-domain ".$user." ".$v_domain." ".$v_ip, $output, $return_var);

Paste after:

require $_SERVER['DOCUMENT_ROOT'] . '/dnsmanager/add.php';

Open web/delete/dns/index.php, find the line ~35:

exec (VESTA_CMD."v-delete-dns-record ".$v_username." ".$v_domain." ".$v_record_id, $output, $return_var);

Paste after:

require $_SERVER['DOCUMENT_ROOT'] . '/dnsmanager/delete.php';

In the configuration web/dnsmanager/config.ini, change enabled to 1, and set master, dns[]

Example using many dns:

dns[] = example.com,login,password
dns[] = example2.com,login,password

About

Simple integration module Vesta Control Panel with DNSmanager to create and delete records on the secondary NS

License:MIT License


Languages

Language:PHP 100.0%