An Azure service that enables hosting Domain Name System (DNS) domains in Azure.
The browser warning about the site not having a certificate is unrelated to Azure DNS itself. DNS only resolves the hostname to an IP address; it does not provide or manage TLS/SSL certificates for the site running on the Azure Linux virtual machine.
To fix the browser error and access the site securely, configure TLS/SSL on the web server that is hosting the site on the Linux VM and ensure DNS resolves correctly:
- Verify DNS resolution
- From the Linux VM and from a client machine, run:
nslookup <your-site-hostname> - Confirm that the hostname resolves to the correct private or public IP of the VM, according to the design (for example, using Azure-provided DNS or custom DNS as described in the DNS name resolution guidance).
- From the Linux VM and from a client machine, run:
- Confirm the VM is reachable on HTTP/HTTPS
- Ensure the web server on the VM is listening on port 80 (HTTP) and/or 443 (HTTPS).
- Check that any Network Security Group or firewall allows inbound traffic on those ports.
- Configure TLS/SSL on the web server
- Install a valid certificate (for example, from a public CA or an internal CA) on the web server (Apache, Nginx, etc.) and bind it to port 443 for the site hostname.
- After the certificate is installed and the web server is restarted, browse to
https://<your-site-hostname>.
- If using private endpoints or private DNS zones
- For services exposed via private endpoints, verify that the DNS configuration (Azure DNS or custom DNS) resolves the service FQDN to the private IP, as described in the private endpoint DNS troubleshooting steps. A wrong IP (public instead of private, or vice versa) can cause connection failures even if the certificate is correct.
The key point is that DNS must resolve the hostname to the correct IP, and the web server at that IP must present a valid TLS certificate for the hostname. Once both are correct, the browser warning about the site not having a certificate will be resolved.
References: