1. Introduction to named manager
Using the new Amberphplib framework, compatible with MySQL5.6 STRICT SQL mode, it is a web-based DNS management system that can be used to add, adjust and delete DNS zones/records data, support Bind as a back-end DNS service, and support IPv4 and IPv6.
2, namedmanager software installation method
(1) Download the warehouse address
#wget -O /etc/yum.repos.d/amberdms-c6-public.repo http://repos.jethrocarr.com/config/centos/6/amberdms-c6-public.repo
(2) Install the namedmanager package
#yum -y install namedmanager*
Tip: Currently you need to modify named.conf, add include "/etc/named.namedmanager.conf", and the php management page needs to configure the /etc/namedmanager/config-bind.php file
(3) Main configuration files and functions
serial number | file path | Remark |
1 | /etc/namedmanager/ | Configuration directory for NamedManager |
2 | /etc/cron.d/namedmanager-bind | Scheduled tasks of NamedManager |
3 | /etc/init.d/namedmanager_logpush | Start script for log collection start|stop |
4 | /etc/named.conf | Default DNS server directory |
5 | /var/named/chroot/etc/named.conf | using bind-chroot. |
/etc/cron.d/namedmanager-bind refreshes and records DNS data in mysql to the log every minute
(4) Modify file attributes
chkconfig --level 35 namedmanager_logpush on
chown named.root /etc/named.namedmanager.conf
(5) Associated database:
The database machine does the following:
mysql -u root -p
create database namedmanager; //Create a library
create user 'namedmanager'@'10.8.97.136'; //Create user
set password for 'namedmanager'@'10.8.97.136' =password('namedmanager');//Set password for creating user
grant all on namedmanager.* to namedmanager@'10.8.97.136' identified by 'namedmanager';//Authorize for creating users
use namedmanager;
namedmanager modifies the configuration file associated database:
/etc/namedmanager/config.php
/usr/share/namedmanager/resources/autoinstall.pl
./autoinstall.pl
Another method is to copy /usr/share/namedmanager/sql/version_20131222_install.sql (the latest version) to the database machine, and then pour it into the specified library;
(6) Associate DNS
The operation of the DNS machine:
Modify the named.conf file of dns: add the following sentence
include "/etc/named.namedmanager.conf”;
Modify the namedmanager configuration file to associate DNS:
vim /etc/namedmanager/config-bind.php
(7) Start the web service (yum has been installed before)
/etc/init.d/httpd start
Browser open: http://10.8.97.136//namedmanager/ for login test (default setup/setup123)
Make sure that the last green part is in the configuration file synchronization, if it is not displayed in green, further troubleshooting is required
Check if the namedmanager configuration file is correct
php -q /usr/share/namedmanager/bind/namedmanager_bind_configwriter.php