Migrating Slave DNS Server (Webmin only) from CentOS 7.9 to Rocky Linux 9.1

Subject: Migrating Slave DNS Server (Webmin only) from CentOS 7.9 to Rocky Linux 9.1


Good day from Singapore,


Author: Mr. Turritopsis Dohrnii Teo En Ming (TARGETED INDIVIDUAL)

Country: Singapore

Date: 18 Dec 2022 Sunday 


I have successfully migrated my slave DNS server (Webmin only) from CentOS 7.9 to Rocky Linux 9.1 on 18 Dec 2022 Sunday from 4.40 PM to 6.20 PM. Singapore Time.


Detailed instructions are shown below.


DETAILED INSTRUCTIONS

======================


Backing up the Slave DNS Server running CentOS 7.9

==================================================


There are only 7 files to backup:


[a] /etc/named.conf


[b] 6 hosts files in /var/named/slaves


Reinstalling Virtual Private Server (VPS) from CentOS 7.9 to Rocky Linux 9.1

=============================================================================


Login to Contabo Portal.


Reinstall your VPS from CentOS 7.9 to Rocky Linux 9.1. The process only takes a few minutes. It is blazingly fast.


[root@vmi701385 ~]# cat /etc/os-release

NAME="Rocky Linux"

VERSION="9.1 (Blue Onyx)"

ID="rocky"

ID_LIKE="rhel centos fedora"

VERSION_ID="9.1"

PLATFORM_ID="platform:el9"

PRETTY_NAME="Rocky Linux 9.1 (Blue Onyx)"

ANSI_COLOR="0;32"

LOGO="fedora-logo-icon"

CPE_NAME="cpe:/o:rocky:rocky:9::baseos"

HOME_URL="https://rockylinux.org/"

BUG_REPORT_URL="https://bugs.rockylinux.org/"

ROCKY_SUPPORT_PRODUCT="Rocky-Linux-9"

ROCKY_SUPPORT_PRODUCT_VERSION="9.1"

REDHAT_SUPPORT_PRODUCT="Rocky Linux"

REDHAT_SUPPORT_PRODUCT_VERSION="9.1"








**********************************

**********************************

**********************************

***** MASTER REFERENCE GUIDE *****

**********************************

**********************************

**********************************








For the rest of this guide, you may use the Master Reference Guide.


MASTER REFERENCE GUIDE: [PART 8 - DRAFT 2] [Virtualmin and Webmin] Teo En Ming's Notes for Setting Up Slave DNS Server


Link a: https://sourceforge.net/p/webadmin/mailman/message/37373922/


Link b: https://marc.info/?l=webmin-l&m=163528877500627&w=2


Link c: https://pastebin.com/raw/hVShREH6


START/BEGIN FOLLOWING SECTION E - Setting Up the Slave DNS Server

=================================================================


Follow the notes in Section E of the Master Reference Guide.


# wget https://prdownloads.sourceforge.net/webadmin/webmin-2.010-1.noarch.rpm


[root@vmi701385 ~]# rpm -ivh webmin-2.010-1.noarch.rpm

warning: webmin-2.010-1.noarch.rpm: Header V4 DSA/SHA1 Signature, key ID 11f63c51: NOKEY

error: Failed dependencies:

        perl(lib) is needed by webmin-2.010-1.noarch

        perl(open) is needed by webmin-2.010-1.noarch

        perl(Encode::Detect) is needed by webmin-2.010-1.noarch

        perl(Digest::SHA) is needed by webmin-2.010-1.noarch

        unzip is needed by webmin-2.010-1.noarch

        tar is needed by webmin-2.010-1.noarch


# yum install perl-lib


# yum install perl-open


# yum install perl-Encode-Detect


# yum install perl-Digest-SHA


# yum install unzip


# yum install tar


[root@vmi701385 ~]# rpm -ivh webmin-2.010-1.noarch.rpm

warning: webmin-2.010-1.noarch.rpm: Header V4 DSA/SHA1 Signature, key ID 11f63c51: NOKEY

Verifying...                          ################################# [100%]

Preparing...                          ################################# [100%]

Updating / installing...

   1:webmin-2.010-1                   ################################# [100%]


FOLLOW SECTION F - Login to the Webmin Slave Server for the 1st time

====================================================================


Follow the notes in Section F of the Master Reference Guide.


Login to your Webmin Slave Server at https://185.214.135.104:10000


Dashboard > System Information

===============================


System hostname vmi701385.contaboserver.net (185.214.135.104) Operating system Rocky Linux 9.1

Webmin version 2.010 Authentic theme version 20.10 

Time on system Sunday, December 18, 2022 5:24 PM Kernel and CPU Linux 5.14.0-162.6.1.el9_1.0.1.x86_64 on x86_64

Processor information Intel(R) Xeon(R) CPU E5-2630 v4 @ 2.20GHz, 4 cores System uptime 20 minutes

Running processes 104 CPU load averages 0.17 (1 min) 0.15 (5 mins) 0.08 (15 mins)

Real memory 225.22 MiB used / 541.21 MiB cached / 7.5 GiB total Local disk space 11.64 GiB used / 184.11 GiB free / 195.76 GiB total


FOLLOW SECTION G - Install Firewalld on the Slave Server

=========================================================


Follow the notes in Section G of the Master Reference Guide.


FOLLOW SECTION H - Configuring FirewallD on the Slave Server Using Webmin

=========================================================================


Follow the notes in Section H of the Master Reference Guide.


FOLLOW SECTION I - Install BIND DNS Server on the Slave Server

==============================================================


Follow the notes in Section I of the Master Reference Guide.


# yum install bind


# systemctl enable named


# systemctl start named


# systemctl status named


Reference Guide: Menu item in Webmin > Servers missing for "BIND DNS Server".

Link: https://archive.virtualmin.com/node/59786


Go to Webmin on your Slave server.


Click Refresh Modules on the left menu.


You should now see BIND DNS Server under Servers.


FOLLOW SECTION J - Open Additional Firewall Ports on the Slave Server Using Webmin

======================================================================================


Follow the notes in Section J of the Master Reference Guide.


After creating all the firewall rules in this section,


Apply rules to: Click eth0 then click Apply


Then click Reload FirewallD.


Verification step:


[root@vmi701385 ~]# firewall-cmd --list-all

public (active)

  target: default

  icmp-block-inversion: no

  interfaces: eth0

  sources:

  services: cockpit dhcpv6-client ssh

  ports: 10000/tcp 53/udp 53/tcp 10001-10010/tcp

  protocols:

  forward: yes

  masquerade: no

  forward-ports:

  source-ports:

  icmp-blocks:

  rich rules:


RESTORE /ETC/NAMED.CONF AND 6 HOSTS FILES ON THE NEW ROCKY LINUX 9.1 - THIS IS VERY IMPORTANT!!!

=================================================================================================


# mv /etc/named.conf /etc/named.conf.original


Upload /etc/named.conf and all the 6 hosts files to the new Rocky Linux 9.1.


# systemctl restart named


Troubleshooting: DNS Zones Don't Show Up in Webmin (Slave DNS Server) with Rocky Linux 9.1

==========================================================================================


# chown root:named /etc/named.conf


# chmod 640 /etc/named.conf


# cd /var/named/slaves


# chown root:named *


From llia (Virtualmin Staff):


[QUOTE]


Hi,


It’s known caching bug and @Jamie is aware of it.


To fix this, delete the following file and refresh the page:


/etc/webmin/bind8/zone-names


[/QUOTE]


Reference guide: DNS zone created in Virtualmin but not showing up in Webmin

Link: https://forum.virtualmin.com/t/dns-zone-created-in-virtualmin-but-not-showing-up-in-webmin/104389


# cd /etc/webmin/bind8/


# rm -f zone-names 


Contents of file zone-names:


pidfile_config=/run/named/named.pid

pidfile=/var/run/named.pid

version=4

base=/etc

no_chroot_config=0


CONCLUSION

===========


You have successfully migrated your slave DNS server (Webmin only) from CentOS 7.9 to Rocky Linux 9.1. Congratulations!


Regards,


Mr. Turritopsis Dohrnii Teo En Ming

Targeted Individual in Singapore

Blogs:

https://tdtemcerts.blogspot.com

https://tdtemcerts.wordpress.com






REFERENCES

=============


[01] https://sourceforge.net/p/webadmin/mailman/message/37750326/


[02] https://marc.info/?l=webmin-l&m=167136062524516&w=2


[03] https://lists.resf.org/archives/list/rocky@lists.resf.org/thread/PXKOKDYPIRWDASZJ3ZZWLS7EUOEGVVI5/


[04] https://pastebin.com/raw/PziYvt4R


[05] https://controlc.com/e147e33c


[06] https://www.klgrth.io/paste/k7u7e


[07] https://rentry.co/zbo52


Comments

Popular posts from this blog

How the Singapore Government cheated my family of a HDB flat (Draft 22 Aug 2023)

[DRAFT 26 SEP 2022] HDB refuses to reduce monthly rental fees of my rental flat despite many appeals