PDA

View Full Version : ipv6 support causes DNS problems in Rawhide


marko
2009-06-27, 12:07 AM CDT
I've been going crazy trying to figure this one out, I have two rawhide machines, one works fine and gets yum updates fine.
The other one couldn't get yum updates at all, the error suggested a dns problem.

I also found that firefox 3.5b4 was not able to get to any pages but my copy of minefield worked fine. I noticed that minefield had the disableipv6 set true and my FF3.5B4 didn't. Upon setting FF3.5b4 to disableipv6 in about:config I was getting pages fine with it again.

So then I tried to use wget to just download a file from a yum server, it would
also fail like yum with a dns error:

wget http://fedora.fastsoft.net/pub/linux/fedora/linux/releases/9/Live/i686/SHA1SUM
Resolving fedora.fastsoft.net... failed: Name or service not known
but then I tried:

wget -4 http://fedora.fastsoft.net/pub/linux/fedora/linux/releases/9/Live/i686/SHA1SUM
Connecting to fedora.fastsoft.net|208.78.26.135|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 378 [text/plain]
Saving to: `SHA1SUM'

So if you force wget to dns with IPv4 it gets the file ok but seems to hang up trying ipv6 first. Anyone else have this?
I did turn off IPV6 in the system-config-network checkbox but this is still going on.

marko
2009-06-27, 12:35 AM CDT
The problem was the /etc/nsswitch.conf file:

I noticed a "bak" file that was older and a newer version with the regular name:


-rw-r--r-- 1 root root 1696 2004-09-22 21:17 nsswitch.conf.bak
-rw-r--r-- 1 root root 1728 2009-06-25 23:09 nsswitch.conf

with this "diff"

diff nsswitch.conf.bak nsswitch.conf
< hosts: files dns
> hosts: files mdns4_minimal [NOTFOUND=return] dns

so I moved the newer one to nsswitch.conf.new and the old one back to
nsswitch.conf and my yum commands were ok again.

UPDATE: wow I did a google search on mdns4_minimal, it's caused lots of problems.