LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 12-04-2004, 04:43 PM   #1
aaronruss
Member
 
Registered: Mar 2004
Posts: 90

Rep: Reputation: 15
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.
 
Old 12-05-2004, 05:11 AM   #2
hob
Senior Member
 
Registered: Mar 2004
Location: Wales, UK
Distribution: Debian, Ubuntu
Posts: 1,075

Rep: Reputation: 45
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.
 
Old 12-05-2004, 04:04 PM   #3
aaronruss
Member
 
Registered: Mar 2004
Posts: 90

Original Poster
Rep: Reputation: 15
Unhappy

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
 
Old 12-05-2004, 04:18 PM   #4
hob
Senior Member
 
Registered: Mar 2004
Location: Wales, UK
Distribution: Debian, Ubuntu
Posts: 1,075

Rep: Reputation: 45
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.
 
Old 12-05-2004, 10:40 PM   #5
aaronruss
Member
 
Registered: Mar 2004
Posts: 90

Original Poster
Rep: Reputation: 15
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?

Last edited by aaronruss; 12-05-2004 at 11:17 PM.
 
Old 12-06-2004, 04:37 AM   #6
hob
Senior Member
 
Registered: Mar 2004
Location: Wales, UK
Distribution: Debian, Ubuntu
Posts: 1,075

Rep: Reputation: 45
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Surf by IP mhykgyver Linux - Networking 2 09-18-2005 08:46 AM
VPN Client installed on FC3, but still can't surf!!! fati_r Fedora 4 11-21-2004 01:39 PM
Can't Surf The Web!!! HeRCuLeSX Linux - General 4 07-23-2004 09:09 AM
can connect but not surf fuske Linux - Networking 7 06-03-2004 12:43 PM
Can't surf the internet jerryvb VectorLinux 5 12-06-2003 07:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 05:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration