简体   繁体   中英

Azure Container Instance does not connect to a VM by hostname

I have an azure container instance that knows a VM by IP, but not by hostname. I can solve this by doing the echo ipVM hostnameVM > /etc/hosts. But is there any way to set the VNET DNS Server? If so, how do I access DNS servers Default (Azure-provided)?

If you want to modify the DNS server of a Virtual network

Go to your Container Instance and select the Resource Group link. 在此处输入图片说明

Then once at the resource group level select the Virtual Network resource

Once there, under settings you will see DNS servers

在此处输入图片说明

This will give you access to the DNS servers and you can specify your own instead of using the default Azure ones.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM