You are not logged in.

#1 2014-06-19 02:00:29

jtheripper93
Member
Registered: 2014-06-17
Posts: 6

[SOLVED] Internet 'delay': Web browser and even pacman don't connect

Hello arch community. I'm a new arch linux user. Right now I'm very excited running and discovering Arch and the Wiki. Thank all the community efforts to make this the great distro it is. smile

It is very wierd. Everything that uses internet connection don't work the first try. This affects all my programs: curl, firefox, and even pacman.
Using networkManager with Cinnamon. NetworkManager is using dhcpcd.
Because this is my desktop PC, I'm using a wired connection. On my other  Linux (linux mint), everything is fine.

e.g, with pacman:

I open a terminal and try to install some package with pacman:

Packages (8): clucene-2.3.3.4-8  hyphen-2.8.6-1  libreoffice-common-4.2.4-2  libreoffice-pt-BR-4.2.4-2  raptor-2.0.13-2  rasqal-1:0.9.32-1  redland-1:1.0.17-2
              libreoffice-writer-4.2.4-2

Total Download Size:    80.86 MiB
Total Installed Size:   334.92 MiB

:: Proceed with installation? [Y/n] 
:: Retrieving packages ...
error: failed retrieving file 'libreoffice-pt-BR-4.2.4-2-any.pkg.tar.xz' from pet.inf.ufsc.br : Could not resolve host: pet.inf.ufsc.br
error: failed retrieving file 'libreoffice-pt-BR-4.2.4-2-any.pkg.tar.xz' from mirror.nl.leaseweb.net : Could not resolve host: mirror.nl.leaseweb.net
error: failed retrieving file 'libreoffice-pt-BR-4.2.4-2-any.pkg.tar.xz' from mirror.gnomus.de : Could not resolve host: mirror.gnomus.de
^C
Interrupt signal received

then, right after that, if I try again:

Total Installed Size:   334.92 MiB

:: Proceed with installation? [Y/n] 
:: Retrieving packages ...
 libreoffice-pt-BR-4.2.4-2-any                                                      2.8 MiB   565K/s 00:05 [###############################################################] 100%
 raptor-2.0.13-2-x86_64                                                           258.0 KiB   513K/s 00:01 [###############################################################] 100%
 rasqal-1:0.9.32-1-x86_64                                                         243.9 KiB   534K/s 00:00 [###############################################################] 100%
 redland-1:1.0.17-2-x86_64                                                        192.2 KiB   588K/s 00:00 [###############################################################] 100%
 hyphen-2.8.6-1-x86_64                                                             13.5 KiB   673K/s 00:00 [###############################################################] 100%
 clucene-2.3.3.4-8-x86_64                                                         761.2 KiB   587K/s 00:01 [###############################################################] 100%
 libreoffice-common-4.2.4-2-x86_64                                                 11.6 MiB   588K/s 01:43 [##########-----------------------------------------------------]  16%

It works normally.

Last edited by jtheripper93 (2014-06-19 02:49:24)

Offline

#2 2014-06-19 02:07:02

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,335
Website

Re: [SOLVED] Internet 'delay': Web browser and even pacman don't connect

As a diagnostic test, you could (temporarily) disable IPv6.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2014-06-19 02:08:41

samiam
Banned
From: EAX
Registered: 2010-08-20
Posts: 58

Re: [SOLVED] Internet 'delay': Web browser and even pacman don't connect

Sounds like a slow DNS server somewhere, or one that's down.

for H in $(grep nameserver /etc/resolv.conf | cut -d ' ' -f 2); do echo "Asking ${H} for mirror.nl.leaseweb.net"; time host mirror.nl.leaseweb.net ${H}; done

Offline

#4 2014-06-19 02:16:22

jtheripper93
Member
Registered: 2014-06-17
Posts: 6

Re: [SOLVED] Internet 'delay': Web browser and even pacman don't connect

Thank you both for the quick answer.

Trilby wrote:

As a diagnostic test, you could (temporarily) disable IPv6.

I'm going to try that right away. But, if it matters, I did configured NetworkManager to ignore ipv6 settings..

samiam wrote:

Sounds like a slow DNS server somewhere, or one that's down.

for H in $(grep nameserver /etc/resolv.conf | cut -d ' ' -f 2); do echo "Asking ${H} for mirror.nl.leaseweb.net"; time host mirror.nl.leaseweb.net ${H}; done

I did that, and:

$ for H in $(grep nameserver /etc/resolv.conf | cut -d ' ' -f 2); do echo "Asking ${H} for mirror.nl.leaseweb.net"; time host mirror.nl.leaseweb.net ${H}; done
Asking 192.168.1.1 for mirror.nl.leaseweb.net
Using domain server:
Name: 192.168.1.1
Address: 192.168.1.1#53
Aliases: 

mirror.nl.leaseweb.net has address 94.75.223.121
Host mirror.nl.leaseweb.net.domain.name not found: 5(REFUSED)

real	0m0.376s
user	0m0.003s
sys	0m0.007s

Hope it helps.

Offline

#5 2014-06-19 02:20:42

samiam
Banned
From: EAX
Registered: 2010-08-20
Posts: 58

Re: [SOLVED] Internet 'delay': Web browser and even pacman don't connect

jtheripper93 wrote:

Host mirror.nl.leaseweb.net.domain.name not found: 5(REFUSED)

What the ... ?!

Run 'hostname', 'domainname' and 'cat /etc/resolv.conf' and report back

Last edited by samiam (2014-06-19 02:21:05)

Offline

#6 2014-06-19 02:30:52

jtheripper93
Member
Registered: 2014-06-17
Posts: 6

Re: [SOLVED] Internet 'delay': Web browser and even pacman don't connect

samiam wrote:

Run 'hostname', 'domainname' and 'cat /etc/resolv.conf' and report back

$ hostname
ripper
$ domainname
(none)
$ cat /etc/resolv.conf 
# Generated by resolvconf
domain domain.name
nameserver 192.168.1.1
nameserver 208.67.222.222 #openDNS ip
nameserver 208.67.220.220 #openDNS ip

Offline

#7 2014-06-19 02:36:52

samiam
Banned
From: EAX
Registered: 2010-08-20
Posts: 58

Re: [SOLVED] Internet 'delay': Web browser and even pacman don't connect

That's what I figured. Every time your system does a DNS lookup it first does it for whatever.you.typed.com.domain.name before doing it correctly. That's  being set by your DHCP server, which I'm guessing is a consumer router. Remove that line from resolv.conf and see if things improve. If they do, find that setting in your router and remove domain.name.

EDIT: And actually - it might be that your router thinks it's a DNS server when it isn't. Try this too:

host www.google.com 192.168.1.1

Last edited by samiam (2014-06-19 02:38:50)

Offline

#8 2014-06-19 02:44:45

jtheripper93
Member
Registered: 2014-06-17
Posts: 6

Re: [SOLVED] Internet 'delay': Web browser and even pacman don't connect

Indeed it worked! Thank you! Problem Solved! big_smile

I did removed the domain line from resolv.conf, then worked in my router and found the domain  thing. Erased that line from the form and now it's fine.

Last edited by jtheripper93 (2014-06-19 02:47:56)

Offline

Board footer

Powered by FluxBB