When adding a subdomain as the domain name for a Netlify site, it does not add the root domain, the only domain in the list is the subdomain you added, the only difference is the subdomain “www”, this will also add the root domain, why?
My site is running on www.example.com, the root domain example.com is running on the backend server due to various ports using it. Hence, my users simply type example.com in various apps, and the requested port gives them the correct content, this is not possible (I think) with Netlify.
Port 443 and 80 automatically redirects to www, handled by the backend.
The problem is that when you add www.example.com to Netlify, it also adds example.com, the SSL certificate refuses to propagate until both the domain and the subdomain is pointing towards Netlify, why is that? And is there any way around it?
So far I worked around it by merely pointing the root domain to Netlify, let it recognize it and have my SSL certificate issued, and then revert the root domain back. But I’m afraid this might be necessary every time Netlify tries to renew the certificate.
It would be preferable to use Netlify’s DNS servers directly. But that would require the option to redirect specific ports, like example.com:67823 to a completely different IP.