# DNF via ipv4 fails

**URL:** <https://forums.rockylinux.org/t/dnf-via-ipv4-fails/17267>\
**Category:** Rocky Linux Help & Support\
**Tags:** rocky-linux-9\
**Created:** [January 22, 2025, 6:49pm UTC](https://forums.rockylinux.org/t/dnf-via-ipv4-fails/17267 "2025-01-22T18:49:50Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![hazel](https://avatars.discourse-cdn.com/v4/letter/h/e56c9b/32.png) [@hazel](https://forums.rockylinux.org/u/hazel)\
**Post date:** [January 22, 2025, 6:49pm UTC](https://forums.rockylinux.org/t/dnf-via-ipv4-fails/17267/1 "2025-01-22T18:49:51Z")

</div>

Hi,

today I did a new install of RL9.4, but thereafter an update via dnf failed wit “connecting refused”. Trying curl instead, to access ‘[https://mirrors.rockylinux.org](https://mirrors.rockylinux.org)…’ showed me, that obviously ipv4 is not accessible. I tried an update on another machine, same result. Then I went over to IT department, and they told me, that ipv6 is not supported in the network of my machines. However, not long ago (mid December I guess) everything worked. I verified that in the network of the IT department, where ipv6 is supported, the update finished regularly. Now I am wondering, if something changed with deployment of repos via ipv4 or if I have to consider another problem? Currently I am a bit lost, the IT department will provide me a VLAN with ipv6 support, but I assume, that dnf should also work with ipv4, don’t? Please, can anyone point me into the right direction?

Kind Regards

---

<div class="post-metadata">

**Author:** ![sspencerwire](https://avatars.discourse-cdn.com/v4/letter/s/c2a13f/32.png) [@sspencerwire](https://forums.rockylinux.org/u/sspencerwire)\
**Post date:** [January 22, 2025, 6:58pm UTC](https://forums.rockylinux.org/t/dnf-via-ipv4-fails/17267/2 "2025-01-22T18:58:40Z")

</div>

Hello @hazel,

To my knowledge, `dnf` should work with either IPv4 or IPv6. It works on my machine with only IPv4. I’m running Rocky Linux 9.5.

Can you use `curl` on this machine? If so, what is the publicly routable IP address reported from:

```auto
curl ifconfig.me

```

---

<div class="post-metadata">

**Author:** ![hazel](https://avatars.discourse-cdn.com/v4/letter/h/e56c9b/32.png) [@hazel](https://forums.rockylinux.org/u/hazel)\
**Post date:** [January 22, 2025, 7:00pm UTC](https://forums.rockylinux.org/t/dnf-via-ipv4-fails/17267/3 "2025-01-22T19:00:30Z")

</div>

Hi, thanks! Unfortunately I will have to wait until tomorrow, since I’m out of office now, but I will definitely check!

---

<div class="post-metadata">

**Author:** ![sspencerwire](https://avatars.discourse-cdn.com/v4/letter/s/c2a13f/32.png) [@sspencerwire](https://forums.rockylinux.org/u/sspencerwire)\
**Post date:** [January 22, 2025, 7:04pm UTC](https://forums.rockylinux.org/t/dnf-via-ipv4-fails/17267/4 "2025-01-22T19:04:03Z")

</div>

OK, if it reports only an IPv6 address, then you need to go back to your IT department and yell! 🙂 If it shows and IPv4 address, then try changing the repository mirrors you are using. You can even temporarily set them to the baseurl in `/etc/yum.repos.d/rocky.repo` research the repositories you have enabled as you may need to temporarily change this on all of your enabled (Rocky labeled) repos.

Good luck!

P.S., or choose another mirror location.

---

<div class="post-metadata">

**Author:** ![hazel](https://avatars.discourse-cdn.com/v4/letter/h/e56c9b/32.png) [@hazel](https://forums.rockylinux.org/u/hazel)\
**Post date:** [January 23, 2025, 8:12am UTC](https://forums.rockylinux.org/t/dnf-via-ipv4-fails/17267/5 "2025-01-23T08:12:14Z")

</div>

Good morning!

I tried `curl ifconfig.me`, and it returned a valid IPv4 address. I tried `dnf check-update --refresh` again this morning, and now it worked 😊 … maybe a temporary unavailability!? I’m not sure, but I will keep having an eye on it.

I will close this issue, thanks a lot!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/rockylinux/original/1X/91b7219eec10e30013422e4df76c1d898711a5d5.svg) [@system](https://forums.rockylinux.org/u/system)\
**Post date:** [March 24, 2025, 8:12am UTC](https://forums.rockylinux.org/t/dnf-via-ipv4-fails/17267/6 "2025-03-24T08:12:45Z")

</div>

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