cPanel DNS API

The DNS module for UAPI.

GitHub OpenAPI
Business capability
IT Infrastructure Management BC-600.50

Operations 54

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /DNS/ensure_domains_reside_only_locally Check if domains resolve only on this server · Return whether domains only resolve locally #
Ask an LLM
“Do my domains resolve exclusively to the server they're hosted on?”
“How can I check whether a domain only resolves locally?”
Tell an agent
Check whether {domain} resolves only locally.
Tell me if {domain} resolves exclusively to this server.
GET /DNS/fetch_cpanel_generated_domains List cPanel-generated subdomains · Retrieve cPanel-generated subdomains for a domain #
Ask an LLM
“Which proxy subdomains like webmail and mail does cPanel generate for a domain?”
“Can I see the system-generated subdomains for a domain?”
Tell an agent
List cPanel-generated subdomains for {domain}.
Show the proxy subdomains cPanel creates for {domain}.
GET /DNS/has_local_authority Check whether local DNS is authoritative · Return whether local DNS server is authoritative #
Ask an LLM
“Is my local DNS server authoritative for a domain's records?”
“Which domains does this server have authority over?”
Tell an agent
Check whether the local server is authoritative for {domain}.
Find out which domains the local DNS server publishes.
GET /DNS/is_alias_available Check ALIAS and ANAME record support · Return `ALIAS` DNS record availability & resolver #
Ask an LLM
“Are ALIAS and ANAME DNS records supported on my server?”
“What does PowerDNS report about the resolver setting for ALIAS records?”
Tell an agent
Check ALIAS and ANAME record availability and the resolver setting.
Tell me whether ANAME records are supported.
GET /DNS/is_https_available Check HTTPS record support · Return DNS HTTPS record support information #
Ask an LLM
“Does my DNS support HTTPS records as defined in RFC 9460?”
“Can I confirm HTTPS record support for a domain?”
Tell an agent
Check HTTPS record support.
Get HTTPS record support information for this domain.
GET /DNS/is_svcb_available Check SVCB record support · Return DNS SVCB record support information #
Ask an LLM
“Is my DNS server set up to support SVCB records?”
“Can I verify SVCB record support before adding service binding records?”
Tell an agent
Check SVCB record support.
Get SVCB record support information for this domain.
GET /DNS/lookup Look up DNS zone information for a domain · Return domain's DNS information #
Ask an LLM
“What DNS zone information does a domain have?”
“Can I fetch the full zone file for a domain?”
Tell an agent
Look up DNS zone information for {domain}.
Fetch the zone file for {domain}.
GET /DNS/mass_edit_zone Edit a DNS zone with add, edit and remove · Update a DNS zone #
Ask an LLM
“Can I add, edit and remove several DNS records in one zone edit?”
“Does the mass zone edit keep records on the same lines as before?”
Tell an agent
Edit zone {zone} with serial {serial} by adding {add}.
Update zone {zone} serial {serial} by removing lines {remove}.
GET /DNS/parse_zone Parse a DNS zone file · Return a parsed DNS zone #
Ask an LLM
“Can I parse a DNS zone file into a structured record list?”
“What does the raw zone file look like when parsed?”
Tell an agent
Parse DNS zone {zone}.
Show the parsed records of zone {zone}.
GET /DNS/swap_ip_in_zones Replace a domain's IP address in DNS zones · Update IP addresses in zone files #
Ask an LLM
“Can I replace a domain's IPv4 address in its DNS zone files?”
“Can I swap the FTP IP address as well as the main IP?”
Tell an agent
Replace the IP address in {domain}'s DNS zones with {dest_ip}.
Swap {domain}'s IP to {dest_ip} and its FTP IP to {ftp_ip}.
GET /activate_zone_key Activate a DNSSEC zone key · Enable domain's DNSSEC key #
Ask an LLM
“Can I turn on a DNSSEC security key for a domain?”
“What key ID do I need to activate a DNSSEC key?”
Tell an agent
Activate DNSSEC key {key_id} for {domain}.
Turn on the DNSSEC security key {key_id} on {domain}.
GET /add_zone_key Create a DNSSEC zone key · Create domain's DNSSEC zone key #
Ask an LLM
“Can I generate a DNSSEC zone key for a domain?”
“What algorithm and key size can I choose when adding a DNSSEC key?”
Tell an agent
Add a {key_type} DNSSEC key to {domain} using algorithm {algo_num}.
Create a {key_type} DNSSEC key of size {key_size} for {domain} with algorithm {algo_num}.
GET /adddns Create a DNS zone for a domain · Create DNS zone #
Ask an LLM
“How do I create a DNS zone for a new domain?”
“Can I choose the zone template and owner when creating a DNS zone?”
Tell an agent
Create a DNS zone for {domain} on IP {ip}.
Create zone {domain} on {ip} owned by {trueowner} using template {template}.
POST /addzonerecord Add a DNS record to a zone · Create DNS zone record #
Ask an LLM
“Can I add a DNS record to a zone with its type-specific parameters?”
“What do I need to add a new record to an existing zone?”
Tell an agent
Add a DNS record to the zone.
Create a new zone record with its type-specific parameters.
GET /cluster_member_has_trust_with Check DNS cluster trust between servers · Return whether DNS cluster server can share records #
Ask an LLM
“Can DNS cluster servers share records with each other?”
“Do nameservers in my DNS cluster have a reverse trust relationship?”
Tell an agent
Check whether {host} trusts {althost} in the DNS cluster.
Verify DNS cluster trust between {host} and {althost}.
GET /create_parked_domain_for_user Park a domain on a web virtual host · Create domain alias #
Ask an LLM
“How do I park a domain on a cPanel account's web virtual host?”
“Can I park a parked domain on a subdomain of the web virtual host?”
Tell an agent
Park {domain} on {username}'s web virtual host {web_vhost_domain}.
Alias {domain} to {web_vhost_domain} for user {username}.
GET /create_subdomain Create a subdomain · Create subdomain #
Ask an LLM
“How do I create a subdomain with its own document root?”
“Can I create a subdomain that uses a canonical name for self-referential URLs?”
Tell an agent
Create subdomain {domain} with document root {document_root}.
Add subdomain {domain} on {document_root} using canonical name {use_canonical_name}.
GET /deactivate_zone_key Deactivate a domain's DNSSEC key · Disable domain's DNSSEC key #
Ask an LLM
“How do I stop using DNSSEC for a domain?”
“Can I deactivate a DNSSEC key on a PowerDNS server?”
Tell an agent destructive · confirm first
Deactivate DNSSEC key {key_id} for domain {domain}.
Turn off DNSSEC security key {key_id} on {domain}.
GET /delete_domain Delete a domain · Delete domain #
Ask an LLM
“How do I delete a parked domain?”
“Does deleting a domain also remove its addon subdomain?”
Tell an agent destructive · confirm first
Delete domain {domain}.
Remove the parked domain {domain} from its web virtual host.
GET /disable_dnssec_for_domains Disable DNSSEC on a domain · Disable DNSSEC on domain #
Ask an LLM
“Can I disable DNSSEC on a domain?”
“What happens to the DNSSEC keys when DNSSEC is turned off?”
Tell an agent destructive · confirm first
Disable DNSSEC on {domain}.
Turn off DNSSEC for {domain} and remove its DS records.
GET /dumpzone Dump a domain's DNS zone configuration · Return domain's DNS zone configuration #
Ask an LLM
“What is the full zone configuration for a domain?”
“Can I export a DNS zone's records?”
Tell an agent
Dump the DNS zone configuration for {domain}.
Get the zone contents of {domain} using zone {zone}.
POST /editzonerecord Edit a DNS zone record · Update DNS zone record #
Ask an LLM
“How do I change a record in a DNS zone?”
“Can I update a single zone record without a full dump?”
Tell an agent
Edit this DNS zone record with the changes I specify.
Update the zone record using the zone parameters I send.
GET /enable_dnssec_for_domains Enable DNSSEC on a domain · Enable DNSSEC on domain #
Ask an LLM
“How do I turn on DNSSEC for a domain?”
“Can I choose the DNSSEC algorithm and number of iterations?”
Tell an agent
Enable DNSSEC on {domain}.
Enable DNSSEC on {domain} with algorithm {algo_num} and {nsec3_iterations} iterations.
GET /export_zone_dnskey Export a domain's DNSKEY record · Export domain's DNSKEY record value #
Ask an LLM
“How do I export the DNSKEY record value for a domain?”
“Can I fetch a DNSSEC key by its ID?”
Tell an agent
Export the DNSKEY record for {domain} with key ID {key_id}.
Get the DNSKEY value of {domain}.
GET /export_zone_files Export DNS zones as zone files · Export DNS zones in zone file format #
Ask an LLM
“How do I download my DNS zones in RFC-1035 format?”
“Can I export several zones at once?”
Tell an agent
Export the DNS zones {zone} as zone files.
Download the zone files for {zone}.
GET /export_zone_key Export a DNSSEC security key · Export domain's DNSSEC key #
Ask an LLM
“How do I export a DNSSEC key for a domain?”
“Can I export a key by its ID?”
Tell an agent
Export the DNSSEC key {key_id} for {domain}.
Get the security key data for {domain}.
GET /fetch_ds_records_for_domains Fetch a domain's DS record · Return domain's DS record #
Ask an LLM
“What does a domain's Delegation of Signing (DS) record contain?”
“Where can I fetch DS records for DNSSEC?”
Tell an agent
Fetch the DS record for {domain}.
Get the Delegation of Signing record for {domain}.
GET /get_nameserver_config Get the current user's nameservers · Return current user's nameservers #
Ask an LLM
“Which nameservers are set for my user account?”
“What default nameservers does the current user have?”
Tell an agent
Show my current user's nameserver configuration.
Get the default nameservers for the logged-in user.
GET /getzonerecord Get one line from a DNS zone · Return specific line from domain's DNS configuration #
Ask an LLM
“How do I read a single line from a domain's DNS zone?”
“Can I fetch a DNS record by its line number?”
Tell an agent
Get line {line} from the DNS zone of {domain}.
Show the {line}th record in {domain}'s zone.
GET /has_local_authority Validate local authority over a domain · Validate local server is authoritative #
Ask an LLM
“Is this server allowed to publish DNS changes for a domain?”
“Can I confirm local DNS authority for a domain?”
Tell an agent
Validate that local authority covers {domain}.
Check whether this server can publish changes for {domain}.
GET /import_zone_key Import a DNSSEC security key · Import DNSSEC key #
Ask an LLM
“How do I import a DNSSEC key into a domain?”
“Can I import a key by its data and type?”
Tell an agent
Import the DNSSEC key {key_data} of type {key_type} into {domain}.
Add the security key {key_data} to {domain}.
GET /is_alias_available Check whether ALIAS records are supported · Return `ALIAS` DNS record availability & resolver #
Ask an LLM
“Is the ALIAS DNS record type available on this server?”
“What resolver setting does PowerDNS use for ALIAS records?”
Tell an agent
Check whether ALIAS and ANAME records are supported.
Tell me if ALIAS records are available and show the resolver setting.
GET /is_https_available Check HTTPS record support · Return HTTPS DNS record support information #
Ask an LLM
“Does the DNS server support HTTPS records for HTTPS endpoints?”
“What does the system say about HTTPS record support?”
Tell an agent
Get HTTPS DNS record support information.
Show whether HTTPS records are supported.
GET /is_svcb_available Check SVCB record support · Return SVCB DNS record support information #
Ask an LLM
“Is the SVCB record type supported on this server?”
“What does the system report about SVCB record support?”
Tell an agent
Get SVCB record support information.
Tell me whether SVCB records are supported.
GET /killdns Delete a DNS zone · Delete DNS zone #
Ask an LLM
“How do I delete a DNS zone?”
“What happens to the XDNS entries when a zone is deleted?”
Tell an agent destructive · confirm first
Delete the DNS zone for {domain}.
Remove the {domain} zone from the server.
GET /listmxs List a domain's MX records · Return domain's mail exchanger records #
Ask an LLM
“Which mail exchanger records exist for a domain?”
“Can I see the MX servers a domain uses?”
Tell an agent
List the MX records for {domain}.
Show the mail server addresses for {domain}.
GET /listzones List the server's DNS zones · Return server's DNS zones #
Ask an LLM
“Which DNS zones does this server host?”
“Can I see all my DNS zones at once?”
Tell an agent
List all DNS zones on the server.
Show every DNS zone I manage.
GET /lookupnsip Look up a nameserver's IP address · Return nameserver's IP address #
Ask an LLM
“How do I get the IPv4 address of a nameserver?”
“Can I resolve a nameserver hostname to an IP?”
Tell an agent
Look up the IP address of nameserver {host}.
Resolve {host} to an IPv4 address.
GET /lookupnsips Look up a nameserver's IPv4 and IPv6 addresses · Return nameserver's IPv4 and IPv6 addresses #
Ask an LLM
“How do I get both IPv4 and IPv6 addresses of a nameserver?”
“Can I resolve a nameserver to dual-stack addresses?”
Tell an agent
Look up both IPv4 and IPv6 addresses of {host}.
Resolve {host} to its dual-stack addresses.
GET /mass_edit_dns_zone Edit many records in a DNS zone at once · Update a DNS zone #
Ask an LLM
“How do I add, edit and remove many DNS records in one call?”
“Can I change a zone's serial and add records in a single edit?”
Tell an agent
Edit zone {zone} with serial {serial} and add {add}.
Mass-edit zone {zone} with serial {serial}, editing {edit} and removing {remove}.
GET /parse_dns_zone Parse a DNS zone into records · Return a parsed DNS zone #
Ask an LLM
“How do I parse a DNS zone file into its records?”
“Can I read a zone as a list of records rather than text?”
Tell an agent
Parse the DNS zone {zone} into records.
Read zone {zone} as individual zone records.
GET /remove_zone_key Remove a DNSSEC security key · Remove DNSSEC key #
Ask an LLM
“How do I remove a DNSSEC key from a domain?”
“Can I remove a DNSSEC key on a non-PowerDNS server?”
Tell an agent destructive · confirm first
Remove DNSSEC key {key_id} from {domain}.
Delete the DNSSEC key {key_id} on {domain}.
GET /removezonerecord Delete a DNS zone record · Delete DNS zone record #
Ask an LLM
“How do I delete a single record from a DNS zone?”
“What line number do I need to remove a zone record?”
Tell an agent destructive · confirm first
Delete zone record {line} from {zone}.
Remove record {line} in zone {zone} with serial {serialnum}.
GET /resetzone Restore a DNS zone to defaults · Restore DNS zone to default values #
Ask an LLM
“How do I fix a corrupt DNS zone?”
“Does resetting a zone keep TXT records?”
Tell an agent destructive · confirm first
Reset the DNS zone {zone} to its default values.
Restore the DNS zone {zone} for user {user}.
GET /resolvedomainname Resolve a domain to an IP address · Return domain's IP address #
Ask an LLM
“What IP address does a domain resolve to?”
“Can I look up a domain's IPv4 address?”
Tell an agent
Resolve the domain {domain} to an IP address.
Look up the IPv4 address of {domain}.
GET /savemxs Create a mail exchanger record · Create mail exchanger record #
Ask an LLM
“How do I add an MX record so mail goes to a different server?”
“Can I set the priority of a mail exchanger record?”
Tell an agent
Create an MX record {preference} for {domain} with exchange {exchange} named {name}.
Add mail exchanger {exchange} to {domain} with priority {preference} and TTL {ttl}.
GET /set_nameserver Set nameserver software on a DNS cluster · Update remote DNS server's nameserver software #
Ask an LLM
“How do I switch the nameserver software on my DNS cluster?”
“Can I set the DNS cluster to run BIND or PowerDNS?”
Tell an agent
Set the DNS cluster nameserver software to {nameserver}.
Queue nameserver software {nameserver} for the DNS cluster.
GET /set_nsec3_for_domains Enable NSEC3 semantics on a domain · Enable NSEC3 semantics for domain #
Ask an LLM
“How do I enable NSEC3 semantics for DNSSEC?”
“Can I choose how many NSEC3 iterations and salt a domain uses?”
Tell an agent
Enable NSEC3 semantics on {domain} with {nsec3_iterations} iterations, salt {nsec3_salt}, narrow {nsec3_narrow}, opt-out {nsec3_opt_out}.
Configure DNSSEC for {domain} using NSEC3 with {nsec3_iterations} iterations and salt {nsec3_salt}.
GET /set_up_dns_resolver_workarounds Create an Unbound DNS resolver config · Create unbound DNS resolver #
Ask an LLM
“How do I set up an Unbound DNS resolver on a server?”
“Can I create a libunbound resolver configuration?”
Tell an agent
Create an Unbound DNS resolver configuration.
Set up an Unbound resolver on this server.
GET /setresolvers Set the server's resolver nameservers · Update server's resolver nameservers #
Ask an LLM
“How do I change which nameservers my server uses to resolve DNS?”
“Why should I never set a resolver to 127.0.0.1?”
Tell an agent
Set the server's primary resolver to {nameserver1} and secondary to {nameserver2}.
Point the server's resolvers at {nameserver1} and {nameserver2}, tertiary {nameserver3}.
GET /unset_nsec3_for_domains Switch a domain back to NSEC semantics · Enable NSEC semantics for domain #
Ask an LLM
“How do I stop using NSEC3 and go back to NSEC for a domain?”
“Can I disable NSEC3 semantics on a domain?”
Tell an agent
Disable NSEC3 semantics on {domain} and use NSEC instead.
Switch {domain} from NSEC3 back to NSEC semantics.
GET /update_nameservers_config Update the default nameservers in wwwacct.conf · Update default nameservers #
Ask an LLM
“How do I change the default nameservers for new accounts?”
“Can I set NS2 and NS3 in wwwacct.conf?”
Tell an agent
Set the default nameserver in wwwacct.conf to {nameserver}.
Update wwwacct.conf with nameservers {nameserver}, {nameserver2}, {nameserver3}, {nameserver4}.
GET /update_reverse_dns_cache Update the reverse DNS cache · Update reverse DNS cache #
Ask an LLM
“How do I refresh the reverse DNS cache for local IPs?”
“Can I rebuild the map of IPs to reverse DNS names?”
Tell an agent
Update the reverse DNS cache.
Rebuild the local IP to reverse DNS name map.
GET /updateuserdomains Update the /etc/userdomains file · Update /etc/userdomains file #
Ask an LLM
“How do I sync /etc/userdomains with the users directory?”
“Does updating userdomains affect account creation?”
Tell an agent
Update the /etc/userdomains file from /var/cpanel/users.
Rebuild the userdomains list for new accounts.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/cpanel:cpanel-dns-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

cpanel-dns-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Cpanel DNS API
  version: 11.137.9999.106
  contact:
    email: cs@cpanel.net
    name: WebPros International, LLC
    url: https://cpanel.net/support/
  license:
    name: cPanel License
    url: https://cpanel.net/legal-notices/
  termsOfService: https://cpanel.net/legal-notices/
  x-api-evangelist-provenance: 'Harvested verbatim from cPanel''s developer portal on 2026-09-05 via the MCP tool get-full-api-description at https://api.docs.cpanel.net/mcp. ONE mechanical change was made before storage: example values containing PEM private-key or certificate blocks, and AWS-access-key-shaped example strings, were replaced with REDACTED_* placeholders so the file can be stored in a public git repository without tripping secret scanning. No path, operation, parameter, schema or description was altered, added or removed.'
  description: 'Operations tagged DNS across 2 of this provider''s published API definitions: cpanel-uapi-openapi.yml, cpanel-whm-api-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- description: A server running cPanel.
  url: https://{host}:{port}/execute
  variables:
    host:
      default: cpanel-server.tld
      description: The hostname of a server running cPanel.
    port:
      default: '2083'
      description: The cPanel port.
- description: A server running WHM.
  url: https://{host}:{port}/json-api
  variables:
    host:
      default: whm-server.tld
      description: The hostname of a server running WHM.
    port:
      default: '2087'
      description: The WHM port.
security:
- BasicAuth: []
tags:


# --- truncated at 32 KB (343 KB total) ---
# Full source: https://artifacts.apis.io/cpanel/openapi/cpanel-dns-api-openapi.yml