I am using
amazoncorretto:17.0.9-al2023
image and while performing "dnf install unzip" I get the below error:
Error downloading metadata for repository 'AmazonLinux', Curl error (6): couldn't resolve host name for https://cdn.amazonlinux.com/al2023/core/mirros/2023.3.20240131/x86-64/mirror.list Ignoring repositories: amazonlinux
- dnf update
- different amazoncorretto al2023 images
Please run "curl -I cdn.amazonlinux.com" from within the server and see if there's an issue with dns resolution. If that's the case you may try google public dns (8.8.8.8/8.8.4.4) as the resolver IPs in /etc/resolv.conf