Update packages:
sudo apt update
Install the Recursor:
sudo apt install pdns-recursor
Enable and start the service:
sudo systemctl enable --now pdns-recursor
Check status:
sudo systemctl status pdns-recursor
PowerDNS recommends using their repository for the latest supported version:
sudo dnf install epel-release
sudo curl -o /etc/yum.repos.d/powerdns-recursor-53.repo https://repo.powerdns.com/repo-files/el-rec-53.repo
sudo dnf install pdns-recursor
sudo systemctl enable --now pdns-recursor
Configuration file:
/etc/powerdns/recursor.conf