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!
Notices
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.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi,
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:
Check your /etc/nsswitch.conf file, too.
The hosts entry must be "files dns".
A entry like "file nis ldap dns" would introduce those delays you are reporting.
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?
@marozsas
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.
That is my router and so I think, this should be ok. Any other idea?
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.
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 ?
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.
Quote:
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.