dns resolving not working in azure environement

Arne Hebbrecht 0 Reputation points
2024-03-25T14:10:28.6466667+00:00

hello, so i have been looking for a solution for a couple off days now. i' am deploying a frontend (dockerized vue.js) and a backend (dockerized asp.net application). both are inside a subnet (containers) inside a vnet. there is a application gateway with a public ip address. the application loadbalancer backendpool is connected to the fqdn of the frontend. there is a private dns zone that redirects the traffic to the loadbalancer static ip of the environnement.

Now the problem i am having is i can curl with the loadbalanced link to the backend example : curl https://backend.example.com this returns a hello world for testing but now when i connect to the frontend true the public ip and do the same (using axios doing the fetch server side and not in the browser) i get that the dns name is not able to be resolved

what could the problem be ?

Azure DNS
Azure DNS
An Azure service that enables hosting Domain Name System (DNS) domains in Azure.
675 questions
Azure Application Gateway
Azure Application Gateway
An Azure service that provides a platform-managed, scalable, and highly available application delivery controller as a service.
1,063 questions
Azure Container Apps
Azure Container Apps
An Azure service that provides a general-purpose, serverless container platform.
419 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Glen Rego 80 Reputation points Microsoft Employee
    2024-03-25T23:47:31.73+00:00

    @Arne Hebbrecht

    If the Application Gateway listener is configured as a multisite that listens on a specific hostname, attempting to access the DNS name of the public address will not function. Providing additional details about the configuration would be greatly beneficial in gaining further insights.


Your answer

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