Partner with experts to accelerate your digital transformation journey
Bobcares

Dnsadmin failed to answer a request – Let’s fix it

PDF Header PDF Footer

Stuck with, Dnsadmin failed to answer a request? We can help you.

Here, at Bobcares, we assist several of our customers with such errors as part of our Server Management Services.

Today, let us see how our Support Techs fix this for our customers.

 

Dnsadmin failed to answer a request

Most often, we receive this error while we use AutoSSL to acquire SSL certificates. The error message will look like the following:

get_zones_for_domains(): dnsadmin failed to answer a request that it
accepted. at /usr/local/cpanel/Cpanel/DnsUtils/AskDnsAdmin.pm line 130.
Failed to begin “cpaneluser”’s DCV: Can’t use string (“0”) as an
ARRAY ref while “strict refs” in use at
/usr/local/cpanel/Cpanel/SSL/Auto/Run/CAA.pm line 69.

To verify the DNS zones for the domains allocated to the account, we can use the cPanel’s AutoSSL feature.

Suppose, if a zone is corrupted, it can cause the response in cPanel DNSAdmin to fail.

If the DNS request fails, the DNSAdmin log “/usr/local/cpanel/logs/dnsadmin_log” will return similar errors:

[2021-10-08 20:56:07 -0400] info [dnsadmin] Accepted connection on fd=5
Can’t call method “rdata” on an undefined value at
/usr/local/cpanel/Cpanel/NameServer/Utils.pm line 138.
…propagated at whostmgr/bin/dnsadmin.pl line 608.
Can’t call method “rdata” on an undefined value at
/usr/local/cpanel/Cpanel/NameServer/Utils.pm line 138.
…propagated at whostmgr/bin/dnsadmin.pl line 608.

Moving ahead, let us see how our Support Techs fix this error.

Initially, we need to check the DNS zones on the account to determine if any zones return errors:

named-checkzone domain.com /var/named/domain.com.db

We perform this check for all domains on the account to determine the presence of any corrupt DNS zones.

Now, we need to address the errors in the zone files or backup the zone and then perform a reset.

  • Reset a DNS zone file

To reset a DNS zone file, we can either go to the WHM interface DNS Zone Manager or use the WHM API 1 Functions – resetzone.

To make this change using the interface, our Support Techs perform the following steps:

  1. First, we click Manage for the domain that we want to modify. It will open a new interface.
  2. Here, above the zone record table, we click Actions.
  3. Then, from the menu, we can select Reset DNS Zone. We will now see a confirmation window.
  4. Finally, we click Continue to reset the domain’s DNS zone file, or click Cancel.

In case we want to reset a large number of zone files our Support Techs advise automating this process using the API tool.

In cPanel versions 94 or earlier, we can perform this task through the WHM interface Reset a DNS Zone instead.

However, make note that, resetting a zone can result in missing DNS records. So we prefer this only if we cannot repair the DNS zone errors.

[Need further assistance? We are here for you]

 

Conclusion

In short, we saw how our Support Techs fix the cPanel DNS error for our customers.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Get featured on the Bobcares blog and share your expertise with a global tech audience.

WRITE FOR US
server management

Spend time on your business, not on your servers.

TALK TO US

Or click here to learn more.

GET UP TO 25% OFF

cPanel Support

Spend time on your business, not on your servers.

Managing a server is time consuming. Whether you are an expert or a newbie, that is time you could use to focus on your product or service. Leave your server management & end-user tech support to us, and use that time to focus on the growth and success of your business.

TALK TO US Or click here to learn more.

Speed issues driving customers away?
We’ve got your back!