Welcome to the Microsoft Q&A Platform. Thank you for reaching out & I hope you are doing well.
I understand that you are trying to configure Application Gateway as Reverse proxy for a Azure Container Apps which is configured as "Internal".
Issue #1 :
- Application Gateway uses the virtual network's DNS configuration for name resolution.
- See : FAQ
- More info on Backend server DNS resolution
- Can you specify if you are using a custom DNS Server on your VNET or Azure Provided DNS?
- Can you confirm if Private DNS Zone has been linked to this VNET?
- Refer : DNS for Azure Container Apps
- Both Non-custom domains and Custom domains scenarios are explained here
- If you feel that the DNS Configuration of the VNET is correct ,
- Please share the nslookup result of the Container Apps FQDN from a VM in the same VNET as a screenshot.
- Make sure this VM's NIC is configured to use "Inherit from Virtual Network" in it's DNS settings.
Issue #2 :
- I see you are referencing Host name preservation - Azure Architecture Center | Microsoft Learn.
- As the ACA is internal, note that it is not a mandatory requirement to "register" a custom domain
- See : DNS for Azure Container Apps
However, for a production set up, you can register your domain and get a certificate issued to that domain as well
- For Production workloads, we do not recommend the use of Self-signed certificates.
- While technically, you can just create a Private DNS Zone without purchasing a domain and create a self-signed certificate for this domain, because of the previous point this is not recommended.
- Also, purchasing the domain is necessary when you are going to introduce reverse proxy such as App Gateway
- From your screenshots, I see you got the domain validated.
P.S :
- I see you mentioned test results are the same regardless of whether the host name is overridden or not
- However, for correct configuration, it should be overridden as "test.simpleregimen.com"
Cheers,
Kapil