LINUX LITE 7.2 FINAL RELEASED - SEE RELEASE ANNOUNCEMENTS SECTION FOR DETAILS


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
No DNS cache
#1
I've been having slow Web page loading for several weeks now. Finally, I ran tests against a couple of Windows boxes, and isolated the problem to my LL box.

The status bar of the browser almost always hangs for a second or more on "Resolving host...". This doesn't happen on the other units. All units are set to get their DNS addresses from the local router, which in turn points to quality DNS services such as OpenDNS. My Linux box is on ethernet, and I've tried Windows boxes on both ethernet and wifi.

It seemed odd that this would happen even when I had visited the same domain just prior, so I began to suspect the DNS cache. I did a little research and ran the command sudo /etc/init.d/nscd restart, and got back: "command not found"

I ran service nscd restart, and got back "unrecognized service".

It seems that I don't have DNS cache running on this machine. That would explain the problem. Does anyone have any insight on how to troubleshoot or rectify this?

Thanks.
Reply
#2
You may need to install?? Since the error command not found...

Found this:
Install nscd using the following command if not yet
Code:
sudo apt-get install nscd

Flush DNS Cache in Ubuntu by restarting the nscd

Code:
sudo /etc/init.d/nscd restart

From here: http://askubuntu.com/questions/414826/ho...untu-12-04

Maybe worth a try to install???....

Added:
service nscd restart and sudo /etc/init.d/nscd restart are essentially the same command - restart said service (2 ways to accomplish the same)
LL4.8 UEFI 64 bit ASUS E402W - AMD E2 (Quad) 1.5Ghz  - 4GB - AMD Mullins Radeon R2
LL5.8 UEFI 64 bit Test UEFI Kangaroo (Mobile Desktop) - Atom X5-Z8500 1.44Ghz - 2GB - Intel HD Graphics
LL4.8 64 bit HP 6005- AMD Phenom II X2 - 8GB - AMD/ATI RS880 (HD4200)
LL3.8 32 bit Dell Inspiron Mini - Atom N270 1.6Ghz - 1GB - Intel Mobile 945GSE Express  -- Shelved
BACK LL5.8 64 bit Dell Optiplex 160 (Thin) - Atom 230 1.6Ghz - 4GB-SiS 771/671 PCIE VGA - Print Server
Running Linux Lite since LL2.2
Reply
#3
Absolutely awesome, firenice. I ran the install, which went well and auto-started the service. Even without a reboot, now when I first visit a domain I get the "resolving host" delay. But subsequent visits are without delay. I dare say we've got this beat!

I suppose I did a "complete removal" of some software a couple of months ago and it must have taken NSCD out with it.

Thanks much, and blessings!
Reply
#4
I had a similar DNS head scratcher when I connected to my personal OpenVPN Access Server.  There is something unusual with how Linux Lite handles DNS.  Perhaps firenice03's suggestion is on to something.  The workaround to my issue is below. 

What is the result you get from the following?:

Code:
sudo nano /etc/resolv.conf

If the nameserver you see is 127.0.0.1, change the line that states nameserver 127.0.1.1 to nameserver 8.8.8.8

Then see if your results aren't better.  If they are better, when you reboot, the nameserver may return to 127.0.0.1.  As a workaround for this, to make the change stick, you'll have to add 8.8.8.8 as an Additional DNS Server in your Network Connections.  You'll find the Additional DNS Server settings under the IPv4 Settings tab of Network Connections (Menu > Settings > Network Connections).

8.8.8.8 is a Google public DNS server, by the way.

P.S.  You may also try to see what happens if you manually add your OpenDNS server IP addresses to the Additional DNS server settings, in addition to or instead of 8.8.8.8.  Use commas to separate multiple domain name server addresses.

UPDATE:  It's good to see firenice03's suggestion helped.  Can you reboot and report back whether your issue stays resolved after a reboot?
Want to thank me?  Click my [Thank] link.
Reply
#5
That's interesting, Torrydale. If I understand it, resolv.conf tells the programs to look to the machine for the DNS nameserver, and then the machine tells it to look to the network settings? In my case, I then send the request to the router, rather than to the default ISP nameserver.

If I were to do this, I would use OpenDNS rather than google, though, since I don't want google to know every site I look up. I'll watch my current situation for a while, but the nscd install seems to be 99% on the money so far.
Reply
#6
I rebooted, and the problem is still resolved. I would say there is a bit more time spent resolving hosts than before the reboot, but most of the time it is later in the page load sequence, indicating the DNS's of secondary, remote elements being sought out. I think it's solved.
Reply
#7
(I have a similar issue with Xerox automatic meter reporting on copiers. DNS can be tricky !)

A complete uninstall of software can lead to issues i have found. Some not so obvious.
If you used synaptic package manager it may have taken out a DNS related component as you suspect.
Selecting complete removal sometimes does not differentiate between critical packages.

[Image: complete_removal.jpg]

However if you used the LinuxLite SW tool, I am sure Jerry would like to know so the issue can be addressed.
Member www.eff.org
*Hardware hacks are my speciality.
"forum posts should be like a skirt- long enough to cover the subject material, but short enough to keep things interesting"
--I am using/Running Linuxlite 2.8, Debian8 server, Ubuntu 14, Win7,Win10, MX15, LinuxMint kde.
--Xerox field service engineer, printer repairs,network analyst.
Reply
#8
Thanks. I do remember doing a complete removal, but what prog it was is lost at this point. I doubt I used the LL SW tool. I'm surprised synaptic doesn't distinguish between critical base services and other software.
Reply
#9
(04-22-2016, 02:12 PM)paul1149 link Wrote: Absolutely awesome, firenice. I ran the install, which went well and auto-started the service. Even without a reboot, now when I first visit a domain I get the "resolving host" delay. But subsequent visits are without delay. I dare say we've got this beat!

I suppose I did a "complete removal" of some software a couple of months ago and it must have taken NSCD out with it.

Thanks much, and blessings!

Not a problem, good to hear its getting you closer  ;D ;D

Do the Windows and Linux boxes use the same DNS servers?? You mention Linux having slower resolution..
Maybe try manually entering the windows IP's on the Linux box.

This link is the same info torreydale provided but has some additional info should it help...
http://askubuntu.com/questions/272358/ex...dns-lookup

LL4.8 UEFI 64 bit ASUS E402W - AMD E2 (Quad) 1.5Ghz  - 4GB - AMD Mullins Radeon R2
LL5.8 UEFI 64 bit Test UEFI Kangaroo (Mobile Desktop) - Atom X5-Z8500 1.44Ghz - 2GB - Intel HD Graphics
LL4.8 64 bit HP 6005- AMD Phenom II X2 - 8GB - AMD/ATI RS880 (HD4200)
LL3.8 32 bit Dell Inspiron Mini - Atom N270 1.6Ghz - 1GB - Intel Mobile 945GSE Express  -- Shelved
BACK LL5.8 64 bit Dell Optiplex 160 (Thin) - Atom 230 1.6Ghz - 4GB-SiS 771/671 PCIE VGA - Print Server
Running Linux Lite since LL2.2
Reply
#10
Yes, all the machines funnel through the same router, where I manually spec three DNS servers.

Good info at that page. Thank you.

Funny, but the only two sites that still consistently hang on DNS lookup are this one (LL) and ask.libreoffice.com. Everything else seems fine. Not sure why this is, as DNS has nothing to do with remote server speed.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)