Share via

Cannot access DNS address from browser - Azure Linux virtual machine

R-Admin228 20 Reputation points
2026-05-20T17:07:37.4666667+00:00

Trouble opening DNS address in Azure Linux virtual machine.

All browsers display this warning: This site does not have a certificate

Did not have this problem before. How to fix this?

Picture9

Azure DNS
Azure DNS

An Azure service that enables hosting Domain Name System (DNS) domains in Azure.


1 answer

Sort by: Most helpful
  1. AI answer

    2026-05-20T17:07:58.84+00:00

    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:

    1. 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).
    2. 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.
    3. 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>.
    4. 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:

    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.