my website is running on a ubuntu 18.04 vps and im using nginx

i recently noticed that wp-cron is not getting excecuted properly so i installed WP-Cron Status Checker plugin and it shows

cURL error 6: Could not resolve host: www.mydomain.com

then i tried running

curl www.mydomain.com 

via ssh and it also returns the same error

curl: (6) Could not resolve host: www.mydomain.com

curl www.google.com runs without any errors

nslookup gives this

$nslookup gpornxxx.com

Non-authoritative answer:
Name:   mydomain.com
Address: 116.xxx.xxx.xxx
Name:   mydomain.com
Address: 116.{ipv4 address }
Name:   mydomain.com
Address: 2606:{ipv6 address}
Name:   mydomain.com
Address: 2606:{ipv6 address }


$nslookup www.mydomain.com


   Non-authoritative answer:
   *** Can't find www.mydomain.com: No answer

what might be the problem here?

**website work fine without any errors

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.