Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can ping but not browse/wget
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
ComputerNerd
n00b
n00b


Joined: 27 Feb 2013
Posts: 25

PostPosted: Fri Mar 01, 2013 1:54 am    Post subject: Can ping but not browse/wget Reply with quote

For some strange reason when using both wifi and ethernet I am able to ping some sites but not visit them. I do not understand why that is.
Code:

yoda@Mordor ~ $ ping -c 3 forums.gentoo.org
PING gossamer-ipvs-forums-v4v6.gentoo.org (204.187.15.12) 56(84) bytes of data.
64 bytes from forums.gentoo.org (204.187.15.12): icmp_seq=1 ttl=55 time=102 ms
64 bytes from forums.gentoo.org (204.187.15.12): icmp_seq=2 ttl=55 time=101 ms
64 bytes from forums.gentoo.org (204.187.15.12): icmp_seq=3 ttl=55 time=101 ms

--- gossamer-ipvs-forums-v4v6.gentoo.org ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2002ms
rtt min/avg/max/mdev = 101.113/101.750/102.179/0.528 ms
yoda@Mordor ~ $ wget forums.gentoo.org
--2013-02-28 19:54:27--  http://forums.gentoo.org/
Resolving forums.gentoo.org... failed: No address associated with hostname.
wget: unable to resolve host address 'forums.gentoo.org'

Code:

Mordor / # emerge --sync
!!! getaddrinfo failed for 'rsync6.us.gentoo.org': [Errno -5] No address associated with hostname
>>> Starting rsync with rsync://rsync6.us.gentoo.org/gentoo-portage...
>>> Checking server timestamp ...
rsync: getaddrinfo: rsync6.us.gentoo.org 873: No address associated with hostname
rsync error: error in socket IO (code 10) at clientserver.c(122) [Receiver=3.0.9]
>>> Retrying...
!!! Exhausted addresses for rsync6.us.gentoo.org
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21490

PostPosted: Fri Mar 01, 2013 3:16 am    Post subject: Reply with quote

What is the output of ls -l /etc/resolv.conf ; cat -n /etc/resolv.conf?
Back to top
View user's profile Send private message
ComputerNerd
n00b
n00b


Joined: 27 Feb 2013
Posts: 25

PostPosted: Fri Mar 01, 2013 3:21 am    Post subject: Reply with quote

Hu wrote:
What is the output of ls -l /etc/resolv.conf ; cat -n /etc/resolv.conf?

Code:

yoda@Mordor ~ $ ls -l /etc/resolv.conf
-rw-r--r-- 1 root root 148 Feb 28 20:53 /etc/resolv.conf
yoda@Mordor ~ $ cat -n /etc/resolv.conf
     1   # Generated by dhcpcd from wlan0
     2   # /etc/resolv.conf.head can replace this line
     3   nameserver 192.168.0.1
     4   # /etc/resolv.conf.tail can replace this line
Back to top
View user's profile Send private message
lexflex
Guru
Guru


Joined: 05 Mar 2006
Posts: 363
Location: the Netherlands

PostPosted: Fri Mar 01, 2013 5:20 am    Post subject: Reply with quote

Seems to be the same problem as here:

https://forums.gentoo.org/viewtopic-t-847163-highlight-wget.html
https://forums.gentoo.org/viewtopic-t-867551-start-0.html

It appears ping uses ipv4 per default, and wget used ipv6 per default.
So, if you dont have an IPv6 internetconnection, this might not work

Suggestion is to emerge wget again using "-ipv6" ( see second link)

Alex.
Back to top
View user's profile Send private message
ComputerNerd
n00b
n00b


Joined: 27 Feb 2013
Posts: 25

PostPosted: Fri Mar 01, 2013 5:58 am    Post subject: Reply with quote

Yep that was the issue the network that I am on right now does not appear to support ipv6. I do not know why I would not have thought of it.
Back to top
View user's profile Send private message
ComputerNerd
n00b
n00b


Joined: 27 Feb 2013
Posts: 25

PostPosted: Fri Mar 01, 2013 3:35 pm    Post subject: Reply with quote

Sorry for the double post but it appears that there is no way for portage/emerge to use ipv4 like the wget. Is the only way to disable ipv6 in the kernel and have -ipv6 in my use flags. One Network that I use supports ipv6 and the other one does not. I do not want to recompile every other week just to switch between ipv6 and ipv4 there has to be a better way.
Back to top
View user's profile Send private message
py-ro
Veteran
Veteran


Joined: 24 Sep 2002
Posts: 1734
Location: Velbert

PostPosted: Fri Mar 01, 2013 4:34 pm    Post subject: Reply with quote

You could just set FETCHCOMMAND and PORTAGE_RSYNC_EXTRA_OPTS.

More in man make.conf.

Bye
Py
Back to top
View user's profile Send private message
ComputerNerd
n00b
n00b


Joined: 27 Feb 2013
Posts: 25

PostPosted: Fri Mar 01, 2013 4:43 pm    Post subject: Reply with quote

Thank you it works perfectly now.
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21490

PostPosted: Fri Mar 01, 2013 10:14 pm    Post subject: Reply with quote

wget should automatically fall back to an IPv4 A record if no IPv6 AAAA record is available. However, some braindead DNS resolvers become confused and refuse to provide proper service if you submit a query for an IPv6 record.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum