LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   Can't surf on FC3 (https://www.linuxquestions.org/questions/fedora-35/cant-surf-on-fc3-262619/)

aaronruss 12-04-2004 04:43 PM

Can't surf on FC3
 
I was having some issues with FC3 so I formated and reinstalled. after that I can't surf.

I get a error message dhcppc0 can not be contacted. I think there is some kind of DNS error going on it tells me I can add it to the hosts file but that does not help.

The funny thing is I can't get google to come up with foxfire but I can ping www.google.com from xterm

I can also access www.google.com on my windows box.

Any ideals

It's setup with DHCP and its pulling a good Private IP address from my router.

hob 12-05-2004 05:11 AM

If you can get to ping www.google.com then both DNS and network connectivity are good.

Your Web browser may also need a proxy server to work, and that proxy server also has to be able to resolve www.google.com and connect to it.

You can do a simple "get this Web page" test with the wget command-line utility, to confirm that the problem is browser-related.

aaronruss 12-05-2004 04:04 PM

OK I booted up today and Foxfire will pull www.google.com up all looks well except I get an error message when logging in to gnome

Error:
==========================================

Could not look up Internet address dhcppc1 This will prevent gnome from operating correctly it may be possible to correct the problem by adding dhcppc1 to the file /etc/hosts

==========================================

I have had the error ever since Ive installed FC3 and I had tried adding dhcppc1 to the host and pointing it to my router it just made ever thing worse so I fixed it back.

any idea

hob 12-05-2004 04:18 PM

I think I understand.

The host that GNOME is looking up is the machine itself. This is done because of the network transparency features of X.

The DHCP server on your router is assigning your Linux system different hostnames at different times - dhcppc0, dhcppc1 etc. These hostnames aren't known to whatever DNS server your Linux box is using.

aaronruss 12-05-2004 10:40 PM

Could not look up Internet address dhcppc1
 
So what do I need to do to fix this?

add:

dhcppc0 127.0.0.1
dhcppc1 127.0.0.1

To my /etc/hosts file?

Well I tried it and it does get rid of the error message when logging in to gnome but my box boots slower now and the text changes to a lager size half way through the boot process.

You were right about it pulling two Ip address from my router. I checked my DHCP table in my router and it had two IP's for my linux box with different MAC address and no name. My windows box had a name listed.

Could this be a bug in gnome?
While my workaround gets rid of the error message. I did not have this issue in FC1 on the same box and same network.

And have not seen in on other boxes running FC2

Is there a better way of fixing this seeing it slows down my system boot process?

hob 12-06-2004 04:37 AM

Slow startup is associated with DNS name resolution problems.

"I checked my DHCP table in my router and it had two IP's for my linux box with different MAC address and no name. My windows box had a name listed."

This sounds pretty worrying. Do you have two network cards on your Linux box ?

If possible your router should always give the same name and IP address to the unique MAC address of the network card. This is called "reservation" - your router may or may not support it.

I haven't got a Linux box with DHCP around at the moment, but I don't think that it automatically edits /etc/hosts - the presumption is that DNS will be in sync with DHCP. Does the router have any DNS functions that you can use ?

If you have to edit /etc/hosts you should list the IP address once, like this:

127.0.0.1 mylinuxbox.lan mylinuxbox mylinuxboxaswell.lan mylinuxboxaswell localhost.localdomain localhost

Putting in all of the hostnames that your router might assign is very hacky, though. I would look at the router configuration and try to sort out why you've got more than one MAC address on DHCP. It's probably worth adding DNS to your network as well - if nothing else DNS servers cache and this helps with Internet access.


All times are GMT -5. The time now is 09:22 AM.