You are not logged in.

#1 2014-02-15 13:58:02

fettouhi
Member
Registered: 2007-05-07
Posts: 757

[SOLVED] Long response times running with static ip now

Until recently I was using OpenDNS on my network exclusively. I was running all my devices via DHCP. I just bought a Roku 3 and since I'm outside the US in order to get netflix working on the Roku 3 I have to run a different set DNS servers (Unotelly) on my router on order for it to work. My problem is now that I want to use keep using OpenDNS on my main machine running Arch Linux 64 bit (with KDE 4.12.2). So I set it my machine to run with a static IP and the OpenDNS a my DNS server. Now for my problem, since switching to static IP all initial connections to webpages take to much longer now. The speed of my internet is the but the connecting to a website for the first time just takes way longer. Once the site has loaded it runs fast when switching to different pages etc. Is there a way to improve that? Have I misconfigured my network? I'm using networkmanager (via nm-plasma) to manage the network.

Last edited by fettouhi (2014-02-16 17:47:00)

Offline

#2 2014-02-15 14:08:02

Raynman
Member
Registered: 2011-10-22
Posts: 1,539

Re: [SOLVED] Long response times running with static ip now

fettouhi wrote:

Have I misconfigured my network?

Perhaps. In any case, you don't need to switch from DHCP to a static IP to have control over the DNS settings. See https://wiki.archlinux.org/index.php/re … pcd_config

Offline

#3 2014-02-15 15:03:08

fettouhi
Member
Registered: 2007-05-07
Posts: 757

Re: [SOLVED] Long response times running with static ip now

Raynman wrote:
fettouhi wrote:

Have I misconfigured my network?

Perhaps. In any case, you don't need to switch from DHCP to a static IP to have control over the DNS settings. See https://wiki.archlinux.org/index.php/re … pcd_config

But I am using NetworkManager and that overrides resolves.conf constantly.

Offline

#4 2014-02-15 15:35:44

Raynman
Member
Registered: 2011-10-22
Posts: 1,539

Re: [SOLVED] Long response times running with static ip now

Right, so am I, but because NM uses dhcpcd (unless you have another client) I assumed it would be useful. Turns out NM also uses resolvconf. There's another subsection on that and there's a link to a thread about NM in that wiki section, but that seems like a hack.

I took a peek at the nm-connection-editor (part of network-manager-applet): the default is "Automic (DHCP)" which only allows you to specify additional DNS servers, but there's also "Automic (DHCP) addresses only" where the inputs for DNS servers and search domains no longer have the word "additional" in their labels, so that seems like a good fit for your situation. Doesn't nm-plasma allow you to configure it like this?

Last edited by Raynman (2014-02-15 15:36:20)

Offline

#5 2014-02-15 16:47:24

fettouhi
Member
Registered: 2007-05-07
Posts: 757

Re: [SOLVED] Long response times running with static ip now

Raynman wrote:

Right, so am I, but because NM uses dhcpcd (unless you have another client) I assumed it would be useful. Turns out NM also uses resolvconf. There's another subsection on that and there's a link to a thread about NM in that wiki section, but that seems like a hack.

I took a peek at the nm-connection-editor (part of network-manager-applet): the default is "Automic (DHCP)" which only allows you to specify additional DNS servers, but there's also "Automic (DHCP) addresses only" where the inputs for DNS servers and search domains no longer have the word "additional" in their labels, so that seems like a good fit for your situation. Doesn't nm-plasma allow you to configure it like this?

Yes nm-plasma does have these two options for DHCP. I tried Automatic (DHCP) addresses only option before and it didn't work because when I checked to see if I was using OpenDNS I got an error. I just tried it again after reading your response and now it works. Though I still would like to know  how to add

domain fullrate.dk

to resolv.conf via nm-plasma or any other networkmanager applet. fullrate.dk is my internet provider.

Offline

#6 2014-02-16 09:50:46

fettouhi
Member
Registered: 2007-05-07
Posts: 757

Re: [SOLVED] Long response times running with static ip now

I've tried now to add

domain fullrate.dk

to /etc/resolv.conf.head but it doesn't work. Does networkmanager take precidence over dhcpd?

Offline

#7 2014-02-16 17:46:37

fettouhi
Member
Registered: 2007-05-07
Posts: 757

Re: [SOLVED] Long response times running with static ip now

I finally fixed the long response time I had when switching to static ip. I'm now running dhcp with OpenDNS using dnsmasq to set OpenDNS as my dns servers

https://wiki.archlinux.org/index.php/Dnsmasq

what is weird that the above wiki article mentions that using alternative dns servers can be obtained very easily but using networkmanager and editing the DNS servers manually. But that issue what caused the strange delay in look up on the internet for me. I'm a bit confused here now to what caused the delay in the end. Can dnsmasq handle adding

domain fullrate.dk

to resolv.conf

if so then how does one do it when NetworkManager is involved?

Last edited by fettouhi (2014-02-16 17:46:47)

Offline

#8 2014-02-16 21:15:50

Raynman
Member
Registered: 2011-10-22
Posts: 1,539

Re: [SOLVED] Long response times running with static ip now

As I mentioned, nm-connection-editor also shows an input field for "search domains" (below "DNS servers"). I assume that translates to a domain line in resolv.conf and then (since you said that setting the DNS server worked) you could probably work with NM's "Automatic (DHCP) addresses only", without dnsmasq.

Offline

#9 2014-02-16 21:30:24

fettouhi
Member
Registered: 2007-05-07
Posts: 757

Re: [SOLVED] Long response times running with static ip now

Raynman wrote:

As I mentioned, nm-connection-editor also shows an input field for "search domains" (below "DNS servers"). I assume that translates to a domain line in resolv.conf and then (since you said that setting the DNS server worked) you could probably work with NM's "Automatic (DHCP) addresses only", without dnsmasq.

No the search domain line equates to

search fullrate.dk

if I put fullrate.dk in the there. The problem is that if I remove dnsmasq and just rely on "Automatic (DHCP) addresses only" in the KDE nm-applet I still get the long response times in initila lookup requests on the internet.

Offline

Board footer

Powered by FluxBB