LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   Name Resolution problems with rpmfusion.org (https://www.linuxquestions.org/questions/fedora-35/name-resolution-problems-with-rpmfusion-org-732230/)

mickeyboa 06-11-2009 10:31 AM

Name Resolution problems with rpmfusion.org
 
FC11/KDE

Having name resolution problems connecting to rpmfusion, Below is error message.

/etc/resolv.conf has correct settings for nameserver 172.16.0.1 for gateway router


# yum update
Loaded plugins: refresh-packagekit
Could not retrieve mirrorlist http://mirrors.rpmfusion.org/mirrorl...a-11&arch=i386 error was
[Errno 4] IOError: <urlopen error [Errno -3] Temporary failure in name resolution>
Error: Cannot retrieve repository metadata (repomd.xml) for repository: rpmfusion-free. Please verify its path and try again


This is the line I put in /etc/modprobe.d/dist.conf for Ipv6 disable

install net-pf-10 /bin/true

It didn't seem to have "name resolution" problems when I downloaded the rpmfusion-release-rpm using rpm -ivh .

knudfl 06-11-2009 01:51 PM

It's an every day event, if not this one, it is another
one saying "Cannot retrieve repository metadata".

The remark "Temporary failure" : It is a temporary situation.

In the meantime just use :
# yum <command> --disablerepo=rpmfusion-free

.....

mickeyboa 06-11-2009 03:03 PM

Not today.
I just accidentally stumbled onto this, and now It's fix.


Q: Networking (or DNS) seems really slow and fails often (Updated 2 January 2009)
A: If Fedora 10's networking seems slow or you get frequent network connection failures (when other Fedoras or other OSes were working just fine on your machine), then you're probably hitting this bug.

Here's how you can work around it:

1. Open a Terminal.
2. Become root:

su -
3. Make sure that the "dnsmasq" program is installed (it usually is, by default, in Fedora 10):

rpm -q dnsmasq

If that says "package dnsmasq is not installed", then you need to install dnsmasq, by running the following command:

yum install dnsmasq
4. Now, you have to find out which network interface your machine is using:

route -n

You'll see some output that looks like this:

Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.1.0 0.0.0.0 255.255.255.0 U 1 0 0 eth0 0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0

The eth0 there (the furthest bottom-right text in the output) is the name of the network interface I'm using. Yours might be eth1 or something totally different. Just remember it for the next step.
5. Now create a file called /etc/dhclient-<your network interface>.conf. For example, if your network interface is eth0, the file would be called /etc/dhclient-eth0.conf.

You can create the file with this command (assuming your network interface is eth0):

nano /etc/dhclient-eth0.conf

Then make this the only line in the file:

prepend domain-name-servers 127.0.0.1;

And then save the file and close it (Ctrl-X then Y).

If you have both a wireless and a wired network connection, you will have to do this step once for each of them.
6. Now start dnsmasq:

service dnsmasq start

And make sure that it will start every time your computer starts:

chkconfig dnsmasq on
7. Now restart your network connection:

service NetworkManager restart

And now things should be as fast as normal again. You might have to restart the programs that you're running for them to pick up the changes that NetworkManager made when it restarted.


All times are GMT -5. The time now is 05:40 AM.