You are Here:
Linux Lite 6.6 FINAL Released - Support for 22 Languages Added - See Release Announcement Section



No DNS cache

Author (Read 15611 times)

0 Members and 1 Guest are viewing this topic.

Re: No DNS cache
« Reply #16 on: April 22, 2016, 06:11:40 PM »
 

Wirezfree

  • PayPal Supporter
  • Platinum Level Poster
  • *****
  • 1484
    Posts
  • Reputation: 405
  • Linux Lite "Advocate"
    • View Profile

  • CPU: i7-4790S

  • MEMORY: 16Gb

  • VIDEO CARD: Intel HD4600 (Integrated)
@paul1149
Do you have Chrome Browser installed.??
IIRC it will only show results if it detects you have Chrome browser default.??
Upgrades WIP 2.6 to 2.8 - (6 X 2.6 to 2.8 completed on: 20/02/16 All O.K )
Linux Lite 3.0 Humming on a ASRock N3070 Mobo ~ btrfs RAID 10 Install on 4 Disks :)

Computers Early days:
ZX Spectrum(1982) , HP-150 MS-DOS(1983) , Amstrad CPC464(1984) ,  BBC Micro B+64(1985) , My First PC HP-Vectra(1987)
 

Re: No DNS cache
« Reply #15 on: April 22, 2016, 03:35:15 PM »
 

paul1149

  • PayPal Supporter
  • I come here a lot
  • *****
  • 316
    Posts
  • Reputation: 42
  • Enjoying Linux
    • View Profile

  • CPU: C2D

  • MEMORY: 6Gb

  • VIDEO CARD: nVidia
Done. Sorry, I forgot about that.
 

Re: No DNS cache
« Reply #14 on: April 22, 2016, 03:32:18 PM »
 

torreydale

  • PayPal Supporter
  • Platinum Level Poster
  • *****
  • 1588
    Posts
  • Reputation: 261
  • * Forum Moderator *
    • View Profile

  • CPU: Intel i5-3230M (4) @ 3.200GHz

  • MEMORY: 16Gb

  • VIDEO CARD: Intel 3rd Gen Core processor Graphics

  • Kernel: 5.x
paul1149,

In reply #5, you mentioned you think this is solved.  If so, could you mark this thread as such?
Want to thank me?  Click my [Thank] link.
 

Re: No DNS cache
« Reply #13 on: April 22, 2016, 03:27:35 PM »
 

paul1149

  • PayPal Supporter
  • I come here a lot
  • *****
  • 316
    Posts
  • Reputation: 42
  • Enjoying Linux
    • View Profile

  • CPU: C2D

  • MEMORY: 6Gb

  • VIDEO CARD: nVidia
Wirez: I gave namebench a spin (I ran it when the problem first arose as well). But I don't see any report. It ran twice in GUI mode, finally I killed it, with nothing to show for it. I did run raw pings on the nameservers back then, and found them all close in speed.

Fire: I found the 'mdns4" spec missing from that line and added it. Otherwise the desired order was already there. I think I'd like to leave IP6 in place, as soon it probably will be necessary.

Thanks guys.
 

Re: No DNS cache
« Reply #12 on: April 22, 2016, 01:54:07 PM »
 

firenice03

  • Rockin' the FREE World
  • Global Moderator
  • Platinum Level Poster
  • *****
  • 1848
    Posts
  • Reputation: 284
  • Linux Lite Member
    • View Profile

  • CPU: AMD E2//Atom X5//AMD Phenom II X2

  • MEMORY: 4Gb

  • VIDEO CARD: AMD Mullin Radeon R2//Intel//AMD/ATI RS880

  • Kernel: 5.x
One other to try...


Check  /etc/nsswitch.conf  file... Look for..
Code: [Select]
hosts:          files mdns4_minimal [NOTFOUND=return] wins dns mdns4
Within that line, "wins" is mentioned..
Change the order to:
Code: [Select]
hosts:          files mdns4_minimal [NOTFOUND=return] dns mdns4 wins

As suggested here:
http://ubuntuforums.org/showthread.php?t=1904264&page=2

Update: Another thought
Something else to try, try turning off IPv6
How to disable: http://askubuntu.com/questions/440649/how-to-disable-ipv6-in-ubuntu-14-04
« Last Edit: April 22, 2016, 02:05:38 PM by firenice03 »
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
 

Re: No DNS cache
« Reply #11 on: April 22, 2016, 01:46:46 PM »
 

Wirezfree

  • PayPal Supporter
  • Platinum Level Poster
  • *****
  • 1484
    Posts
  • Reputation: 405
  • Linux Lite "Advocate"
    • View Profile

  • CPU: i7-4790S

  • MEMORY: 16Gb

  • VIDEO CARD: Intel HD4600 (Integrated)
If you are feeling really geeky,
and want to test dns out.??

namebench is available in synaptic...
Upgrades WIP 2.6 to 2.8 - (6 X 2.6 to 2.8 completed on: 20/02/16 All O.K )
Linux Lite 3.0 Humming on a ASRock N3070 Mobo ~ btrfs RAID 10 Install on 4 Disks :)

Computers Early days:
ZX Spectrum(1982) , HP-150 MS-DOS(1983) , Amstrad CPC464(1984) ,  BBC Micro B+64(1985) , My First PC HP-Vectra(1987)
 

Re: No DNS cache
« Reply #10 on: April 22, 2016, 01:38:29 PM »
 

paul1149

  • PayPal Supporter
  • I come here a lot
  • *****
  • 316
    Posts
  • Reputation: 42
  • Enjoying Linux
    • View Profile

  • CPU: C2D

  • MEMORY: 6Gb

  • VIDEO CARD: nVidia
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.
 

Re: No DNS cache
« Reply #9 on: April 22, 2016, 01:26:24 PM »
 

firenice03

  • Rockin' the FREE World
  • Global Moderator
  • Platinum Level Poster
  • *****
  • 1848
    Posts
  • Reputation: 284
  • Linux Lite Member
    • View Profile

  • CPU: AMD E2//Atom X5//AMD Phenom II X2

  • MEMORY: 4Gb

  • VIDEO CARD: AMD Mullin Radeon R2//Intel//AMD/ATI RS880

  • Kernel: 5.x
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/extrememly-slow-dns-lookup

« Last Edit: April 22, 2016, 01:35:01 PM by firenice03 »
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
 

Re: No DNS cache
« Reply #8 on: April 22, 2016, 12:27:28 PM »
 

paul1149

  • PayPal Supporter
  • I come here a lot
  • *****
  • 316
    Posts
  • Reputation: 42
  • Enjoying Linux
    • View Profile

  • CPU: C2D

  • MEMORY: 6Gb

  • VIDEO CARD: nVidia
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.
 

Re: No DNS cache
« Reply #7 on: April 22, 2016, 12:15:12 PM »
 

technomancer

  • PayPal Supporter
  • Forum Regular
  • *****
  • 193
    Posts
  • Reputation: 31
  • linux for life
    • View Profile
    • silver arroyo jewelry

  • CPU: i7

  • MEMORY: 16Gb

  • VIDEO CARD: nvidia m860
(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.



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.
 

Re: No DNS cache
« Reply #6 on: April 22, 2016, 10:39:04 AM »
 

paul1149

  • PayPal Supporter
  • I come here a lot
  • *****
  • 316
    Posts
  • Reputation: 42
  • Enjoying Linux
    • View Profile

  • CPU: C2D

  • MEMORY: 6Gb

  • VIDEO CARD: nVidia
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.
 

Re: No DNS cache
« Reply #5 on: April 22, 2016, 10:26:54 AM »
 

paul1149

  • PayPal Supporter
  • I come here a lot
  • *****
  • 316
    Posts
  • Reputation: 42
  • Enjoying Linux
    • View Profile

  • CPU: C2D

  • MEMORY: 6Gb

  • VIDEO CARD: nVidia
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.
 

Re: No DNS cache
« Reply #4 on: April 22, 2016, 10:17:10 AM »
 

torreydale

  • PayPal Supporter
  • Platinum Level Poster
  • *****
  • 1588
    Posts
  • Reputation: 261
  • * Forum Moderator *
    • View Profile

  • CPU: Intel i5-3230M (4) @ 3.200GHz

  • MEMORY: 16Gb

  • VIDEO CARD: Intel 3rd Gen Core processor Graphics

  • Kernel: 5.x
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: [Select]
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?
« Last Edit: April 22, 2016, 10:20:13 AM by torreydale »
Want to thank me?  Click my [Thank] link.
 

Re: No DNS cache
« Reply #3 on: April 22, 2016, 10:12:04 AM »
 

paul1149

  • PayPal Supporter
  • I come here a lot
  • *****
  • 316
    Posts
  • Reputation: 42
  • Enjoying Linux
    • View Profile

  • CPU: C2D

  • MEMORY: 6Gb

  • VIDEO CARD: nVidia
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!
 

Re: No DNS cache
« Reply #2 on: April 22, 2016, 09:59:50 AM »
 

firenice03

  • Rockin' the FREE World
  • Global Moderator
  • Platinum Level Poster
  • *****
  • 1848
    Posts
  • Reputation: 284
  • Linux Lite Member
    • View Profile

  • CPU: AMD E2//Atom X5//AMD Phenom II X2

  • MEMORY: 4Gb

  • VIDEO CARD: AMD Mullin Radeon R2//Intel//AMD/ATI RS880

  • Kernel: 5.x
You may need to install?? Since the error command not found...

Found this:
Install nscd using the following command if not yet
Code: [Select]
sudo apt-get install nscd
Flush DNS Cache in Ubuntu by restarting the nscd

Code: [Select]
sudo /etc/init.d/nscd restart
From here: http://askubuntu.com/questions/414826/how-to-flush-dns-in-ubuntu-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)
« Last Edit: April 22, 2016, 10:03:12 AM by firenice03 »
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
 

 

-->
X Close Ad

Linux Lite 6.6 FINAL Released - Support for 22 Languages Added - See Release Announcement Section