View previous topic :: View next topic |
Author |
Message |
ComputerNerd n00b
Joined: 27 Feb 2013 Posts: 25
|
Posted: Fri Mar 01, 2013 1:54 am Post subject: Can ping but not browse/wget |
|
|
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 |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21635
|
Posted: Fri Mar 01, 2013 3:16 am Post subject: |
|
|
What is the output of ls -l /etc/resolv.conf ; cat -n /etc/resolv.conf? |
|
Back to top |
|
|
ComputerNerd n00b
Joined: 27 Feb 2013 Posts: 25
|
Posted: Fri Mar 01, 2013 3:21 am Post subject: |
|
|
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 |
|
|
lexflex Guru
Joined: 05 Mar 2006 Posts: 363 Location: the Netherlands
|
|
Back to top |
|
|
ComputerNerd n00b
Joined: 27 Feb 2013 Posts: 25
|
Posted: Fri Mar 01, 2013 5:58 am Post subject: |
|
|
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 |
|
|
ComputerNerd n00b
Joined: 27 Feb 2013 Posts: 25
|
Posted: Fri Mar 01, 2013 3:35 pm Post subject: |
|
|
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 |
|
|
py-ro Veteran
Joined: 24 Sep 2002 Posts: 1734 Location: Velbert
|
Posted: Fri Mar 01, 2013 4:34 pm Post subject: |
|
|
You could just set FETCHCOMMAND and PORTAGE_RSYNC_EXTRA_OPTS.
More in man make.conf.
Bye
Py |
|
Back to top |
|
|
ComputerNerd n00b
Joined: 27 Feb 2013 Posts: 25
|
Posted: Fri Mar 01, 2013 4:43 pm Post subject: |
|
|
Thank you it works perfectly now. |
|
Back to top |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21635
|
Posted: Fri Mar 01, 2013 10:14 pm Post subject: |
|
|
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 |
|
|
|