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

Robert Elz <[email protected]> Wed, 22 Jul 2026 13:59:43 +0700
Newsgroups gmane.os.netbsd.general
Message-ID <[email protected]>
    Date:        Wed, 22 Jul 2026 06:58:54 +0200
    From:        Martin Husemann <[email protected]>
    Message-ID:  <[email protected]>

  |  - 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