无法使用DNS解析Azure容器实例的IP

时间:2019-04-25 09:16:20

标签: azure azure-container-instances

我刚刚尝试使用Azure容器实例运行Windows容器,但是该容器似乎无法解析我也希望连接的服务器的DNS。

Unhandled Exception: System.Net.Sockets.SocketException: No such host is known
   at System.Net.Dns.InternalGetHostByName(String hostName)
   at System.Net.Dns.GetHostEntry(String hostNameOrAddress)
   at Core.Services.DamAuthenticationService.Login(String username, String password) in C:\build\Core.Services\DamAuthenticationService.cs:line 89
   at Core.Services.DamAuthenticationService..ctor(DamInfo damInfo) in C:\build\Core.Services\DamAuthenticationService.cs:line 32
   at JobCruncher.Startup.ConfigureServices(IServiceCollection services) in C:\build\JobCruncher\Startup.cs:line 44
   at Microsoft.Extensions.Hosting.HostBuilder.CreateServiceProvider()
   at Microsoft.Extensions.Hosting.HostBuilder.Build()
   at JobCruncher.Program.Main(String[] args) in C:\build\JobCruncher\Program.cs:line 13
   at JobCruncher.Program.<Main>(String[] args)

我知道DNS名称是从Azure解析的,我可以从Azure上的其他VM访问它。

有什么迹象表明可以修复它?

0 个答案:

没有答案