Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I'm quite new to linux and very new to this forum. And here is my problem: It seems, that there is somthing misconfigured with network settings, because most of the time, when I want to connect to a remote server (no matter what kind of server) I get an annoying delay of up to ten seconds before I can resolve the hostname. I'm using a DSL-Router and don't have this problem under the other OS. I don't use a personal firewall and here are some outputs:
I don't know how that "Query time" is measured but actually it took me several seconds before I got any response. I cannot post URLs, because I don't have 5 posts so far, so I had to shorten the output a bit, but what else should it show to me, that may help?
The "hosts" in my '/etc/nsswitch.conf' is already "files dns".
Another thing: I don't get this annoying delay everytime. And actually I'm not able to find any pattern in it. Sometimes it works, but more often it does not. And when I once resolved the host, the second time doesn't make any trouble..., only the first one.
This is odd. Routers are not Domain Name Servers. This make sense for anyone else ?
Try to find a real DNS server and put its IP in the resolv.conf file.
This may be odd, but I have to say, that it is may neighbour who actually "owns" the internet connection and set up the network. So I have no details how it works, but it works ...for several years now. But as I said, after _KDF suggested me the same thing, I also tried two of the official DNS severs of our ISP and there was no difference.
Another idea. Run your own Name server. The default configuration for the most distros are cache only, which is just fine for you. What distro is yours ?
I'm using Ubuntu (breezy). Can you pleas explain how to run my own nameserver. What do I have to enter where? Thank you
That script (/etc/init.d/bind9) already runs at startup and yes, adding 127.0.0.1 to /etc/resolv.conf seems really to make things better: The delay is shortened to 2-3 seconds now, which is ok for me, although I have no clue why this helped? Mmmh..., strange..., and I just checked, there is still no such delay under Wind**s (where I use the same DNS). But as I said: I can live with this short delay and am really grateful for all your help.