orbstack / orbstack

Fast, light, simple Docker containers & Linux machines for macOS
https://orbstack.dev
MIT License
4.48k stars 31 forks source link

DNS fails intermittently in containers and docker linux vm #1163

Closed natehaze closed 1 month ago

natehaze commented 1 month ago

Describe the bug

DNS fails to get the IP of a Azure Openai endpoint intermittently. This happens both in containers and the vm. It can be seen in nslookup, curl and within Python httpx.

Looking at nslookup, one sees that an ip resolves something like 90% of the time. Other times (curl for example):

curl: (6) Could not resolve host: <resource>.openai.azure.com

To Reproduce

literally

nslookup <resource>.openai.azure.com

or other Azure OpenAI endpoints.

Expected behavior

DNS should always work - goes without saying.

Diagnostic report (REQUIRED)

no IP:

Server:     198.19.248.200
Address:    198.19.248.200:53

Non-authoritative answer:
test-orbstack-azure-openai.openai.azure.com canonical name = northcentralus.api.cognitive.microsoft.com
northcentralus.api.cognitive.microsoft.com  canonical name = cognitiveusncprod.trafficmanager.net
cognitiveusncprod.trafficmanager.net    canonical name = cognitiveusncprod.azure-api.net
cognitiveusncprod.azure-api.net canonical name = apimgmttmi40hhvc3rab02w42wawcsasi6on7rfvvk7jzicxfe.trafficmanager.net
apimgmttmi40hhvc3rab02w42wawcsasi6on7rfvvk7jzicxfe.trafficmanager.net   canonical name = cognitiveusncprod-northcentralus-01.regional.azure-api.net
cognitiveusncprod-northcentralus-01.regional.azure-api.net  canonical name = api84287e48f263467683fa149da80d544epg97zv60cq1jpwug3t1ny.northcentralus.cloudapp.azure.com

Non-authoritative answer:
test-orbstack-azure-openai.openai.azure.com canonical name = northcentralus.api.cognitive.microsoft.com
northcentralus.api.cognitive.microsoft.com  canonical name = cognitiveusncprod.trafficmanager.net
cognitiveusncprod.trafficmanager.net    canonical name = cognitiveusncprod.azure-api.net
cognitiveusncprod.azure-api.net canonical name = apimgmttmi40hhvc3rab02w42wawcsasi6on7rfvvk7jzicxfe.trafficmanager.net
apimgmttmi40hhvc3rab02w42wawcsasi6on7rfvvk7jzicxfe.trafficmanager.net   canonical name = cognitiveusncprod-northcentralus-01.regional.azure-api.net
cognitiveusncprod-northcentralus-01.regional.azure-api.net  canonical name = api84287e48f263467683fa149da80d544epg97zv60cq1jpwug3t1ny.northcentralus.cloudapp.azure.com

IP

~ # nslookup test-orbstack-azure-openai.openai.azure.com
Server:     198.19.248.200
Address:    198.19.248.200:53

Non-authoritative answer:
test-orbstack-azure-openai.openai.azure.com canonical name = northcentralus.api.cognitive.microsoft.com
northcentralus.api.cognitive.microsoft.com  canonical name = cognitiveusncprod.trafficmanager.net
cognitiveusncprod.trafficmanager.net    canonical name = cognitiveusncprod.azure-api.net
cognitiveusncprod.azure-api.net canonical name = apimgmttmi40hhvc3rab02w42wawcsasi6on7rfvvk7jzicxfe.trafficmanager.net
apimgmttmi40hhvc3rab02w42wawcsasi6on7rfvvk7jzicxfe.trafficmanager.net   canonical name = cognitiveusncprod-northcentralus-01.regional.azure-api.net
cognitiveusncprod-northcentralus-01.regional.azure-api.net  canonical name = api84287e48f263467683fa149da80d544epg97zv60cq1jpwug3t1ny.northcentralus.cloudapp.azure.com

Non-authoritative answer:
test-orbstack-azure-openai.openai.azure.com canonical name = northcentralus.api.cognitive.microsoft.com
northcentralus.api.cognitive.microsoft.com  canonical name = cognitiveusncprod.trafficmanager.net
cognitiveusncprod.trafficmanager.net    canonical name = cognitiveusncprod.azure-api.net
cognitiveusncprod.azure-api.net canonical name = apimgmttmi40hhvc3rab02w42wawcsasi6on7rfvvk7jzicxfe.trafficmanager.net
apimgmttmi40hhvc3rab02w42wawcsasi6on7rfvvk7jzicxfe.trafficmanager.net   canonical name = cognitiveusncprod-northcentralus-01.regional.azure-api.net
cognitiveusncprod-northcentralus-01.regional.azure-api.net  canonical name = api84287e48f263467683fa149da80d544epg97zv60cq1jpwug3t1ny.northcentralus.cloudapp.azure.com
Name:   api84287e48f263467683fa149da80d544epg97zv60cq1jpwug3t1ny.northcentralus.cloudapp.azure.com
Address: 20.125.164.145

Screenshots and additional context (optional)

No response

natehaze commented 1 month ago

orb reset made this appear to go away in the orbstack docker VM. However, after I built back up the issue was back.

kdrag0n commented 1 month ago

Fixed for the next version. There's an issue with domains that have over 5 CNAMEs.

kdrag0n commented 2 weeks ago

Released in v1.6.0 Canary 1.

To update to Canary: Settings > Update channel

kdrag0n commented 1 week ago

Released in v1.6.0.

New: Truly fast container filesystems on macOS: 2–10x faster, within 75-95% of native