Reputation: 11284
I have an Azure ILB ASE deployed, and a webapp deployed inside it at (for example) https://myapp.my-internal domain
. I have an Application Gateway configured, mapping an external domain name to that app via the ILB, and this works well - I can connect to the webapp from the internet via the Application Gateway, as expected.
My webapp needs to talk to an API deployed to the same ILB ASE, at (for example) https://myapi.my-internal-domain
- but when it tries to make this connection, it fails, being unable to resolve the internal domain name:
How can I configure my web app so it can find an api app within the same ILB ASE?
Upvotes: 2
Views: 878
Reputation: 20117
I will summarize the comment to let others who have same question get answer quickly.
To to manually overwrite the MS default DNS settings and use the internal DNS server for web app service, the solution is to add Website_DNS_Server= primary DNS server IP
and Website_DNS_ALT_Server=secondary DNS server IP
” under the App Settings in webapp.
Don't forget to point the address of each app to the ILB private IP in Azure DNS zone. For more details, you could refer to this article.
Upvotes: 3