CENTOS 8 - cannot bind to UDP port from service
Solution 1:
SELinux only allows the DNS server to bind to ports labeled as dns_port_t
, which currently are:
# semanage port -l | grep -w 53
dns_port_t tcp 53, 853
dns_port_t udp 53, 853
You can add your own custom port to allow this access.
# semanage port -a -t dns_port_t -p udp 5300
# semanage port -l | grep -w 53
dns_port_t tcp 53, 853
dns_port_t udp 5300, 53, 853
(You probably also need to allow TCP, and configure it in PowerDNS.)