:: What is VegaDNS
VegaDNS is a tinydns administration tool written in PHP to allow easy administration of DNS records through a web browser.
:: How to Install VegaDNS on Linux Debian
+ Get source code
|
1 2 3 4 |
# cd /var/www/
# wget https://github.com/shupp/VegaDNS/tarball/master
# tar -xzf master
# mv shupp-VegaDNS-c8e935f/ vdns |
+ Setup databases
|
1 2 |
# mysqladmin -u root create vdns -p
# mysql -u root -e "grant all privileges on vdns.* to vdns@localhost identified by 'passwd'" -p |
+ Change permission
|
1 2 3 4 |
# cd /var/www/vdns
# mkdir templates_c configs cache sessions
# chown www-data.www-data -R /var/www/vdns/
# chmod 770 -R /var/www/vdns/ |
+ Edit config.php files
|
1 2 3 4 5 6 7 8 9 10 11 12 13 |
# cd /var/www/vdns/src/
# vi config.php
// Location of vegadns private directories
$private_dirs = '/var/www/vdns';
// Mysql settings
$mysql_host = 'localhost';
$mysql_user = 'vdns';
$mysql_pass = 'passwd';
$mysql_db = 'vdns';
// Local URL
$vegadns_url = 'http://127.0.0.1/vdns/'; |
+ Configure update-data.sh
|
1 2 3 4 5 |
# cd /var/www/vdns
# vi update-data.sh
## The FULL path to the index.php file for the VegaDNS
#############
VEGADNS='http://127.0.0.1/vdns/index.php' |
+ Setting crontab
|
1 2 3 4 |
# cp update-data.sh /usr/local/sbin/
# crontab -e
### Update tinydns with VegaDNS data
*/10 * * * * /usr/local/sbin/update-data.sh |
:: Checking Installation on the webrowser
Going to URL for VegaDNS [ http://127.0.0.1/vdns/index.php ]

