NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: After enabling IPv6 curl github.com fails, succeeds with IPv4



    Date:        Wed, 22 Jul 2026 06:58:54 +0200
    From:        Martin Husemann <martin%duskware.de@localhost>
    Message-ID:  <amBODh8llQE3qqRt%big-apple.aprisoft.de@localhost>

  |  - hostname contains a dot: the resolver halluzinates a domain and
  |    searches that w/o being told so. This is very bad (as you saw
  |    from the failure) but there is a configurable workaround

That one is truly ancient behaviour, searching the domain in which a
host exists, then each parent domain of that, until a name is found
was the original, only, kind of searching the earliest resolvers did.

Now simply configuring the search path (list of domains to search for
unqualified hosts) overrides that (or should).

But it is also always good practice to fully qualify all domain names
being looked up, if they are intended to be complete domain names.
That is, always add the final '.' and no searching will be done at all.

kre



Home | Main Index | Thread Index | Old Index