Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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.
Any time you make a new query that is not in your local tables, your DNS server will check cache. If the address is there, it will respond quickly. If not, it must query a forward server. If each level takes 2 MS, then at least 4 should be expected. (Actually, that is really VERY fast!) If it is caching, then you should see the SECOND request for the same address come back much faster than any external query.
That said, I have never seen results like yours (2 vs 4xxx ms) under any circumstances. But then, testing directly ON the server has never been something I would consider.
I suggest that you run the same tests on a client machine set to use your DNS server for name resolution. Remember to do TWO tests resolving the same (new) FQDN so you can compare the initial and subsequent (cached) times. THOSE will be your client resolution times that you should expect.
Google answers me in 2msec, while I'm getting weirdly 4xxx msec.
Does named have any parameter to make things shorter?
Nah, I'm getting 70ms from google and 4ms from my 127.0.0.1!!!
By the way here is your problem:
Code:
dig gulfup.com +trace
<snip>
couldn't get address for 'ns1.gulfup.com': not found
couldn't get address for 'ns2.gulfup.com': not found
dig: couldn't get address for 'ns1.gulfup.com': no more
FYI: I did a few time trials with DIG against the google DNS servers. I am impressed.
The times were as fast as my internal caching DNS server on second query, and FAR faster than my ISP nameservers in ALL cases! They must have some insane horsepower and bandwidth allocations.
Indeed!, they are insane for that, they might have their own specific DNS software, anycasting it all over the world.
I think I'm getting the problem more clear here for me, I've setup a new DNS, same config, asking that new one gives back a reply with 2 ~ 200 msec, still the old one gives 4K :|
So I guess the old one is getting congested? although it is not running out of resources, though it is a VM, this might have some effect? no?
I think I should get it out alone to a physical one and check the results there.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.