-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Closed
Labels
area-System.Netin-prThere is an active PR which will close this issue when it is mergedThere is an active PR which will close this issue when it is merged
Milestone
Description
Is there an existing issue for this?
- I have searched the existing issues
Describe the bug
On .NET 6 alpine images, the setting to Disable IPv6 has no impact if the remote resource/URL does not have a Quad A DNS record.
Such an outbound request fails with System.Net.Http.HttpRequestException: Resource temporarily unavailable (remote_url)
Inner Exception : System.Net.Sockets.SocketException (11) : Resource temporarily unavailable.
The following setting "System.Net.DisableIPv6" : true has been tried and this does not seem to have any impact.
For Java applications calling the same remote url, the following setting disables ipv6 attempts and only ipv4 is attempted:
ENTRYPOINT ["java", "-Djava.net.preferIPv4Stack=true", "-Djava.security.egd=file:/dev/./urandom", "-jar", "/app.jar"]
Expected Behavior
No response
Steps To Reproduce
No response
Exceptions (if any)
No response
.NET Version
No response
Anything else?
No response
Metadata
Metadata
Assignees
Labels
area-System.Netin-prThere is an active PR which will close this issue when it is mergedThere is an active PR which will close this issue when it is merged