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.

KFSys
Site Moderator
Site Moderator badge
January 20, 2022
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

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Become a contributor for community

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

DigitalOcean Documentation

Full documentation for every DigitalOcean product.

Resources for startups and SMBs

The Wave has everything you need to know about building a business, from raising funding to marketing your product.

Get our newsletter

Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.

New accounts only. By submitting your email you agree to our Privacy Policy

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.