NOTE TO computerconsultantsforum.com and forums.techcareerfubar.com USERS: This is the same site. Your login will work here. Use the "forgot password" function if you need help recovering your password.

Obvious fact: You're not logged in.

Therefore, you're only seeing the tip of the iceberg of great discussion threads on this site.

Get rid of this big black message box by joining here: http://mature-it.pro/register/

Who We Are: A collection of IT, engineering and sciences professionals, in a variety of current circumstances with a variety of career backgrounds. Including System admins, Developers and programmers, Freelancers and "gig" entrepreneurs, Contract, job shopping and FTE-employed contract house IT workers, Web developers, Inventors, and artists and writers with tech backgrounds.

We're smarter than the hive mind you've experienced on large tech discussion forums and groups. So register on the board - your email is NEVER sold or provided to third parties. Then LOGIN FREQUENTLY to see new stuff daily.

Join by Registering here: http://mature-it.pro/register/

Author Topic: Linux Mint 18 - SLOWWW DNS Lookups on my box! Solved.  (Read 125 times)

G0ddard B0lt

  • I absolutely DESPISE improvised sulfur-charcoal-salt peter cannons made out of hollow tree branches filled with diamonds as projectiles.
  • Trusted Member
  • Wise Sage
  • ******
  • Posts: 22672
  • Gorn Classic, user of Gornix
Linux Mint 18 - SLOWWW DNS Lookups on my box! Solved.
« on: September 25, 2018, 09:00:58 am »
One thing I started to notice about Linux several months ago (and I'm not certain the problem existed or not before that) was that almost all browser pages took forever to load. Even the leanest page I had just looked at would take 2-3 seconds to come up.

I started to watch the bottom Firefox status bar and it would stay stuck for an eternity on "Looking up veeblefetzer.com". It could be any site. Even something big like maps.google.com.

I tried both the Google DNS name servers, as well as OpenDNS's name servers. No difference in behavior.

I started looking on search for a fix, and mainly I've found randomness about this problem online.

I stumbled into one thing cited as fix: disabling "dnsmasq" - https://en.wikipedia.org/wiki/Dnsmasq

Apparently it's a DNS cache and forwarder.  I made the config changes to disable #dnsmasq and no effect.

Finally I had an epiphany. In the connections applet and the connection info dialog I noticed that my box has an ipv6 address in addition to the (legacy, old-timey) ipv4 address.

DID *I* HAVE IPV6 IN THE HOUSE ON MY CONNECTION?

Well, here's what I realized:

My "front-end" router that connects to the cable modem is a DLink DIR-655 router. Last firmware update (the last known one, too) is from 2013. The router was purchased (probably at Costco) in 2009.

I looked up the router and it almost certainly does not support IPV6.

However, my cable modem does, according to the info on the model number.  But IPV6 isn't getting out of our house to the internet.

I found instructions for disabling IPV6 locally on my Linux system. In /etc/sysctl.conf:

Code: [Select]
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1

PROBLEM SOLVED. Lookups and web browsing are comparatively like greased lightning now.

(Strangely the IPV6 settings and address are still present in the connections info on the desktop. But this change supposedly disables IPV6 entirely at the system level.)

I do need to upgrade that old router, though. It's only 2.4 GHZ and the signal isn't that strong throughout the house.
Gornix is protected by the GPL. *

* Gorn Public License. Duplication by inferior sentient species prohibited.

unix

  • Trusted Member
  • Wise Sage
  • ******
  • Posts: 4296
Re: Linux Mint 18 - SLOWWW DNS Lookups on my box! Solved.
« Reply #1 on: September 25, 2018, 04:23:54 pm »

So there it is. By default it forces IPV6 unless you disable it. Interesting.
Brawndo. It's got what plants crave.

G0ddard B0lt

  • I absolutely DESPISE improvised sulfur-charcoal-salt peter cannons made out of hollow tree branches filled with diamonds as projectiles.
  • Trusted Member
  • Wise Sage
  • ******
  • Posts: 22672
  • Gorn Classic, user of Gornix
Re: Linux Mint 18 - SLOWWW DNS Lookups on my box! Solved.
« Reply #2 on: September 25, 2018, 04:51:41 pm »
In 2018 and ipv6  *should* work with most connections. I checked and our cable provider (Spectrum) claims that IPV6 is almost 100% across what they call its "footprint".

I suspect that the networking stuff in Linux is attempting an ipv6 DNS lookup and stalling and timing out - because the house router doesn't handle it correctly - before dropping down to ipv4.
Gornix is protected by the GPL. *

* Gorn Public License. Duplication by inferior sentient species prohibited.