If you are running a VPS hosting business with Virtualizor, proper reverse DNS (rDNS / PTR records) is extremely important for email delivery, reputation, and avoiding spam folder issues.
In this guide, we will build a simple and reliable PowerDNS infrastructure using 2 VPS servers for rDNS management.
Using PowerDNS gives you:
This setup is commonly used by hosting providers and VPS businesses.
Functions:
Example:
ns1.yourdomain.com1.1.1.1Functions:
Example:
ns2.yourdomain.com2.2.2.2You can use:
Ubuntu is easier for beginners.
Update system:
apt update && apt upgrade -y
Install PowerDNS and MariaDB:
apt install pdns-server pdns-backend-mysql mariadb-server -y
Login to MariaDB:
mysql -u root -p
Create database:
CREATE DATABASE powerdns;
GRANT ALL PRIVILEGES ON powerdns.* TO 'pdns'@'localhost' IDENTIFIED BY 'StrongPassword';
FLUSH PRIVILEGES;
Import schema:
mysql -u root -p powerdns < /usr/share/pdns-backend-mysql/schema/schema.mysql.sql
Edit configuration:
nano /etc/powerdns/pdns.conf
Add:
launch=gmysql
gmysql-host=127.0.0.1
gmysql-user=pdns
gmysql-password=StrongPassword
gmysql-dbname=powerdns
api=yes
api-key=YourStrongAPIKey
webserver=yes
webserver-address=0.0.0.0
webserver-allow-from=0.0.0.0/0
master=yes
default-soa-name=ns1.yourdomain.com
Restart:
systemctl restart pdns
systemctl enable pdns
Allow:
Example with UFW:
ufw allow 53/tcp
ufw allow 53/udp
ufw allow 8081/tcp
On VPS 2:
apt install pdns-server pdns-backend-bind -y
Edit:
nano /etc/powerdns/pdns.conf
Add:
slave=yes
master=no
launch=bind
bind-config=/etc/powerdns/named.conf
Restart:
systemctl restart pdns
At your domain registrar create:
| Hostname | IP |
|---|---|
| ns1.yourdomain.com | 1.1.1.1 |
| ns2.yourdomain.com | 2.2.2.2 |
Then use these nameservers for your rDNS domain.
Open Virtualizor Official Website admin panel:
Configuration → DNS Plan
Add:
You must ask your IP provider/datacenter to delegate reverse DNS to your nameservers.
Example:
1.1.1.in-addr.arpa → ns1.yourdomain.com
1.1.1.in-addr.arpa → ns2.yourdomain.com
After delegation, PTR records will work automatically.
Example:
| IP | PTR |
|---|---|
| 1.1.1.10 | mail.example.com |
Important:
For production:
High availability
Better DNS redundancy
Proper email reputation
Easy Virtualizor integration
Professional hosting infrastructure
Scalable for future expansion
A dedicated PowerDNS setup for rDNS is one of the best investments for VPS hosting providers. Using two VPS servers ensures redundancy and improves DNS reliability for customer mail servers.
If you run a hosting business like Ummah Host, this type of infrastructure helps improve client email delivery and overall server reputation significantly.
Author By
Admin