In this guide, I will show you how you can fix the Segmentation fault, and CURL: could not resolve host: for centos7 and cpanel server, when you are unable to update cpanel or apache and the issue is curl not working for some reason or any network issue, here is the solution:

Error: when you run any command it will show this on display:

curl: (6) Could not resolve host: securedownloads.cpanel.net; Unknown error

Fix: To fix the issue please edit the following file using the given command:

Edit:

nano -w /etc/resolv.conf


Add the following lines:

nameserver 8.8.8.8
nameserver 8.8.4.4

that it.

another solution for permanent changes I create an awesome script:

run :

wget shahidmalla.com/dl/fixns.sh
chmod +x fixns.sh
bash fixns.sh
Comments to: How to Fix Segmentation fault or Could not resolve host: Linux cPanel

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