101Network - amagerard/PowerDNS GitHub Wiki
| 1- Network | 2- Pdns | 3- Mariadb | 4- PowerAdmin | 5- PdnsRecursor | 6- Selinux | 
|---|---|---|---|---|---|
| 7- GnomeShell | 8-Synoptic | 09-ManageDns | 10-Troubleshoots | 
The VM PowerDns is a TemplateVM clone.
See the installation of TemplateVM.
The status of selinux is 'permissive'.
getenforce
Permissive  
September 26 ,2025.  
This is  the RedHat version 10  
pdns-4.9.8  
pdns-recursor 5.3.0-1  
MariaDB-server 12.0.2-1  
php 8.4.13-1  
poweradmin 4.0.1  
nginx 1.26.3-1   
I do not recommend installing  VM PowerDns in the same Lan
as your company. The network administrator might not like it.
I isolate my VM PowerDns  with pfsense or ipfire.
This procedure is based on this example.
Dns1 server ip :   192.168.90.41/24
Gateway: 192.168.90.254
Domain: ol26modk.com
Dns1 Server name: dns1.ol26modk.com
vi /etc/hostname
dns1  
At the prompt you will have:<username>@dns1.
This file is consulted before access to the internet.
vi /etc/hosts
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4  
192.168.90.41  dns1.ol26modk.com  dns1  
vi /etc/sysconfig/network
 # Created by anaconda  
 networking=yes  
 HOSTNAME=dns1.ol26modk.com  
Change Network.
Example:
IP: 192.168.90.41/24
Gateway: 192.168.90.254
Name Server: 1.1.1.1
Search domain: ol26modk.com
nmcli con mod eth0 ipv4.method "manual"  ipv4.addresses 192.168.90.41/24
nmcli con mod eth0 ipv4.gateway 192.168.90.254
nmcli con mod eth0 ipv4.dns  1.1.1.1
nmcli con mod eth0 ipv4.dns-search  ol26modk.com
Read the new network configuration.
more /etc/NetworkManager/system-connections/eth0.nmconnection
Apply the new network configuration.
ifconfig eth0 0.0.0.0
systemctl restart NetworkManager
ifconfig eth0
Update.
RedHat may ask you to make a new subscription.
subscription-manager register --username <username> --password <password>  --force
dnf  update
Take over the rules of the TemplateVM firewall.
See Firewall configuration
Add rules.
ufw allow 'DNS'  
ufw allow 'WWW Full'  
ufw status verbose
 Status: active  
Logging: on (medium)  
Default: deny (incoming), deny (outgoing), disabled (routed)  
New profiles: skip  
  
To                         Action      From  
--                         ------      ----  
22                         ALLOW IN    192.168.14.0/29  
53/udp                     ALLOW IN    Anywhere  
80,443/tcp (WWW Full)      ALLOW IN    Anywhere  
  
123/udp (NTP2)             ALLOW OUT   Anywhere  
25/tcp (SMTP)              ALLOW OUT   Anywhere  
587/tcp (SMTP TLS)         ALLOW OUT   Anywhere  
465/tcp (SMTP SSL)         ALLOW OUT   Anywhere  
143/tcp (IMAP TLS)         ALLOW OUT   Anywhere  
993/tcp (IMAP SSL)         ALLOW OUT   Anywhere  
53 (DNS)                   ALLOW OUT   Anywhere  
80,443/tcp (WWW Full)      ALLOW OUT   Anywhere  
67,68/udp (DHCP)           ALLOW OUT   Anywhere  
Restart Dns1 server.
reboot or init6