Question

Got ERR_NAME_NOT_RESOLVED on droplet Ubuntu Ubuntu 20.04 (LTS) x64

So I deployed a small api with nginx coming together in a docker-compose. The api and the proxy are 2 containers. Then I registered my domain and subdomain with DO. Now I tried to call the api from my angular app (local dev) and got ERR_NAME_NOT_RESOLVED.

Before adding the subdomain, I was able to connect to the server and call the api using postman. After the subdomain added, I got Error: connect ECONNREFUSED IP_ADDRESS:443.

Please give me a hint.

Subscribe
Share

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

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.

Hi @thaistudioh,

Can you confirm if your subdomain name resolving to your droplet? Changes might take up to 48 hours due to DNS cache. You can check DNS propagation using Whats my DNS.

Best regards, Sergio Turpín