Replies: 5 comments 5 replies
-
This is the error I am seeing. |
Beta Was this translation helpful? Give feedback.
-
Is this a regression for you or is this new development work that caused you to encounter this? If it's a regression, what was the configuration that was working? Or are you just attempting to migrate from Debian to Alpine and ran into this? FWIW, I'm not able to repro, presumably because I've got a different DNS. I'm curious if it works if you target Alpine 3.16 instead: You may want to take a look at this too: https://unix.stackexchange.com/questions/441664/alpine-linux-sometimes-dns-is-not-resolved |
Beta Was this translation helpful? Give feedback.
-
It has been happening to us since 2 days on bitbucket pipeline which runs on AWS EC2 environment. It was fine 3 days ago (now is Feb 24th, 2023). It was unable to resolve domain api.nuget.api. Running Running
But running
Could it be due to the IPv6? We will be using the image tag When we use more specific version tag ---UPDATE--- Hope this helps |
Beta Was this translation helpful? Give feedback.
-
Hello @mthalman do you have any update can share on this issue ? |
Beta Was this translation helpful? Give feedback.
-
This issue might be related to |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
When using mcr.microsoft.com/dotnet/aspnet:6.0-alpine3.17-amd64 as the base image for the container, DNS resolution to payuk.api.virginmoney.com times out. It works sometimes but most of the time it times out.
By switching to mcr.microsoft.com/dotnet/aspnet:6.0-bullseye-slim-amd64 the problem goes away.
Steps to Reproduce
This can be reproduced by creating a basic weatherforecast sample application and having this endpoint. Call to this endpoint will fail.
[HttpGet]
[Route("virgin")]
public async Task GetVirgin()
{
var result = await _httpClient.GetAsync("https://payuk.api.virginmoney.com/v2.0/.well-known/openid-configuration");
var payload = await result.Content.ReadAsStringAsync();
return payload;
}
Other Information
We found this post talking about the same issue - https://social.msdn.microsoft.com/Forums/vstudio/en-US/1acf650b-35b5-49e7-bd44-ca10f79f714a/dns-resolution-is-not-working-in-azure-web-app-for-containers-alpine-linux?forum=windowsazurewebsitespreview
We raised a support ticket in Azure and had a couple of Microsoft engineers look into this issue. As this became apparent this was a base image issue, they recommended to create a bug in Github.
Support request ID - 2211210050002481
Also this is not specific to Azure, we were able to reproduce this locally.
Because this is a DNS issue and timing out thought will provide the location as well. London (UK)
As part of the debug process, we changed the DNS server in Azure App Service to point to Google Name server and that also resolved the DNS issue. I changed the DNS server using the below line of code in the docker file
ENTRYPOINT ["/bin/sh" , "-c", "echo nameserver 8.8.8.8 >> /etc/resolv.conf && echo nameserver 8.8.4.4 >> /etc/resolv.conf && dotnet ********"]
Beta Was this translation helpful? Give feedback.
All reactions