Need Help?

Our experts will login to your server within 30 minutes to fix urgent issues.

We will keep your servers stable, secure and fast at all times for one fixed price.

Call Us! 1-800-383-5193
Call Us! 1-800-383-5193

Need Help?

Our experts will login to your server within 30 minutes to fix urgent issues.

We will keep your servers stable, secure and fast at all times for one fixed price.

WordPress cURL Error 6: Could not resolve host – Solve it now

Trying to find a solution for ‘WordPress cURL Error 6: Could not resolve host’? Here’s how we fix it.

The cURL error 6 indicates that the cURL can’t resolve the hostname and it happens whenever there is a problem with the DNS server.

At Bobcares, we often receive requests to fix cURL errors as a part of our Server Management Services.

Today, let’s explore more on this error and see how our Support Engineers fix it.

What is cURL error 6?

cURL error 6 mainly occurs when the given remote host does not resolve properly. Also, it is related to the DNS, and we fix this error by resolving the DNS.

Now, let’s discuss the exact scenario of the error. Recently, one of our WordPress customers approached us with the below error message.

cURL error 6: Couldn't resolve host

He confirmed that he started to receive this error after updating a plugin on the website.

 

How we fix the WordPress cURL Error 6: Could not resolve host?

On checking, our Support Engineers found that the error was occurring due to the WordPress plugin.We follow the below steps to fix the error.

1. First, we log in via SSH and edit /etc/resolv.conf.

vi /etc/resolv.conf

2. Next, we add Google public name servers and comment on the other nameservers.

nameserver 8.8.8.8
nameserver 8.8.4.4
#nameserver 1xx.1xx.1xx.x
#nameserver 1xx.1xx.1xx.x

3. Then after making the changes, we restart Apache or Nginx.

service apache2 restart

This fixes the error.

But sometimes the changes we made to /etc/resolv.conf file will be erased on reboot or restart. So we make some permanent changes in resolv.conf file.

sudo apt-get install resolvconf

Then we open the file to add the nameservers.

vi /etc/resolvconf/resolv.conf.d/base

After that, we add the nameservers on the file.

nameserver 8.8.8.8
nameserver 8.8.4.4

Finally, we save the file. By adding the Google name serves will fix the WordPress cURL Error 6.

 

[Need assistance in fixing cURL errors? – Our Experts are available 24/7.]

 

Conclusion

In short, the WordPress cURL Error 6: Could not resolve host error occurs during the WordPress plugin updates and it is related to DNS. Today, we saw how our Support Engineers fix this error.


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

wordpress

Submit a Comment

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

Privacy Preference Center

Necessary

Necessary cookies help make a website usable by enabling basic functions like page navigation and access to secure areas of the website. The website cannot function properly without these cookies.

PHPSESSID - Preserves user session state across page requests.

gdpr[consent_types] - Used to store user consents.

gdpr[allowed_cookies] - Used to store user allowed cookies.

PHPSESSID, gdpr[consent_types], gdpr[allowed_cookies]
PHPSESSID
WHMCSpKDlPzh2chML

Statistics

Statistic cookies help website owners to understand how visitors interact with websites by collecting and reporting information anonymously.

_ga - Preserves user session state across page requests.

_gat - Used by Google Analytics to throttle request rate

_gid - Registers a unique ID that is used to generate statistical data on how you use the website.

smartlookCookie - Used to collect user device and location information of the site visitors to improve the websites User Experience.

_ga, _gat, _gid
_ga, _gat, _gid
smartlookCookie

Marketing

Marketing cookies are used to track visitors across websites. The intention is to display ads that are relevant and engaging for the individual user and thereby more valuable for publishers and third party advertisers.

IDE - Used by Google DoubleClick to register and report the website user's actions after viewing or clicking one of the advertiser's ads with the purpose of measuring the efficacy of an ad and to present targeted ads to the user.

test_cookie - Used to check if the user's browser supports cookies.

1P_JAR - Google cookie. These cookies are used to collect website statistics and track conversion rates.

NID - Registers a unique ID that identifies a returning user's device. The ID is used for serving ads that are most relevant to the user.

DV - Google ad personalisation

IDE, test_cookie, 1P_JAR, NID, DV, NID
IDE, test_cookie
1P_JAR, NID, DV
NID
hblid

Security

These are essential site cookies, used by the google reCAPTCHA. These cookies use an unique identifier to verify if a visitor is human or a bot.

SID, APISID, HSID, NID, PREF
SID, APISID, HSID, NID, PREF