Linux system error curl: Couldn’t resolve host

Viewed 10

curl: (6) Could not resolve host: domain.com...

Unable to request access to domain name in the system

1 Answers

Edit the following files in the system:

vi /etc/resolv.conf

Modify the file content to the following:

nameserver 8.8.8.8
nameserver 8.8.4.4

Re access the curl address.