01Network - amagerard/PowerDNS GitHub Wiki
1- Network | 2- Pdns | 3- Mariadb | 4- PowerAdmin | 5- PdnsRecursor | 6- Selinux |
---|---|---|---|---|---|
7- GnomeShell | 8-Synoptic | 09-ManageDns | 10-Update |
The VM PowerDns is a TemplateVM clone.
See the installation of TemplateVM.
The status of selinux is 'permissive'.
vi /etc/crontab
@reboot root setenforce 0
January 26 ,2025.
This is the RedHat version 9.5
pdns-4.8.4
pdns-recursor 4.8.9
MariaDB-server-11.6.2
php 8.4
poweradmin 3.9.0
It's not apache but nginx
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
# # 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> --auto-attach --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