Website is working in netlify subdomain but not with custom domain from external DNS provider

Hi there, everyone. I might be doing something really stupid here, but I was not able to figure out what is happening.
I am developing a website, that is currently hosted at https://gallant-bell-e8eaea.netlify.app/. Then I configured my DNS registry, to point a subdomain teste.rocksprevestibular.com to it. I followed the docs and created a CNAME entry to gallant-bell-e8eaea.netlify.app.
It seems to be pointing it to the right location when I check it on tools like https://www.whatsmydns.net/.

Also, the output of host teste.rocksprevestibular.com on my terminal is:

teste.rocksprevestibular.com is an alias for gallant-bell-e8eaea.netlify.app.
gallant-bell-e8eaea.netlify.app has address 18.230.52.212
gallant-bell-e8eaea.netlify.app has IPv6 address 2600:1f1e:c3c:f300:52c7:5c11:9783:e057

But whenever I try it on my browser, I get a 404 error and a “Not Found” response.
Any help is appreciated, thanks in advance.

Hey @dplucenio, you’ll want to add your custom domain here as well:
https://app.netlify.com/sites/gallant-bell-e8eaea/settings/domain#custom-domains

Be sure to not select “use Netlify DNS” since you have your DNS hosted elsewhere and are just pointing at our servers. Wanna give that a shot and let us know if it fixes things for you?

1 Like

That did the trick @jen, thank you very much!