LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-12-2004, 07:05 PM   #1
Torky
LQ Newbie
 
Registered: May 2004
Posts: 4

Rep: Reputation: 0
Strange DNS problem (Debian)


Hello there,

i have Debian Woody running on my server/router for quite a time now, and everything works fine with my win2k machine. Last week i installed Debian Testing/Unstable at my notebook, and nearly everything is running fine .. *nearly* everything. Somehow DNS is "broken".

Here the facts.
if i do a "nslookup hostname" or "host hostname" i get an ip within one second.

but now if i do "ping hostname" its takes between 6 to 10 seconds until the hostname is resolved and the first ping goes out.
Same thing with lynx or firefox or whatever As you can imagine browsing is a real pain that way.

I tried several DNS Servers, i also set up a DNS at my Router - no change.

some files

/etc/resolv.conf
Code:
search
nameserver 217.5.113.240
nameserver 194.25.2.129
as i said, i tried several other nameservers (those are from t-online now), all reachable and working good on my windows machine. i also tried it without the "search" line.

/etc/host.conf
Code:
order bind,hosts
multi on
/etc/network/interfaces
Code:
auto eth0
iface eth0 inet static
        address 192.168.0.18
        netmask 255.255.255.0
        network 192.168.0.0
        broadcast 192.168.0.255
        gateway 192.168.0.1
192.168.0.1 is my router of course

i don't have any clue what else to do ..

one thing i noticed .. i got freenet.de at first as apt-source, when this hostname was looked up it looked like ipv6 ##:##:##:## style but i don't use ipv6 (afaik ..). i changed the line in /etc/apt/sources.lst and never saw something like ipv6 again.

maybe someone here has an idea?
 
Old 05-12-2004, 07:20 PM   #2
peacebwitchu
Member
 
Registered: Apr 2004
Distribution: Debian
Posts: 185

Rep: Reputation: 30
Have you tried setting the /etc/host.conf order from

order bind,hosts

to

order hosts,bind

Also could you post your


hostname -f

and /etc/hosts file.
 
Old 05-13-2004, 04:19 AM   #3
Torky
LQ Newbie
 
Registered: May 2004
Posts: 4

Original Poster
Rep: Reputation: 0
Code:
torky@wotan:~$ hostname -f
localhost
/etc/hosts
Code:
127.0.0.1       localhost       wotan
192.168.0.18    wotan
192.168.0.1     gilgamesh
192.168.0.17    torky
changing the order of bind,hosts in host.conf didn't have any noticeable effect.

Last edited by Torky; 05-13-2004 at 04:20 AM.
 
Old 05-13-2004, 08:49 AM   #4
peacebwitchu
Member
 
Registered: Apr 2004
Distribution: Debian
Posts: 185

Rep: Reputation: 30
try taking the search string out of /etc/resolv.conf
In the man page for /etc/resolv.conf it states that this can cause timeouts in some situations.
 
Old 05-13-2004, 11:56 AM   #5
Torky
LQ Newbie
 
Registered: May 2004
Posts: 4

Original Poster
Rep: Reputation: 0
Re: Strange DNS problem (Debian)

Quote:
Originally posted by Torky
as i said, i tried several other nameservers (those are from t-online now), all reachable and working good on my windows machine. i also tried it without the "search" line.
today i tried the laptop in 2 other networks - same effect so it *hast* to do s.th. with that machine, but i still don't have any clue
 
Old 06-21-2004, 07:46 PM   #6
yichun
LQ Newbie
 
Registered: Mar 2004
Distribution: Debian Sid
Posts: 18

Rep: Reputation: 0
Has your problem solved? I met the same problem. I put a line to prevent ipv6 module from loading in /etc/modules.conf, but when 'lynx url' the lynx still go on to search ipv6 address first. I do not know anyone has solved this. Strangely seems many has no this problem.
 
Old 06-22-2004, 04:02 AM   #7
Torky
LQ Newbie
 
Registered: May 2004
Posts: 4

Original Poster
Rep: Reputation: 0
not really "solved" but since i am using a dns from my university (i still dial in with t-online!) its a lot better, first look needs still about 2s, but after that all dns lookups dont need more time then that.

i noticed that dns is slower again, if i use more then one dns.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Strange DNS Resolution Problem pmconway Fedora 1 11-10-2004 07:37 AM
Strange Synaptic problem in Debian Alvis Debian 1 10-07-2004 11:45 AM
Strange DNS problem JonCooperUK Slackware 3 04-02-2004 12:09 PM
Strange dns problem jekyl Linux - Networking 1 01-15-2003 12:49 PM
strange firewall/DNS problem marsonist Linux - Networking 8 01-03-2003 01:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:42 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration