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 13:06:12 +0530
    From:        Mayuresh <mayuresh%warunjikar.in@localhost>
    Message-ID:  <amBy7LJiTnTCLVqU%warunjikar.in@localhost>

  | One thing I notice is, Linux fires both IPv4 and IPv6 queries first and if
  | both are unresolved then only it goes into domain name heuristics. That
  | makes it a little safer.

Yes, that would probably be better.

  |
  | BTW, my original problem is partly because my hostname = domainname?
  | Bad practice?

Not at all, that is exactly what should be done.

If there's any bad practice here, it would be not using FQDNs everywhere
where what is presented is intended to be one.  That is "github.com."

But omitting the final '.' is also very very common, in fact it is so
common, that outside DNS zone configuration and testing, it is essentially
never used.   Without it however, you are telling the resolver that you're
using an abbreviated hostname, and it needs to add something to the end,
to make a FQDN (which is the only thing the DNS allows).   That "something"
can be just the extra "." but if it did that, and only that, people would
get very frustrated, and very quickly, so it doesn't.

kre



Home | Main Index | Thread Index | Old Index