Hi
Have a look https://community.ibm.com/community/user/power/discussion/dnf-installation-2 , and try the debugging steps to narrow down the connectivity issue.
Was it working anytime before and suddenly stopped working in your LPAR ?
Thanks
Ranjit
#AIXOpenSource