How to install IPmanager and DNSmanager on the same server
A freshly installed server or a server with DNSmanager
Note
When you install DNSmanager and IPmanager on the same server you don't need to integrate them.
The installation steps
If DNSmanager 5 is not installed, proceed to install it. Learn more in Installation and Getting started with DNSmanager.
Note
DNSmanager and IPmanager must work with the same DNS-server: BIND or PowerDNS.
- Create a new user in DNSmanager. IPmanager will store reverse domain zones in the namespace of that user.
- Install IPmanager. Learn more in the article Installation guide.
Add the ViewName parameter into the IPmanager configuration file (by default it is located in /usr/local/mgr5/etc/ipmgr.conf)
echo "ViewName <name space>" >> /usr/local/mgr5/etc/ipmgr.conf
BASHView details<name space> — enter the namespace of the user in DNSmanager that was created on step 2.
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. Configuring the control panels
Install and configure DNSmanager. Learn more in Installation and Getting started with DNSmanager.
Note
DNSmanager and IPmanager must work with the same DNS-server: BIND or PowerDNS.
- Create a new user in DNSmanager. IPmanager will store reverse domain zones in the namespace of that user.
Add the ViewName parameter into the IPmanager configuration file (by default it is located in /usr/local/mgr5/etc/ipmgr.conf):
echo "ViewName <name space>" >> /usr/local/mgr5/etc/ipmgr.conf
BASHView details<name space> — enter the name space of the user in DNSmanager that was created on step 2.
Step 2. Configuring the DNS-server
If you use BIND:
- Edit the DNS-sever configuration file:
- CentOS: /etc/named.conf
- Debian: /etc/bind/named.conf
Change :
view "default" {
BASHinto
view "<name space>" {
BASHView details<name space> — enter the namespace of the user in DNSmanager that was created on step 2 of the
In this section "view" change the values of the match-destinations and transfer-source parameters:
match-destinations { <user IP address>; }; transfer-source <user IP address>;
BASHView details<User IP address> — IP address of the user in DNSmanager created on step 2 of the stage 1. You can find the IP address in DNSmanager → Accounts → Users→ Edit→ IP address.
If you use PowerDNS:
Create the PowerDNS database dump:
mysqldump <database name> > <path to file>
BASHView details<database name> — powerdns for CentOS, pdns for Debian<path to file> — a full path of the dump
Create a database
mysql CREATE DATABASE <database name>
BASHView details<database name> — name space of the user in DNSmanager that was created on step 2 of stage 1. Change the dot in the space name into "_". E.g., if the space name is "example.test", the database name is "example_test".
Import the data from the dump into the database:
mysql <database name> < <path to dump>
BASHView details<database name> — created on step 2.
<path to dump> — created on step 1.
Step 3. Check
Restart IPmanager:
/usr/local/mgr5/sbin/mgrctl -m ipmgr exit
BASH- Make sure that IPmanager and DNSmanager are up and running correctly.