View previous topic :: View next topic |
Author |
Message |
donmartio Apprentice
Joined: 11 Dec 2004 Posts: 261
|
Posted: Wed Feb 22, 2006 7:38 pm Post subject: [Solved] Strange Domain Names Cache Problem |
|
|
Hello again there,
i got a strange problem since some time.
Every time i start my machine and try to do some networking i got randomly mixed up domain->ip resolution.
For example, if i want to go to www.olympia.de i get www.php.net or if i ping www.gototal.de
i get response from google and so on.
At first i thought that the problem is by my provider. But i tested the hole thing with an other machine
here which is plugged in the same router and there every thing is ok.
The Problem disappeared after 3-10 Minutes, so i thought, that something on Gentoo is caching things and is mixed up somehow.
Anybody out there with a hint where to search?
Greetings don Martio _________________ Always code as if the person who ends up maintaining your code will be a violent psychopath who knows where you live.
Last edited by donmartio on Mon Mar 27, 2006 10:46 am; edited 1 time in total |
|
Back to top |
|
|
kands Tux's lil' helper
Joined: 01 Apr 2003 Posts: 138 Location: Vancouver Island, Canada
|
Posted: Wed Feb 22, 2006 7:42 pm Post subject: |
|
|
Are you running a local dns daemon like Bind or djbdns? _________________ http://www.brokenspoke.ca
Have you broken your spoke today? |
|
Back to top |
|
|
donmartio Apprentice
Joined: 11 Dec 2004 Posts: 261
|
Posted: Wed Feb 22, 2006 7:57 pm Post subject: |
|
|
Hello,
thanks for the reply, and no i am not running anythin like that.
For some reason that i have forgotten, i have installed nscd, but it's not running.
Any other ideas?
Greetings
DonMartio _________________ Always code as if the person who ends up maintaining your code will be a violent psychopath who knows where you live. |
|
Back to top |
|
|
kands Tux's lil' helper
Joined: 01 Apr 2003 Posts: 138 Location: Vancouver Island, Canada
|
Posted: Wed Feb 22, 2006 9:30 pm Post subject: |
|
|
If you're not using nscd I would unemerge it just to remove it as a possible source of the problem. If you're seeing the same or similar cached responses each time your box might actually be using the nscd cache.
Hopefully that works. If not we'll look for other options. _________________ http://www.brokenspoke.ca
Have you broken your spoke today? |
|
Back to top |
|
|
donmartio Apprentice
Joined: 11 Dec 2004 Posts: 261
|
Posted: Thu Feb 23, 2006 9:52 pm Post subject: |
|
|
Ok,
it seems, that i can't unmerge nscd, because it's not a package (anymore???).
This is strange because i thought, that i've emerged it for some reason a time ago. But no i found it in the file folder
of the sys-libs/glibc package.
I tested a little bit and i think something realy weird is up on my system.
The domains are mixed up randomly. I rebooted it several times and after every reboot some other
resolution does not match. Every mixed up domain is a domain i visited before (for example de3.php.net and www.olympia.de).
Is there any tool which i can use, to determine where the DN-Resolution comes from?
I'm realy confused.
Greetings
DonMartio _________________ Always code as if the person who ends up maintaining your code will be a violent psychopath who knows where you live. |
|
Back to top |
|
|
kands Tux's lil' helper
Joined: 01 Apr 2003 Posts: 138 Location: Vancouver Island, Canada
|
Posted: Thu Feb 23, 2006 10:05 pm Post subject: |
|
|
Try emerging nscd again and then unmerge it right away.
then emerge bind-tools. Once that is done you can use dig to check name resolution against specific name servers or using the dns resolver on the client machine.
dig man page: http://www.stopspam.org/usenet/mmf/man/dig.html _________________ http://www.brokenspoke.ca
Have you broken your spoke today? |
|
Back to top |
|
|
donmartio Apprentice
Joined: 11 Dec 2004 Posts: 261
|
Posted: Thu Feb 23, 2006 10:09 pm Post subject: |
|
|
Hey kands,
thanks for the reply.
The problem is, that i can't emerge or umerge nscd. It's not availabe as ebuild.
I will try the tip with the bind-tools.
May i found the reason.
Thanks again.
DonMartio _________________ Always code as if the person who ends up maintaining your code will be a violent psychopath who knows where you live. |
|
Back to top |
|
|
kands Tux's lil' helper
Joined: 01 Apr 2003 Posts: 138 Location: Vancouver Island, Canada
|
Posted: Thu Feb 23, 2006 10:17 pm Post subject: |
|
|
Ok good luck.
You coudl also try running a find for nscd from the root and remove the files that are left from the nscd emerge??? _________________ http://www.brokenspoke.ca
Have you broken your spoke today? |
|
Back to top |
|
|
donmartio Apprentice
Joined: 11 Dec 2004 Posts: 261
|
Posted: Mon Mar 27, 2006 10:46 am Post subject: |
|
|
So finally i solved the problem, by changing the dns on my machine.
For some reason the error only appears if i use my DSL-Router as DNS (it's strange because the same
setup don't make any problems on another mashine in the same network).
With the DNS which was set on my router the strange behaviour disappeared.
I don't fully understand why, but it works.
Thanks for the help.
Greetings
DonMartio _________________ Always code as if the person who ends up maintaining your code will be a violent psychopath who knows where you live. |
|
Back to top |
|
|
|