Want to use external DNS and sync all dns zones with digitalocean or vultr via API
Hi,
I want to sync all dns zones of WHM with an external DNS server. I currently have droplet on Digitalocean and want to sync zones with digitalocean, similarly, in some cases I might use Vultr VMs and in that case will sync zones with Vultr NS.
Can someone please help me?
-
Hey there! This is exactly what our DNSOnly product is designed to do, if you were interested in creating a DNS cluster:
https://docs.cpanel.net/knowledge-base/dnsonly/cpanel-dnsonly/
This let's you create a DNS cluster between as many servers as you wish for DNS redundancy.
I don't have any tools available that would let you sync the zones to non-cPanel machines.
0 -
I understand the usage of DNSOnly product but I want to use external DNS service like Vultr and DigitalOcean.
Is it possible to fetch DNS zone details within cpanel via API or hooks and then I can automate to push zone information to external dns service APIs.0 -
Sure - we have two options that might work for this situation.
If you are fine with dealing with encoded output, you can use this call to pull any zone on the server:
https://api.docs.cpanel.net/openapi/whm/operation/parse_dns_zone/
You can also export the entire zone in one encoded output with this command:
https://api.docs.cpanel.net/openapi/whm/operation/export_zone_files/
Would either of these work for you?
0
Please sign in to leave a comment.
Comments
3 comments