0

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)?

user2703780
  • 27
  • 1
  • 6

1 Answers1

1

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

Go to your Container Instance and select the Resource Group link. enter image description here

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

Once there, under settings you will see DNS servers

enter image description here

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

micahmckittrick
  • 1,476
  • 8
  • 11