You are not logged in.
pacman, wget, abs (rsync) and many applications have issues getting DNS information. Since 3 months this is bugging me now, but at least I finally seem to have found out that these programs all do ipv6 DNS lookups, although I disabled ipv6 support (and the module).
When I use "curl" in pacman for fetching packages, it is super fast, also when I call "wget -4", to explicitly tell it to use ipv4. Firefox is fast, too, because I set it to disallow ipv6.
How can I tell all the other programs to use ipv4 only?
I want to use yaourt, pacman and co without having to wait for ages to download a package.
And why are only a few (console) applications affected? Do they use a common lib that tries to use ipv6 all the time?
digiKam developer - www.digikam.org
Offline
It is definitely ipv6, I just checked with wireshark.
I have a GIT repo at github.com, and another SVN repo at kde.org.
I just realized that my git client is fast when using "git svn", but slow when using the "real" git repo at github.com.
Wireshark revealed that "git svn" uses ipv4 to connect to the repo, while the "real" git repo wants to connect with ipv6.
Is there a way to turn this off completely?
I don't need ipv6 and I already removed the module, why are applications still using ipv6 though?
digiKam developer - www.digikam.org
Offline
nm
Last edited by mrutter (2009-12-31 22:45:59)
Offline
As I said, I already disabled the module. And Firefox has no ipv6 settings either. It is only a few applications that stil want to connect via ipv6... I guess they all share a common lib or function that seems to be broken?
digiKam developer - www.digikam.org
Offline
Nobody has an idea?
I also tried to add "ipv6.disable=1" as a kernel parameter, but still I get ipv6 calls from some applications, like yaourt.
Updating AUR packages with it is a pain, it takes forever, since every DNS request takes 12 seconds or longer.
digiKam developer - www.digikam.org
Offline
No, ipv6 is disabled... I really don't know what to do... I thought that maybe me Draytek Vigor 2700 is doing crappy things, but the wireshark graph "proves" that I do the ipv6 calls... I even compiled my own kernel now and threw away the ipv6 module completely, still the same bug.
It seems to be some library that is messing around...? Because not all programs behave like that.
digiKam developer - www.digikam.org
Offline
Did you try openDNS as a workaround.
Add this to /etc/resolv.conf.head:
# OpenDNS nameservers
nameserver 208.67.222.222
nameserver 208.67.220.220
English is not my native language .
Offline
Tried it, didn't help either... :-(
digiKam developer - www.digikam.org
Offline
I should have read your post in detail.
Could it be the well known gnu libc (bug) that only shows up in broken routers/networks?
Did you try adding "options single-request" to "resolv.conf"?
English is not my native language .
Offline
I will check this in the evening, currently I'm at work... thanks for being so patient...
digiKam developer - www.digikam.org
Offline
Nezmer, thanks this finally seems to work. I still get IPv6 DNS requests in wireshark, but my internet connection is faster now...
The only thing I need to figure out now is how to keep these options in /etc/resolv.conf, without having networkmanager overwriting them. But I guess I'll find something on the web...
So thanks again to all for your help!
digiKam developer - www.digikam.org
Offline
Quick note, depending on where you put that in resolv.conf, you should look into resolv.conf.head and resolv.conf.tail
Offline
I don't have these two files...? Anyway I set the resolv.conf to immutable
chattr +i /etc/resolv.conf
so that it can not be changed. Works fine.
digiKam developer - www.digikam.org
Offline
Hello, ppl. Been having the same problem for over 6 months, and i never thought it was a bug, until it stumbled in this post. And i solved it thanks to Nezmer's tip about adding 'options single-request', which didn't work at first, but it got me searching the web. And here it is the result: Since /etc/resolv.conf is rewritten in every boot, simply create /etc/resolv.conf.tail with the following:
options rotate
options single-request
This file's content will be automatically added at the end of /etc/resolv.conf in every boot, et voilá, enjoy pacman, yaourt, etc without pauses...
XP -> Ubuntu -> Arch
Offline