Subject: Re-configuring BIND DNS Servers for CentOS Web Panel Web
Hosting Control Panel on Amazon AWS Cloud
Author: Mr. Turritopsis Dohrnii Teo En Ming, Singapore
Date: 27 Feb 2020 Thursday
Rationale for Re-configuration of BIND DNS Servers for CentOS Web Panel
===
I have originally followed the approach for cPanel where there are 2
DNS-ONLY servers and one or more cPanel webservers. However, CentOS
Web Panel
implements DNS Clusters differently. Hence I have to re-configure BIND
DNS Servers for CentOS Web Panel web hosting control panel.
PREREQUISITES
=
Part 1 of the series: Mr. Teo En Ming's Guide to Deploying CentOS Web
Panel (CWP) Web Hosting Control Panel on Amazon AWS Cloud
Redundant Blogger and Wordpress blog links:
[1]
https://tdtemcerts.blogspot.com/2020/02/mr-teo-en-mings-guide-to-deploying.html
[2]
https://tdtemcerts.wordpress.com/2020/02/23/mr-teo-en-mings-guide-to-deploying-centos-web-panel-cwp-web-hosting-control-panel-on-amazon-aws-cloud/
Part 2 of the series: Setting Up Mail Server Operation for CentOS Web
Panel Web Hosting Control Panel on Amazon AWS Cloud
Redundant Blogger and Wordpress blog links:
[1]
https://tdtemcerts.blogspot.com/2020/02/setting-up-mail-server-operation-for.html
[2]
https://tdtemcerts.wordpress.com/2020/02/25/setting-up-mail-server-operation-for-centos-web-panel-web-hosting-control-panel-on-amazon-aws-cloud/
THIS guide is Part 3 of the series.
EXTREMELY DETAILED INSTRUCTIONS OF TEO EN MING'S GUIDE
==
Login to Amazon AWS Console.
Setting Up Secondary/Slave DNS Server
=
On the EC2 Dashboard, click Instances.
Click Launch Instance.
Search for centos in the AWS Markpetplace.
Select CentOS 7 (x86_64) - with Updates HVM (free tier eligible).
Click Continue.
Select t2.micro (free tier eligible).
Click Next: Configure Instance Details.
Network: Teo En Ming VPC
Subnet: Public subnet | us-east-2a
Click Protect against accidental termination.
Click Next: Add Storage
Size (GiB): 8
Click Next: Add Tags
Key = Name
Value = slave
Click Next: Configure Security Group
Click Select an existing security group
Select NameServers
Click Review and Launch.
Click Launch.
Select Choose an existing key pair.
Key pair name: cwp
Click Launch Instances.
Click Instances.
Select slave, right click and select Networking > Manage IP Addresses.
Click Allocate an elastic IP to this instance.
Click Allocate.
Click Associate this Elastic IP Address.
Instance: slave
Click Associate.
IPv4 address of Secondary/Slave DNS server is 3.12.224.179
$ ssh -i cwp.pem centos@3.12.224.179
$ sudo passwd
$ su -
# yum -y update && yum -y install wget
# hostnamectl set-hostname ns2.teo-en-ming.com
# cd /usr/local/src && wget http://centos-webpanel.com/cwp-el7-latest
&& sh cwp-el7-latest
Started installing CentOS Web Panel at 9:00 PM on 26 Feb 2020 Wed.
Completed installing CentOS Web Panel at 9:05 PM on 26 Feb 2020 Wed.
Total duration: 5 mins.
#
# CWP Installed#
#
Go to CentOS WebPanel Admin GUI at http://SERVER_IP:2030/
http://3.12.224.179:2030
SSL: https://3.12.224.179:2031
-
Username: root
Password: ssh server root password
MySQL root Password:
#
CentOS Web Panel MailServer Installer
#
SSL Cert name (hostname): ns2.teo-en-ming.com
SSL Cert file location /etc/pki/tls/ private|certs
#
Visit for help: www.centos-webpanel.com
Write down login details and press ENTER for server reboot!
Please reboot the server!
Reboot command: shutdown -r now
# reboot
REFERENCE
=
Guide: Slave DNS Server & Manager - DNS Cluster
Link: https://wiki.centos-webpanel.com/slave-dns-server-manager-dns-cluster
REFERENCE
=
Guide: Slave DNS Server & Manager download version
Link: https://wiki.centos-webpanel.com/slave-dns-server-manager-download-version
Login to the CentOS Web Panel Admin Panel on the Slave.
From the left menu, click on CWP Settings, then select Edit Settings.
Admin Email: c...@teo-en-ming-corp.com
Check Activate NAT-ed network configuration.
Click Save Changes.
Create a New Account on the Secondary/Slave DNS Server
==
From the left menu, click User Accounts, then click New Account.
Domain name: teo-en-ming.com
Username: slave
Package: default
Click Create.
Download Slave DNS Manager and upload it to public_html folder on the
Secondary/Slave DNS Server
ssh -i cwp.pem centos@3.12.224.179
su -
cd /home/slave/public_html
wget http://dl1.centos-webpanel.com/files/c