You are not logged in.

#1 2009-08-20 20:28:31

yms
Member
From: Switzerland
Registered: 2009-06-05
Posts: 64

[SOLVED] I can't browse the web although I can access it

Hi everyone (this is my first post, I'm new to ArchLinux),

I just installed ArchLinux (using the Beginner's guide and other pages from the wiki and the forum) and one of the worst issues is that although I can access the internet (I can ping and traceroute stuff and download packages with pacman), most of the time my browser (Midori) tells me that it "Cannot resolve hostname".
I've tried with firefox (I assume that most people are more used to firefox's errors) and it tells me "server not found" along with the usual "check your spelling, firewall and proxy" speech.

Sometimes (but it is quiet rare really), I can browse the web for a few minutes and then all of a sudden I get the errors.
I really don't know what the problem might be, I ruled out DNS issues because the it's just the browsing that does not work)

In case it is relevant:

I have a Lenovo ThinkPad T61 with an Intel WiFi Card and I'm using wpa_supplicant and dhcpcd to connect to the Internet.

Thank you in advance for your help (and sorry for any English mistake, I'm not a native speaker)

Last edited by yms (2009-08-25 14:59:37)


Sorry for any English mistakes, I am not a native speaker.

Offline

#2 2009-08-20 20:42:51

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,772

Re: [SOLVED] I can't browse the web although I can access it

Can you post the contents of /etc/hosts.

Have you set up a firewall?


All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.

Offline

#3 2009-08-20 20:50:24

yms
Member
From: Switzerland
Registered: 2009-06-05
Posts: 64

Re: [SOLVED] I can't browse the web although I can access it

Hi,

I can not copy/paste my /etc/hosts because I am posting from another computer. But essentially I have only one line (that is not a comment)

127.0.0.1    localhost.localdomain    localhost myhost daisy

I did not edit this file when I installed Arch, "daisy" was automatically added when I put the hostname in /etc/rc.conf.

Concerning the firewall, I have iptables installed (I selected it as a package I want during the install) but I did not mess with it since the install.

One more thing, I forgot to mention that I have that networking problem no matter if I'm root or not.

Thanks.

EDIT: I'm doing some tests with links and it seems that everything works fine. It seems that the problem I have is only with GUI browsers.

Last edited by yms (2009-08-20 21:06:49)


Sorry for any English mistakes, I am not a native speaker.

Offline

#4 2009-08-21 06:49:12

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,772

Re: [SOLVED] I can't browse the web although I can access it

Just a thought, but you could try disabling ipv6 and see if it makes a difference:

http://wiki.archlinux.org/index.php/IPv … the_Module


All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.

Offline

#5 2009-08-21 11:15:37

yms
Member
From: Switzerland
Registered: 2009-06-05
Posts: 64

Re: [SOLVED] I can't browse the web although I can access it

Hi, I can not see the link between the problems I've been having and ipv6 but since I disabled the module, everything has been running flawlessly. Thanks !

Edit: Hi again. I've done some further testing and it seems that indeed I can browse the web without any problems but now other programs complain:

- Emesene tells me (errno 3) that there is a "Temporary failure in name resolution".
- wget:

[yms@daisy ~]$ wget http://www.yms.ch/index.php
--2009-08-22 12:24:50--  http://www.yms.ch/index.php
Resolving www.yms.ch... failed: Temporary failure in name resolution.
wget: unable to resolve host address `www.yms.ch'

What could it be ? As before, there seems to be no problem with the DNS. Thank you in advance for your help.

Last edited by yms (2009-08-22 10:26:15)


Sorry for any English mistakes, I am not a native speaker.

Offline

#6 2009-08-23 12:19:33

yms
Member
From: Switzerland
Registered: 2009-06-05
Posts: 64

Re: [SOLVED] I can't browse the web although I can access it

Hi, I have tried to use ssh but it says that there is a temporary failure in name resolution too.

I'm posting instead of editing my last post in order to up the thread. I marked it as solved but then had to remove the tag. I hope this isn't considered to be spam.

Thank you ;-)


Sorry for any English mistakes, I am not a native speaker.

Offline

#7 2009-08-23 18:10:20

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,772

Re: [SOLVED] I can't browse the web although I can access it

Hi, What is your network setup?  Are you at home with a router?  Please post /etc/resolv.conf

Also post your rc.conf

Last edited by loafer (2009-08-23 19:41:31)


All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.

Offline

#8 2009-08-23 23:24:36

yms
Member
From: Switzerland
Registered: 2009-06-05
Posts: 64

Re: [SOLVED] I can't browse the web although I can access it

Hi,

I'm at home for the moment (I use a laptop and go to university so I'm going to connect to several other wireless networks) I use wpa_supplicant and dhcpcd. I have a router (http://en.wikipedia.org/wiki/Netopia in Switzerland) and that's it. Since the actual Arch install. I did not use any wired connection.

Here are my config files:

/etc/resolv.conf

# Generated by dhcpcd from wlan0
# /etc/resolv.conf.head can replace this line
nameserver 192.168.1.1
# /etc/resolv.conf.tail can replace this line

/etc/rc.conf

#
# /etc/rc.conf - Main Configuration for Arch Linux
#

# -----------------------------------------------------------------------
# LOCALIZATION
# -----------------------------------------------------------------------
#
# LOCALE: available languages can be listed with the 'locale -a' command
# HARDWARECLOCK: set to "UTC" or "localtime"
# USEDIRECTISA: use direct I/O requests instead of /dev/rtc for hwclock
# TIMEZONE: timezones are found in /usr/share/zoneinfo
# KEYMAP: keymaps are found in /usr/share/kbd/keymaps
# CONSOLEFONT: found in /usr/share/kbd/consolefonts (only needed for non-US)
# CONSOLEMAP: found in /usr/share/kbd/consoletrans
# USECOLOR: use ANSI color sequences in startup messages
#
LOCALE="en_US.utf8"
HARDWARECLOCK="localtime"
USEDIRECTISA="no"
TIMEZONE="Europe/Zurich"
KEYMAP="fr_CH"
#CONSOLEFONT="ter-v16b"
CONSOLEFONT=
CONSOLEMAP=
USECOLOR="yes"

# -----------------------------------------------------------------------
# HARDWARE
# -----------------------------------------------------------------------
#
# MOD_AUTOLOAD: Allow autoloading of modules at boot and when needed
# MOD_BLACKLIST: Prevent udev from loading these modules
# MODULES: Modules to load at boot-up. Prefix with a ! to blacklist.
#
# NOTE: Use of 'MOD_BLACKLIST' is deprecated. Please use ! in the MODULES array.
#
MOD_AUTOLOAD="yes"
#MOD_BLACKLIST=() #deprecated
MODULES=()

# Scan for LVM volume groups at startup, required if you use LVM
USELVM="no"

# -----------------------------------------------------------------------
# NETWORKING
# -----------------------------------------------------------------------
#
# HOSTNAME: Hostname of machine. Should also be put in /etc/hosts
#
HOSTNAME="daisy"

# Use 'ifconfig -a' or 'ls /sys/class/net/' to see all available interfaces.
#
# Interfaces to start at boot-up (in this order)
# Declare each interface then list in INTERFACES
#   - prefix an entry in INTERFACES with a ! to disable it
#   - no hyphens in your interface names - Bash doesn't like it
# 
# DHCP:     Set your interface to "dhcp" (eth0="dhcp")
# Wireless: See network profiles below
#

#Static IP example
#eth0="eth0 192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255"
eth0="dhcp"
INTERFACES=(eth0)

# Routes to start at boot-up (in this order)
# Declare each route then list in ROUTES
#   - prefix an entry in ROUTES with a ! to disable it
#
gateway="default gw 192.168.0.1"
ROUTES=(!gateway)
 
# Enable these network profiles at boot-up.  These are only useful
# if you happen to need multiple network configurations (ie, laptop users)
#   - set to 'menu' to present a menu during boot-up (dialog package required)
#   - prefix an entry with a ! to disable it
#
# Network profiles are found in /etc/network.d
#
# This now requires the netcfg package
#
#NETWORKS=(main)

# -----------------------------------------------------------------------
# DAEMONS
# -----------------------------------------------------------------------
#
# Daemons to start at boot-up (in this order)
#   - prefix a daemon with a ! to disable it
#   - prefix a daemon with a @ to start it up in the background
#
DAEMONS=(syslog-ng network netfs crond hal alsa ifplugd)

Thank you for your help ;-)


Sorry for any English mistakes, I am not a native speaker.

Offline

#9 2009-08-24 01:54:34

neddie_seagoon
Member
Registered: 2009-08-23
Posts: 121

Re: [SOLVED] I can't browse the web although I can access it

It's odd that some apps can resolve names but others can't... have you tried to use other nameservers just to rule this out? While your connection is up, comment out the existing nameserver line and add:

nameserver 208.67.222.222
nameserver 208.67.220.220

(openDNS nameservers)

Then try to use wget or other console apps to see if name resolution works. Also, do you have any local DNS daemons like avahi running?

Offline

#10 2009-08-24 07:33:20

yms
Member
From: Switzerland
Registered: 2009-06-05
Posts: 64

Re: [SOLVED] I can't browse the web although I can access it

Hi, I'll try your solution and edit this post to tell you what happened although I'd rather not rely entirely on one DNS.
As far as avahi is concerned. Nothing seems to be running by default, but I remember installing some avahi packages and indeed I have "avahi zeroconf browser", "avahi ssh server browser" and "avahi vnc server browser".

Edit: Everything seems to work with the new DNS. Thanks ! But still I don't understand the problem (and why some programs could resolve hostnames and others could not) and again, I would prefer not to rely entirely on one DNS.

Edit 2: I've just done some more tests and it seems that dhcpcd rewrites /etc/resolv.conf every time. I'm a bit lost right now.

Last edited by yms (2009-08-24 08:12:00)


Sorry for any English mistakes, I am not a native speaker.

Offline

#11 2009-08-24 19:52:33

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,772

Re: [SOLVED] I can't browse the web although I can access it


All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.

Offline

#12 2009-08-24 23:28:43

neddie_seagoon
Member
Registered: 2009-08-23
Posts: 121

Re: [SOLVED] I can't browse the web although I can access it

Glad to hear things are working with the new nameservers.

yms wrote:

I would prefer not to rely entirely on one DNS.

Following the above wiki article you can still add your router's IP (or any other nameservers, like your ISP's) to the nameserver list so it will be used if the OpenDNS ones are down for some reason.

Offline

#13 2009-08-25 14:59:05

yms
Member
From: Switzerland
Registered: 2009-06-05
Posts: 64

Re: [SOLVED] I can't browse the web although I can access it

I now use OpenDNS and stuff seems to work fine, Thanks a lot ;-)
However, I still don't understand what the problem was.


Sorry for any English mistakes, I am not a native speaker.

Offline

#14 2009-08-25 18:28:30

neddie_seagoon
Member
Registered: 2009-08-23
Posts: 121

Re: [SOLVED] I can't browse the web although I can access it

However, I still don't understand what the problem was.

It's possible that the nameservers given to your router by your ISP, which your computer then uses, are having some issue that results in this flakiness. DNS issues can be odd so it's hard to say. smile

Offline

Board footer

Powered by FluxBB