I have set up a website on my Proliant rack server (Running windows server 2012 R2) using IIS and Joomla as a CMS.
Everything works perfectly, except for one thing. Whenever I search up my website on Google, it shows my public IP instead of the domain name. It should look like this, but instead, it looks like this. How do I get my domain name to show up instead of the IP? I have configured the FQDN of my server to be example.com. My DNS records are as follows:
A record: Host:example.com, Points to: [my public IP]
CNAME: Host:www.example.com, Points to: example.com
I have set the live_site
option in the Joomla config to https://example.com/
.
I have also claimed my domain on Google search console, if that is important.
Any help is appreciated.