View previous topic :: View next topic |
Author |
Message |
rahulthewall Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/3921494714948217d1c431.jpg)
Joined: 01 Nov 2007 Posts: 1264 Location: Zürich
|
Posted: Fri Nov 12, 2010 5:13 pm Post subject: Wired Network has DNS issues (openRC) |
|
|
OK, I do not know what is going on here. I plug in my ethernet cable and connect to the network using wicd. I can ping any host I want. But when I try to run traceroute or browse the web, I get the "Server not Found" message. If I go to the website using IP address, I can access it.
What more info should I provide? _________________ Who shall guard the guards? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
DONAHUE Watchman
![Watchman Watchman](/images/ranks/rank-G-2-watchman.gif)
![](images/avatars/2468228754a8b1493ea37b.gif)
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Fri Nov 12, 2010 6:14 pm Post subject: |
|
|
using dhcp or fixed ip?
contents of /etc/conf.d?
contents of /etc/resolv.conf?
anything in wicd using ( "something" ) formatting? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
rahulthewall Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/3921494714948217d1c431.jpg)
Joined: 01 Nov 2007 Posts: 1264 Location: Zürich
|
Posted: Fri Nov 12, 2010 10:21 pm Post subject: |
|
|
DONAHUE wrote: | using dhcp or fixed ip?
|
dhcp (dhcpcd)
DONAHUE wrote: |
contents of /etc/conf.d?
|
/etc/conf.d/net is empty (thus defaults to dhcpcd)
DONAHUE wrote: |
contents of /etc/resolv.conf?
|
nameserver 192.168.1.1 (router IP)
DONAHUE wrote: |
anything in wicd using ( "something" ) formatting? |
I have now removed wicd and tried with /etc/init.d/net.eth0 start. This basically starts dhcpcd on eth0 - I get an IP. As I said before, I can ping any host. However, while I try to browse the web, or run traceroute to any host, I get a host not found error.
Help would be appreciated. Might I add that it works in the (U/K)buntu live CD (and Windows) but fails in Gentoo and SysRescue Live CD (same problems in both - name resolution failure) _________________ Who shall guard the guards? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
DONAHUE Watchman
![Watchman Watchman](/images/ranks/rank-G-2-watchman.gif)
![](images/avatars/2468228754a8b1493ea37b.gif)
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Sat Nov 13, 2010 1:21 am Post subject: |
|
|
suggest in /etc/resolv.conf: Quote: | nameserver 8.8.8.8
nameserver 192.168.1.1 |
Code: | nslookup google.com | should see Quote: | nslookup google.com
Server: 8.8.8.8
Address: 8.8.8.8#53
Non-authoritative answer:
Name: google.com
Address: 72.14.209.99
Name: google.com
Address: 72.14.209.104
| If this works but after Code: | /etc/init.d/net.eth0 restart | , nslookup gives a different answer, evidence would suggest that you will have to write /etc/conf.d/net to specify dhcp: Quote: | config_eth0="dhcp"
dhcp_eth0="-t 1" # Timeout after 10 seconds
dhcp_eth0="nodns" # do not write/overwrite /etc/resolv.conf | guessing the default blank /etc/conf.d/net script may be presenting ( "something" ) format to openrc
edit to put Quote: | config_eth0="dhcp" | in openrc compatible format.
Last edited by DONAHUE on Sat Nov 13, 2010 2:13 pm; edited 1 time in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
rahulthewall Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/3921494714948217d1c431.jpg)
Joined: 01 Nov 2007 Posts: 1264 Location: Zürich
|
Posted: Sat Nov 13, 2010 9:00 am Post subject: |
|
|
DONAHUE wrote: | suggest in /etc/resolv.conf: Quote: | nameserver 8.8.8.8
nameserver 192.168.1.1 |
Code: | nslookup google.com | should see Quote: | nslookup google.com
Server: 8.8.8.8
Address: 8.8.8.8#53
Non-authoritative answer:
Name: google.com
Address: 72.14.209.99
Name: google.com
Address: 72.14.209.104
|
|
Yes, I see this ...
DONAHUE wrote: | If this works but after Code: | /etc/init.d/net.eth0 restart | , nslookup gives a different answer, evidence would suggest that you will have to write /etc/conf.d/net to specify dhcp: Quote: | config_eth0=( "dhcp" )
dhcp_eth0="-t 1" # Timeout after 10 seconds
dhcp_eth0="nodns" # do not write/overwrite /etc/resolv.conf | guessing the default blank /etc/conf.d/net script may be presenting ( "something" ) format to openrc |
After restarting, I get a different answer (namely 192.168.1.1) because resolv.conf is overwritten by dhcpcd with the nameserver now being 192.168.1.1. nslookup still works with 8.8.8.8 just being replaced by 192.168.1.1.
Also, with 8.8.8.8 as the primary nameserver, HTTP browsing works, but name lookup is so slow that it might as well not work.
I am confused here, what is going wrong? _________________ Who shall guard the guards? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
DONAHUE Watchman
![Watchman Watchman](/images/ranks/rank-G-2-watchman.gif)
![](images/avatars/2468228754a8b1493ea37b.gif)
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Sat Nov 13, 2010 1:51 pm Post subject: |
|
|
if you have changed /etc/conf.d/net to: Quote: | config_eth0="dhcp" #sorry, screwed this up first time, writing on a non-openrc machine
dhcp_eth0="-t 1" # Timeout after 10 seconds
dhcp_eth0="nodns" # do not write/overwrite /etc/resolv.conf | put Quote: | nameserver 192.168.1.1
nameserver 8.8.8.8 | in /etc/resolv.conf Code: | /etc/init.d/net.eth0 restart | and try browsing. If that works reasonably well, reboot and try browsing to see if openrc starts networking efficiently. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
rahulthewall Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/3921494714948217d1c431.jpg)
Joined: 01 Nov 2007 Posts: 1264 Location: Zürich
|
Posted: Sat Nov 13, 2010 5:26 pm Post subject: |
|
|
DONAHUE wrote: | if you have changed /etc/conf.d/net to: Quote: | config_eth0="dhcp" #sorry, screwed this up first time, writing on a non-openrc machine
dhcp_eth0="-t 1" # Timeout after 10 seconds
dhcp_eth0="nodns" # do not write/overwrite /etc/resolv.conf | put Quote: | nameserver 192.168.1.1
nameserver 8.8.8.8 | in /etc/resolv.conf Code: | /etc/init.d/net.eth0 restart | and try browsing. If that works reasonably well, reboot and try browsing to see if openrc starts networking efficiently. |
Does not work. ![Sad :(](images/smiles/icon_sad.gif) _________________ Who shall guard the guards? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
DONAHUE Watchman
![Watchman Watchman](/images/ranks/rank-G-2-watchman.gif)
![](images/avatars/2468228754a8b1493ea37b.gif)
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Sat Nov 13, 2010 6:49 pm Post subject: |
|
|
Put Code: | nameserver 156.154.70.1 | in /etc/resolv.conf Code: | /etc/init.d/net.eth0 restart | try nslookup and browsing
alternate: look up your ISP's name servers and substitute in the above and test
no firewalls or proxies? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
rahulthewall Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/3921494714948217d1c431.jpg)
Joined: 01 Nov 2007 Posts: 1264 Location: Zürich
|
Posted: Sun Nov 14, 2010 12:07 am Post subject: |
|
|
DONAHUE wrote: | Put Code: | nameserver 156.154.70.1 | in /etc/resolv.conf Code: | /etc/init.d/net.eth0 restart | try nslookup and browsing
alternate: look up your ISP's name servers and substitute in the above and test
no firewalls or proxies? |
Does not work, again! I just don't get it, XP reports the following and it works ...
Code: |
C:\Documents and Settings\Rahul Jain>ipconfig /all
Windows IP Configuration
Host Name . . . . . . . . . . . . : googly
Primary Dns Suffix . . . . . . . :
Node Type . . . . . . . . . . . . : Unknown
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No
Ethernet adapter Local Area Connection:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Broadcom 440x 10/100 Integrated Controller
Physical Address. . . . . . . . . : 00-15-C5-1B-5D-92
Dhcp Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
IP Address. . . . . . . . . . . . : 192.168.1.34
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.1.1
DHCP Server . . . . . . . . . . . : 192.168.1.1
DNS Servers . . . . . . . . . . . : 192.168.1.1
Lease Obtained. . . . . . . . . . : 14 November 2010 01:04:14
Lease Expires . . . . . . . . . . : 15 November 2010 01:04:14
|
This is what Gentoo shows, and it does not work!
Code: |
eth0 Link encap:Ethernet HWaddr 00:15:c5:1b:5d:92
inet addr:192.168.1.34 Bcast:255.255.255.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:278 errors:0 dropped:0 overruns:0 frame:0
TX packets:17 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:20684 (20.1 KiB) TX bytes:1613 (1.5 KiB)
Interrupt:17
|
_________________ Who shall guard the guards? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
DONAHUE Watchman
![Watchman Watchman](/images/ranks/rank-G-2-watchman.gif)
![](images/avatars/2468228754a8b1493ea37b.gif)
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Sun Nov 14, 2010 1:26 am Post subject: |
|
|
ping an ip is still working?
what is nslookup doing now? post result please
nameserver 8.8.8.8 is totally failing also now? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
rahulthewall Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/3921494714948217d1c431.jpg)
Joined: 01 Nov 2007 Posts: 1264 Location: Zürich
|
Posted: Sun Nov 14, 2010 11:40 am Post subject: |
|
|
It is an ipv6 issue. As soon as I disable ipv6 in firefox everything works perfectly. Now how do I go about disabling ipv6 for a particular network? Or to have it prefer ipv4? _________________ Who shall guard the guards? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
DONAHUE Watchman
![Watchman Watchman](/images/ranks/rank-G-2-watchman.gif)
![](images/avatars/2468228754a8b1493ea37b.gif)
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
rahulthewall Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/3921494714948217d1c431.jpg)
Joined: 01 Nov 2007 Posts: 1264 Location: Zürich
|
Posted: Sun Nov 14, 2010 4:47 pm Post subject: |
|
|
I can remove ipv6 support from firefox in about:config and make it work. The problem is that everything else - wget/ftp/etc. also fail which means I can not use anything on my gentoo box right now.
I tried commenting out ipv6 in /etc/modprobe.d/alias.conf (to disable ipv6 from loading). I can see that ipv6 module is not loaded. The system still does not work.What more do I need to do? _________________ Who shall guard the guards? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
DONAHUE Watchman
![Watchman Watchman](/images/ranks/rank-G-2-watchman.gif)
![](images/avatars/2468228754a8b1493ea37b.gif)
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Sun Nov 14, 2010 5:43 pm Post subject: |
|
|
if not needing ipv6,
USE="-ipv6" in /etc/make.conf followed by emerge -uND world, recompile kernel after removing ipv6 support
if needing ipv6, try redoing the ipv6 guide
Just for info I have ipv6 use flag and default ipv6 kernel choices in my gentoo-sources kernel-2.6.34-r10 and have no problem with dns.
might be of interest |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
rahulthewall Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/3921494714948217d1c431.jpg)
Joined: 01 Nov 2007 Posts: 1264 Location: Zürich
|
Posted: Tue Nov 16, 2010 12:35 pm Post subject: |
|
|
DONAHUE wrote: | if not needing ipv6,
USE="-ipv6" in /etc/make.conf followed by emerge -uND world, recompile kernel after removing ipv6 support
if needing ipv6, try redoing the ipv6 guide
Just for info I have ipv6 use flag and default ipv6 kernel choices in my gentoo-sources kernel-2.6.34-r10 and have no problem with dns.
might be of interest |
I removed ipv6 support and everything seems to work. However, I don't see it as a solution. Why should having support for ipv6 not make ipv4 work? _________________ Who shall guard the guards? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
DONAHUE Watchman
![Watchman Watchman](/images/ranks/rank-G-2-watchman.gif)
![](images/avatars/2468228754a8b1493ea37b.gif)
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Tue Nov 16, 2010 3:28 pm Post subject: |
|
|
I'm just guessing that somehow you got just enough ipv6 configured to make it a problem but not enough to make it work. With sysresccd having the same problem it can't be anything you did wrong; some kind of bad interaction between the gentoo defaults, your nic, and your router. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|