You are not logged in.

#1 2015-09-16 03:29:06

vitiral
Member
Registered: 2015-09-16
Posts: 10

[Solved] netctl and slow dns server

Hey everyone, this is my first post on Arch linux forum. I just started using arch about a month ago and I love it. It has made it so easy to get my perfect desktop environment (arch + i3 is the best!)

One of the things I love about Arch is how fast the networking is... was... is again! About a week ago it suddently started taking up to 2 minutes to be able to browse the web and connect over vpn every time I came from suspended mode.

I finally found the solution tonight -- I could ping 8.8.8.8 even though I couldn't get to google. I added the following lines to my netctl profile:

```
DNS=('8.8.8.8')
```

And that did the trick! It now connects almost instantly again.

Now what I would like to do is make 8.8.8.8 standard for every network profile (without me having to modify it every time), but I couldn't find a good way to do that from the documentation. Anyone have any ideas?

Offline

#2 2015-09-16 03:41:52

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [Solved] netctl and slow dns server


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2015-09-17 09:57:13

kozaki
Member
From: London >. < Paris
Registered: 2005-06-13
Posts: 673
Website

Re: [Solved] netctl and slow dns server

You can create a file called /etc/resolv.conf.head containing your DNS servers. dhcpcd will prepend this file to the beginning of /etc/resolv.conf.
If privacy is something you care about then have a look on the 'Alternative DNS servers' paragraph in the wiki.
Also namebench is a DNS testing tool; it can tell you what are the fastest/nearest DNS servers for the NNN last sites you visited (uses your chosen $BROWSER history). Last but not the least, dnsmasq can be used to make our DNS requests fly and have better privacy }:-)

Last edited by kozaki (2015-09-17 09:58:52)


Seeded last month: Arch 50 gig, derivatives 1 gig
Desktop @3.3GHz 8 gig RAM, linux-ck
laptop #1 Atom 2 gig RAM, Arch linux stock i686 (6H w/ 6yrs old battery smile) #2: ARM Tegra K1, 4 gig RAM, ChrOS
Atom Z520 2 gig RAM, OMV (Debian 7) kernel 3.16 bpo on SDHC | PGP Key: 0xFF0157D9

Offline

Board footer

Powered by FluxBB