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)?
Asked
Active
Viewed 480 times
0
-
Do you mean a VM separate from the container instance? So outside of the default VNET associated with your container instance? – micahmckittrick Jan 18 '19 at 19:41
-
Vm separate but same VNET. – user2703780 Jan 21 '19 at 21:56
1 Answers
1
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.

micahmckittrick
- 1,476
- 8
- 11