My portfolio website is deployed at magnificent-belekoy-c042c8.netlify.app and I have purchased the custom domain atorcode.com as well as an SSL certificate through domain.com. I have also added the appropriate nameservers to domain.com. When I try to access the website using the Netlify URL, it works. However, I am getting a 403 error when trying to access it through the purchased custom domain even though I can see that the DNS is configured correctly under the domain management tab in Netlify’s settings.
I’d greatly appreciate help resolving this issue. I can provide more information if necessary. Thank you!
This is because the old name servers are still active on the domain
% whois atorcode.com | grep 'Name Server'
Name Server: ns2.domain.com
Name Server: ns1.domain.com
Name Server: dns1.p05.nsone.net
Name Server: dns2.p05.nsone.net
Name Server: dns3.p05.nsone.net
Name Server: dns4.p05.nsone.net
And as these servers come up first (for me, unlike it seems for @hrishikesh) the IP in them is hit first
% dig atorcode.com
atorcode.com. 3527 IN A 188.8.131.52
This support guide has all the information you need to sort this issue out