Join 1M+ other developers and:
- Get help and share knowledge in Q&A
- Subscribe to topics of interest
- Get courses & tools that help you grow as a developer or small business owner
Refreshing DNS on a LEMP Droplet
Hi DO Community,
I’m in the process of moving a client’s website from an old hosting to the DigitalOcean.
Setup: LEMP on Ubuntu 20.04 (+ Wordpress, phpMyAdmin)
I installed and configured SSL certificate (generated with the certbot, –certonly option) on NGINX.
DNS is configured thru DigitalOcean’s Networking panel.
Domain is registered by DirectNic and DNS is set to DigitalOcean’s thru their dashboard.
When I run
curl -v https://mydomain.io within the droplet I get
* Trying 22.214.171.124:443... * TCP_NODELAY set * connect to 126.96.36.199 port 443 failed: Connection refused * Trying 188.8.131.52:443... * TCP_NODELAY set * connect to 184.108.40.206 port 443 failed: Connection refused * Failed to connect to womaneze.io port 443: Connection refused * Closing connection 0 curl: (7) Failed to connect to mydomain.io port 443: Connection refused
The IP address is not correct. It points to the old DNS handled by DirectNic.
I can confirm that my browser (after clearing the DNS on my laptop) hits a new IP using the same command mentioned above and loads the website with a valid SSL certificate.
Thanks to the Wordpress’ Site Health Status page I discovered a several Critical Issues which are related to this particular problem and would really appreciate any help/idea on how to fix this DNS issue (within the droplet).
P.S. Just for the reference… Issues reported by Wordpress:
The REST API encountered an error (cURL error 7: Failed to connect to womaneze.io port 443: Connection refused (httprequestfailed))
There are problems with the HTTPS connection of your website
Your site could not complete a loopback request (cURL error 7: Failed to connect to womaneze.io port 443: Connection refused (httprequestfailed))
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.×