Question

Custom domain resolves to ERR_CONNECTION_REFUSED

Hello,

So I have a droplet set up with MERN application. It resolves fine at the ip address.

Nameservers on gandi are set to… ns1.digitalocean.com ns2.digitalocean.com ns3.digitalocean.com

On DO networking tab

A turnup.dev directs to 159.223.164.198 CNAME www.turnup.dev is an alias of turnup.dev. following 3 NS

when these 2 address are pinged in console they both resolve…

Pinging turnup.dev [159.223.164.198] with 32 bytes of data: Reply from 159.223.164.198: bytes=32 time=41ms TTL=47

Its been about almost week, more then enough time for the DNS to prop, and I have cleared my browser cache multiple times

Still when the address is entered in the brows I receive. ERR_CONNECTION_REFUSED

I’ve done very little with the NGINX webserver as this is my first application to be hosted on a VPS, I’m a new developer and have used Heroku up until now. Something to do with the port? Regardless not sure how to proceed, any suggestions would be greatly appreciated.

baberMatt


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

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.

Accepted Answer

Hi @mbaber1142,

In the DNS department, all looks okay.

Let’s turn our attention to Nginx. Have you actually configured your Nginx and is your Domain configured and enabled there? I think the issue might just be there as the Droplet can’t server the Domain to it just not being enabled.

Check this tutorial on STEP 5 and see if you’ve done this:

https://www.digitalocean.com/community/tutorials/how-to-install-nginx-on-ubuntu-20-04

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.