I run as root (
sudo) now but get a different error now:
failed to get certificate: acme: Error 400 - urn:acme:error:connection - Could not connect to echo.leastsignificantbit.co.za
I pointed the domain above to my local internet and forwarded port traffic to my laptop.
Also, when if I
dig +short echo.leastsignificantbit.co.za I get the correct IP address.
I tried to a different server (running on Google cloud) and pointed
play.leastsignificantbit.co.za to the external IP on that server. When I run caddy on there I get a different (but similar) error:
failed to get certificate: acme: Error 400 - urn:acme:error:connection - DNS problem: NXDOMAIN looking up A for play.significantbit.co.za
Again, if I
dig +short play.leastsignificantbit.co.za I get the correct IP address.
If I switch off
tls in the Caddyfile I can telnet into both domain names and on the listening port.
Any ideas what I might be doing wrong? Could it be something to do with my hosting company and their DNS?