IPv6 addresses are preferred over IPv4 addresses for DNS resolution. If the hostname in a repository's URL has an AAAA record, your server will ignore the A record and attempt to contact the hostname at the IPv6 address, even if the IPv4 address is accessible and the IPv6 address isn't. YUM and DNF can be configured to only use IPv4 addresses for DNS resolution.
- Access the server's command line as the 'root' user via SSH or "Terminal" in WHM.
- Open the YUM/DNF configuration file in your preferred text editor, such as vim or nano.
/etc/yum.confif your server uses YUM.
/etc/dnf/dnf.confif your server uses DNF.
- Add the following line.
- Save and close the text editor.