View previous topic :: View next topic |
Author |
Message |
Rellig n00b
Joined: 25 Feb 2006 Posts: 46
|
Posted: Tue Dec 15, 2009 4:18 pm Post subject: _really_ slow dns resolving |
|
|
hi,
dns resolving on the linux hosts in my network is really slow. i have no problems when using a windows pc, so i think it may be the router which sends somehow bad dns information.
do you have any idea about that and maybe know how to fix it without buing new hardware? |
|
Back to top |
|
|
msalerno Veteran
Joined: 17 Dec 2002 Posts: 1338 Location: Sweating in South Florida
|
Posted: Tue Dec 15, 2009 4:35 pm Post subject: |
|
|
Check your DNS server, are both systems using the same servers?
By default windows caches DNS queries, which would make it look as if Windows was much faster.
Do the same nslookup from your windows system and your linux system, and before you do it on the windows system, do an ipconfig /flushdns |
|
Back to top |
|
|
Rellig n00b
Joined: 25 Feb 2006 Posts: 46
|
Posted: Tue Dec 15, 2009 4:39 pm Post subject: |
|
|
every pc in the network uses my router dns-server.
i already did this and it's really like that, that windows is much faster in resloving dns names. |
|
Back to top |
|
|
wrc1944 Advocate
Joined: 15 Aug 2002 Posts: 3456 Location: Gainesville, Florida
|
Posted: Tue Dec 15, 2009 5:27 pm Post subject: |
|
|
Don't know what "really slow" means in your case as it's a subjective description, but NOT disabling ipv6 on the local browser and machine can cause that- sometimes very perceptible.
In my case having ipv6 enabled made for very noticable slow web site accessing (dns lookup).
Edit: Other thoughts: Is your router and/or ISP even ipv6 capable, or does windows have ipv6 disabled? _________________ Main box- AsRock x370 Gaming K4
Ryzen 7 3700x, 3.6GHz, 16GB GSkill Flare DDR4 3200mhz
Samsung SATA 1000GB, Radeon HD R7 350 2GB DDR5
OpenRC Gentoo ~amd64 plasma, glibc-2.40-r5, gcc-14
kernel-6.12.8 USE=experimental python3_12.7-final-0 |
|
Back to top |
|
|
Rellig n00b
Joined: 25 Feb 2006 Posts: 46
|
Posted: Tue Dec 15, 2009 6:55 pm Post subject: |
|
|
dns lookups take up to 10 seconds.
everything here is ipv4
i did not disable ipv6 in windows and i don't know if it is turned on or not.
how can i disable ipv6 on gentoo? |
|
Back to top |
|
|
msalerno Veteran
Joined: 17 Dec 2002 Posts: 1338 Location: Sweating in South Florida
|
Posted: Tue Dec 15, 2009 7:54 pm Post subject: |
|
|
It's a kernel config option. Here is some stuff that you need to answer.
1. When did this start happening? Has this always been the case?
2. What was the last thing to change?
3. How up to date is your gentoo install?
4. Are both systems connected the same way? (wireless or wired)
5. Are there any errors on your interface?
6. Is your router blocking any kind of traffic?
7. Did you try changing the DNS server on the linux server to a public DNS server other than your router? Was it faster?
8. On the linux host, is there a difference between dns queries via TCP or UDP (man dig)
That's all I can think of for now, I'm sure there are more questions, but you need to provide more details. |
|
Back to top |
|
|
Rellig n00b
Joined: 25 Feb 2006 Posts: 46
|
Posted: Tue Dec 15, 2009 8:30 pm Post subject: |
|
|
1. i noticed it about 6 months ago, but i always had trubles using konqueror, but it had worked elsewhere
2. ?
3. up to date ~amd64
4. they are all connected via the same wired switch
5. everything works fine (except dns)
6. it is running a firewall (i never really cared about it in detail)
7. i just tried the google dns server (8.8.8.8) without any success, which is somehow surprising for me at the moment ...
8. i don't see a difference between tcp or udp - but i never got a time higher than 150ms
i have to add that if i'm not at home (as one gentoo host is my notebook) everything works fine ...
edit: i just installed dnsmasq. not the proper solution but better than nothing ... |
|
Back to top |
|
|
wrc1944 Advocate
Joined: 15 Aug 2002 Posts: 3456 Location: Gainesville, Florida
|
Posted: Tue Dec 15, 2009 9:51 pm Post subject: |
|
|
Rellig,
In /etc/modprobe.d/aliases.conf, uncomment it in this section, like this
Quote: | # Aliases to tell insmod/modprobe which modules to use
# Uncomment the network protocols you don't want loaded:
# alias net-pf-1 off # Unix
# alias net-pf-2 off # IPv4
# alias net-pf-3 off # Amateur Radio AX.25
# alias net-pf-4 off # IPX
# alias net-pf-5 off # DDP / appletalk
# alias net-pf-6 off # Amateur Radio NET/ROM
# alias net-pf-9 off # X.25
alias net-pf-10 off # IPv6
# alias net-pf-11 off # ROSE / Amateur Radio X.25 PLP
# alias net-pf-19 off # Acorn Econet |
For mozilla-firefox, in the address bar, type about:conf, then enter, and go into the options. type in the address bar again ipv6, and then double click on the ipv6 line that appears so it changes to "true"
Kde had a file to edit IIRC, but I forget which one at the moment. The edit in aliases.conf should turn it off globally.
Does ipv6 show up in lsmod?
Oh yeah- it used to be in something like /etc/env.d/99kde-env, where you added a line like this. But I don't seem to have it now, so maybe it's no longer used???
KDE_NO_IPV6 = 1 _________________ Main box- AsRock x370 Gaming K4
Ryzen 7 3700x, 3.6GHz, 16GB GSkill Flare DDR4 3200mhz
Samsung SATA 1000GB, Radeon HD R7 350 2GB DDR5
OpenRC Gentoo ~amd64 plasma, glibc-2.40-r5, gcc-14
kernel-6.12.8 USE=experimental python3_12.7-final-0 |
|
Back to top |
|
|
gajop n00b
Joined: 14 Oct 2009 Posts: 21
|
Posted: Tue Dec 15, 2009 10:43 pm Post subject: |
|
|
i'm having some trouble with DNS, but i think it's my IPS specific, switching to OPENDNS seems to makes things better |
|
Back to top |
|
|
|