I saw this post with a similar issue. Thus providing the following info, which was requested to provide assistance.
dig +short acme-v02.api.letsencrypt.org
no output
dig +short acme-v02.api.letsencrypt.org @8.8.8.8
prod.api.letsencrypt.org.
ca80a1adb12a4fbdac5ffcbc944e9a61.pacloudflare.com.
172.65.32.248
cat /etc/resolv.conf
nameserver 127.0.0.53
options edns0 trust-ad
cat /run/systemd/resolve/stub-resolv.conf
nameserver 127.0.0.53
options edns0 trust-ad
cat /etc/netplan/01-netcfg.yaml
network:
version: 2
renderer: networkd
ethernets:
ens4:
dhcp4: yes