The struggle to get Caddy installed in an IPv6-only machine

Not exactly asking for help here, but I wanted to highlight a current issue for deploying Caddy in an IPv6-only environment.

Because both the domains and are not IPv6-ready (none of these names serves AAAA records), it is not possible to simply clone the source code to build the binary or to add the repository to apt package manager in an IPv6-only environment.

This can be overcome via a dirty fix that involves messing with the hosts file and some iptables mangling or socat actions with the help of a forwarding node that has dual IPv4/IPv6 network stack. It would be nice to see a more long-term fix, though.


Interesting! I’ll reach out to Gemfury and see if they could add IPv6 support. I don’t think I’d be able to make a dent in the issue re Github though.


Wow, Gemfury were real quick to fix this one :grin:


Thank you! That was fast!!

You could try mirroring Github to somewhere else that has IPv6 support. ping6 seems to indicate that SourceHut is resolvable over IPv6, unlike And I’ve heard really good things about SourceHut’s build system, if that’s something you might be interested in tinkering with.

For what it’s worth, I would like to encourage IPv6 support wherever possible, even though I’m not attempting to live IPv6-only.

There’s a discussion here about GitHub supporting IPv6

Apparently there’s another broken link from AWS, so apt install still doesn’t work :neutral_face::

The following NEW packages will be installed:
0 upgraded, 1 newly installed, 0 to remove and 13 not upgraded.
Need to get 12.0 MB of archives.
After this operation, 34.1 MB of additional disk space will be used.
Err:1  caddy 2.0.0
  Could not resolve ''
E: Failed to fetch  Could not resolve ''

Until the Internet is unbroken, do you think you can just download a .deb and use that directly?


Looks like Amazon does support IPv6 but only on “dualstack” URLs:

I sent a note to Gemfury, not sure if they’ll be able to fix anything though.

1 Like

Sure do. Meanwhile I can help to host a copy of the .deb and .rpm binaries as a stop-gap measure. Thanks.


Got another reply from Gemfury:

Mind giving it a shot @Jitdor?


This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.