Installation of IPmanager and DNSmanager on one server
A freshly installed server or DNSmanager is already installed
Note
When you install DNSmanager and IPmanager on the same server you don't need to integrate them.
If the server is clean, you need to installDNSmanagerand make the initial installation;
Note.
DNSmanager and IPmanager should work with the same DNS server: BIND or PowerDNS.
- Create a user in DNSmanager. IPmanager will store the reverse domain zones in the namespace of this user;
- Install IPmanager. Find out more in the article Installation of IPmanager;
Add the ViewName parameter to the IPmanager configuration file (/usr/local/mgr5/etc/ipmgr.conf):
echo "ViewName <namespace>" >> /usr/local/mgr5/etc/ipmgr.conf
BASHView details<namespace> — specify the namespace of DNSmanager user.
Restart IPmanager:
/usr/local/mgr5/sbin/mgrctl -m ipmgr exit
BASH
If IPmanager is already installed
Note.
When you install DNSmanager and IPmanager on the same server you don't need to integrate them.
Step 1. Control panel setup
Install and make the initial installation ofDNSmanager.
Please note!
DNSmanager and IPmanager should work with the same DNS server: BIND or PowerDNS.
- Create a user in DNSmanager. IPmanager will store the reverse domain zones in the namespace of this user;
Add the ViewName parameter to the IPmanager configuration file (/usr/local/mgr5/etc/ipmgr.conf):
echo "ViewName <namespace>" >> /usr/local/mgr5/etc/ipmgr.conf
BASHView details<namespace> — specify the namespace of DNSmanager user.
Step 2. DNS server configuration
If you use BIND:
- Allow editing of the DNS server configuration file:
- CentOS: /etc/named.conf
- Debian: /etc/bind/named.conf
Replace the line from:
view "default" {
BASHto
view "<namespace>" {
BASHView details<namespace> — specify the namespace of DNSmanager user.
Replace the match-destinations and transfer-source parameters in the "view" field:
match-destinations { <user IP address>; }; transfer-source <user IP address>;
BASHView details<user IP address> — address of DNSmanager user. You can check it in DNSmanager → Accounts → Users → Change → IP address field.
If you use PowerDNS:
Dump the PowerDNS database:
mysqldump <database name> > <database path>
BASHView details<database name> — PowerDNS is for CentOS,pdnsis for Debian<database path> — full path to dump
Create the database
mysql CREATE DATABASE <database name>
BASHView details<database name> — space with the DNSmanager user names which was created on the first stage second step. Replace the dot in the namespace to "_". For example, if the namespace is called "example.test", then the database should be "example_test".
Transfer the data from the dump into the created database:
mysql <database name> < <dump path>
BASHView details<database name> — was created on the second step.
<dump path> — was created on the first step.
Step 3. Verification
Restart IPmanager
/usr/local/mgr5/sbin/mgrctl -m ipmgr exit
BASH- Make sure that IPmanager and DNSmanager work fine.