- Plesk Onyx for Windows
How to add zone forwarders IP address to existing domains?
How to do a mass change so all existing Plesk account has the updated IPs allowed for zone transfer?
Note: if you don't have administrative access to Plesk server via RDP, contact your hosting provider regarding the issue
In Plesk for Windows, changes from the server-wide DNS template are applied only to newly created domains.
To add zone forwarders IP address to existing domains:
- Connect to the server via RDP
dns_zones idinto text file:
C:\> plesk db -N -e "select id from dns_zone" > C:\dns_zones.txt
- Use the following command to add Zone forwarders IP into Plesk database:
C:\> for /f %i in (C:\dns_zones.txt); do @(plesk db -N -e "INSERT INTO dns_recs (dns_zone_id, type, host, displayHost, val, displayVal, opt, external_id, time_stamp) VALUES ('%i','AXFR','example.com','example.com','203.0.113.2','203.0.113.2','','','2018-06-30 02:29:20')");
Replace '203.0.113.2' with the actual IP address. Repeat this command to add an additional IP address, if needed.
dns repairutility to synchronize DNS zones with the DNS server
C:\> plesk repair dns