# Domain Management DNS / Domain Management ## Create DNS zone record - [POST /addzonerecord](https://api.docs.cpanel.net/specifications/whm.openapi/domain-management/addzonerecord.md): This function adds a DNS zone record. * When you call this function, you include the additional parameters for the selected zone record type. * When you disable the DNS role, the system this function. On servers that run CentOS 7, you may see a warning about the absence of SPF resource records on DNS. * This warning is relevant on CentOS 7 servers, because RFC 7208 deprecated SPF records. CentOS 7 servers use TXT records instead of SPF records. * Red Hat 7.1 and CentOS 7.1 both contain , which is an updated version of BIND that complies with RFC 7208. To resolve this issue, update your operating system to a version that contains the updated version of BIND. For more information, read the Red Hat Bugzilla case about SPF record errors. ## Create domain alias - [GET /create_parked_domain_for_user](https://api.docs.cpanel.net/specifications/whm.openapi/domain-management/create_parked_domain_for_user.md): This function creates an alias (parks a domain on a web virtual host). ## Create subdomain - [GET /create_subdomain](https://api.docs.cpanel.net/specifications/whm.openapi/domain-management/create_subdomain.md): This function creates a subdomain. ## Delete domain - [GET /delete_domain](https://api.docs.cpanel.net/specifications/whm.openapi/domain-management/delete_domain.md): This function deletes a domain. This function does remove an addon domain's associated subdomain. You also run this function for the associated subdomain. ## Return domain's DS record - [GET /fetch_ds_records_for_domains](https://api.docs.cpanel.net/specifications/whm.openapi/domain-management/fetch_ds_records_for_domains.md): This function fetches a domain's Delegation of Signing (DS) record. Only servers that run PowerDNS can use DNSSEC. If you call this function on a server that doesn't use PowerDNS, you will receive an error. ## Validate local server is authoritative - [GET /has_local_authority](https://api.docs.cpanel.net/specifications/whm.openapi/domain-management/has_local_authority.md): This function checks whether the local server has the authority to publish changes for the domain's DNS records. When you disable the DNS role, the system this function. ## Return DNS record availability & resolver - [GET /is_alias_available](https://api.docs.cpanel.net/specifications/whm.openapi/domain-management/dns::is_alias_available.md): This function returns whether and records are available and the value of the running PowerDNS (PDNS) setting, if any exists. For more information, read our documentation. ## Return HTTPS DNS record support information - [GET /is_https_available](https://api.docs.cpanel.net/specifications/whm.openapi/domain-management/is_https_available.md): This function fetches information regarding HTTPS records support. HTTPS records are defined in RFC 9460 and provide service parameters for HTTPS endpoints. For more information, read our HTTPS record documentation. ## Return domain's mail exchanger records - [GET /listmxs](https://api.docs.cpanel.net/specifications/whm.openapi/domain-management/listmxs.md): This function lists a domain's MX records. When you disable the DNS role, the system this function. ## Restore DNS zone to default values - [GET /resetzone](https://api.docs.cpanel.net/specifications/whm.openapi/domain-management/resetzone.md): This function resets a DNS zone to its default values. This also resets the domain's subdomain DNS records, and restores zone file subdomains in the server's file. For example, use this function to restore DNS zones that are corrupt. Zone resets preserve valid TXT records, but other records will return to their default values. When you disable the DNS role, the system this function. You include either the or the parameters. ## Return domain's IP address - [GET /resolvedomainname](https://api.docs.cpanel.net/specifications/whm.openapi/domain-management/resolvedomainname.md): This function resolves a domain's IPv4 address. ## Create mail exchanger record - [GET /savemxs](https://api.docs.cpanel.net/specifications/whm.openapi/domain-management/savemxs.md): This function creates a new MX record. When you disable the DNS role, the system this function. ## Enable NSEC3 semantics for domain - [GET /set_nsec3_for_domains](https://api.docs.cpanel.net/specifications/whm.openapi/domain-management/set_nsec3_for_domains.md): This function configures the domain to use Next Secure Record 3 (NSEC3) semantics. Only servers that run PowerDNS can use DNSSEC. If you call this function on a server that doesn't use PowerDNS, you will receive an error. ## Enable NSEC semantics for domain - [GET /unset_nsec3_for_domains](https://api.docs.cpanel.net/specifications/whm.openapi/domain-management/unset_nsec3_for_domains.md): This function configures the domain to use Next Secure Record (NSEC) semantics instead of Next Secure Record 3 (NSEC3) semantics. Only servers that run PowerDNS can use DNSSEC. If you call this function on a server that doesn't use PowerDNS, you will receive an error. ## Update /etc/userdomains file - [GET /updateuserdomains](https://api.docs.cpanel.net/specifications/whm.openapi/domain-management/updateuserdomains.md): This function updates the  file based on the entries in  directory. ## Create DNS zone record - [POST /addzonerecord](https://api.docs.cpanel.net/specifications/whm.openapi/domain-management/addzonerecord.md): This function adds a DNS zone record. * When you call this function, you include the additional parameters for the selected zone record type. * When you disable the DNS role, the system this function. On servers that run CentOS 7, you may see a warning about the absence of SPF resource records on DNS. * This warning is relevant on CentOS 7 servers, because RFC 7208 deprecated SPF records. CentOS 7 servers use TXT records instead of SPF records. * Red Hat 7.1 and CentOS 7.1 both contain , which is an updated version of BIND that complies with RFC 7208. To resolve this issue, update your operating system to a version that contains the updated version of BIND. For more information, read the Red Hat Bugzilla case about SPF record errors. ## Create domain alias - [GET /create_parked_domain_for_user](https://api.docs.cpanel.net/specifications/whm.openapi/domain-management/create_parked_domain_for_user.md): This function creates an alias (parks a domain on a web virtual host). ## Create subdomain - [GET /create_subdomain](https://api.docs.cpanel.net/specifications/whm.openapi/domain-management/create_subdomain.md): This function creates a subdomain. ## Delete domain - [GET /delete_domain](https://api.docs.cpanel.net/specifications/whm.openapi/domain-management/delete_domain.md): This function deletes a domain. This function does remove an addon domain's associated subdomain. You also run this function for the associated subdomain. ## Return domain's DS record - [GET /fetch_ds_records_for_domains](https://api.docs.cpanel.net/specifications/whm.openapi/domain-management/fetch_ds_records_for_domains.md): This function fetches a domain's Delegation of Signing (DS) record. Only servers that run PowerDNS can use DNSSEC. If you call this function on a server that doesn't use PowerDNS, you will receive an error. ## Validate local server is authoritative - [GET /has_local_authority](https://api.docs.cpanel.net/specifications/whm.openapi/domain-management/has_local_authority.md): This function checks whether the local server has the authority to publish changes for the domain's DNS records. When you disable the DNS role, the system this function. ## Return DNS record availability & resolver - [GET /is_alias_available](https://api.docs.cpanel.net/specifications/whm.openapi/domain-management/dns::is_alias_available.md): This function returns whether and records are available and the value of the running PowerDNS (PDNS) setting, if any exists. For more information, read our documentation. ## Return HTTPS DNS record support information - [GET /is_https_available](https://api.docs.cpanel.net/specifications/whm.openapi/domain-management/is_https_available.md): This function fetches information regarding HTTPS records support. HTTPS records are defined in RFC 9460 and provide service parameters for HTTPS endpoints. For more information, read our HTTPS record documentation. ## Return domain's mail exchanger records - [GET /listmxs](https://api.docs.cpanel.net/specifications/whm.openapi/domain-management/listmxs.md): This function lists a domain's MX records. When you disable the DNS role, the system this function. ## Restore DNS zone to default values - [GET /resetzone](https://api.docs.cpanel.net/specifications/whm.openapi/domain-management/resetzone.md): This function resets a DNS zone to its default values. This also resets the domain's subdomain DNS records, and restores zone file subdomains in the server's file. For example, use this function to restore DNS zones that are corrupt. Zone resets preserve valid TXT records, but other records will return to their default values. When you disable the DNS role, the system this function. You include either the or the parameters. ## Return domain's IP address - [GET /resolvedomainname](https://api.docs.cpanel.net/specifications/whm.openapi/domain-management/resolvedomainname.md): This function resolves a domain's IPv4 address. ## Create mail exchanger record - [GET /savemxs](https://api.docs.cpanel.net/specifications/whm.openapi/domain-management/savemxs.md): This function creates a new MX record. When you disable the DNS role, the system this function. ## Enable NSEC3 semantics for domain - [GET /set_nsec3_for_domains](https://api.docs.cpanel.net/specifications/whm.openapi/domain-management/set_nsec3_for_domains.md): This function configures the domain to use Next Secure Record 3 (NSEC3) semantics. Only servers that run PowerDNS can use DNSSEC. If you call this function on a server that doesn't use PowerDNS, you will receive an error. ## Enable NSEC semantics for domain - [GET /unset_nsec3_for_domains](https://api.docs.cpanel.net/specifications/whm.openapi/domain-management/unset_nsec3_for_domains.md): This function configures the domain to use Next Secure Record (NSEC) semantics instead of Next Secure Record 3 (NSEC3) semantics. Only servers that run PowerDNS can use DNSSEC. If you call this function on a server that doesn't use PowerDNS, you will receive an error. ## Update /etc/userdomains file - [GET /updateuserdomains](https://api.docs.cpanel.net/specifications/whm.openapi/domain-management/updateuserdomains.md): This function updates the  file based on the entries in  directory. ## Return DNS record availability & resolver - [GET /is_alias_available](https://api.docs.cpanel.net/specifications/whm.openapi/resolvers/dns::is_alias_available.md): This function returns whether and records are available and the value of the running PowerDNS (PDNS) setting, if any exists. For more information, read our documentation. ## Return HTTPS DNS record support information - [GET /is_https_available](https://api.docs.cpanel.net/specifications/whm.openapi/service-records/is_https_available.md): This function fetches information regarding HTTPS records support. HTTPS records are defined in RFC 9460 and provide service parameters for HTTPS endpoints. For more information, read our HTTPS record documentation.