Skip to content

Fix/dns resolution#383

Merged
hoytak merged 9 commits intohuggingface:mainfrom
Hugoch:fix/dns-resolution
Jun 12, 2025
Merged

Fix/dns resolution#383
hoytak merged 9 commits intohuggingface:mainfrom
Hugoch:fix/dns-resolution

Conversation

@Hugoch
Copy link
Member

@Hugoch Hugoch commented Jun 12, 2025

It seems that some DNS resolvers struggle to correctly resolve CAS server address and fallback to local search domain (huggingface/huggingface_hub#3155).
This may be due to a wrong DNS resolver configuration (possibly a ndots>2.
This PR implements a custom DNS resolver to force absolute DNS name resolution.

@Hugoch Hugoch requested review from assafvayner and hoytak June 12, 2025 10:32
Copy link
Member

@XciD XciD left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM without println 😅

@hoytak hoytak requested review from bpronan and jgodlew June 12, 2025 15:24
@hoytak
Copy link
Collaborator

hoytak commented Jun 12, 2025

LGTM -- would like @jgodlew + @bpronan to take a look before we merge it.

Copy link
Contributor

@bpronan bpronan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great catch!

:shipit:

Copy link
Contributor

@jgodlew jgodlew left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good. Good catch! :shipit:

Copy link
Contributor

@assafvayner assafvayner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@hoytak hoytak merged commit 99e27b6 into huggingface:main Jun 12, 2025
4 checks passed
@hoytak
Copy link
Collaborator

hoytak commented Jun 12, 2025

Merging to cut a new rc wheel for testing.

seanses added a commit that referenced this pull request Sep 9, 2025
Removes this custom DNS resolver that forces domain names to be
absolute. Using relative domain names is a valid practice in Kubernetes
clusters to configure proxy servers, e.g.
huggingface/huggingface_hub#3323

The original [PR](#383) that
added this resolver was trying to resolve
huggingface/huggingface_hub#3155 later
appeared to be a problem of user local misconfiguration.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants