I have put both the App Service and the MySQL Flexible server behind my own VNet and Subnets. MySQL Flexible server use Private DNS Zone. When browse the App URL: mywebsite.azurewebsites.net, I got database connection error. Then I run nslookup command:
# This container is using an embedded dns resolver
# The configured nameservers at startup are 168.63.129.16
# The configured options for the listener at startup are timeout:1 attempts:5
nameserver 127.0.0.11
options ndots:0 timeout:15 attempts:2
Then I update the the nameserver from 127.0.0.11 to 168.63.129.16 in the /etc/resolv.conf, everything is working.
Question: How do I let App Service don't use the embedded dns resolver 127.0.0.11 instead of the Microsoft default DNS168.63.129.16 instead?
Hi,
I have put both the App Service and the MySQL Flexible server behind my own VNet and Subnets. MySQL Flexible server use Private DNS Zone. When browse the App URL:
mywebsite.azurewebsites.net
, I got database connection error. Then I run nslookup command:But if I do
nslookup mywebiste.privatelink.mysql.database.azure.com
It return error:
Then I check the
/etc/resolv.conf
Then I update the the nameserver from
127.0.0.11
to168.63.129.16
in the/etc/resolv.conf
, everything is working.Question: How do I let App Service don't use the embedded dns resolver
127.0.0.11
instead of the Microsoft default DNS168.63.129.16
instead?Thanks
Tao