Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Servers & Networking
FedoraForum Search

Forgot Password? Join Us!

Servers & Networking Discuss any Fedora server problems and Networking issues such as dhcp, IP numbers, wlan, modems, etc.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 15th September 2006, 08:46 AM
knot2afrayed Offline
Registered User
 
Join Date: Jun 2006
Posts: 22
trouble finding some websites in FC 5

I am having problems reaching some websites on Fedora 5 with Firefox web browser.

The same webpages can be retrieved when I use Windows XP on the same local network.

For some reason, I cannot seem to bring up several websites.. for example: http://www.google.com, http://www.yahoo.com, http://www.2bangkok.com. But many websites are not a problem: the fedora release notes website, http://kqed.org, http://www.tot.co.th, and others too.

What is particularly annoying is the fact that I cannot get google or yahoo including when I search using the toolbar in firefox.

My Internet service does not provide me with a true IP address (192.168.1.1)and I am also routed through a squid proxy server- I would assume these are contributing to the problem. (?)

I am a newbie when it comes to Linux and computer networking, and was wondering if it might be possible to tinker with the network configuration in some way to get better results. Or would something like this be a problem I'd have to address with my Internet service provider. Any feedback is greatly appreciated,

k2a

Last edited by knot2afrayed; 15th September 2006 at 08:50 AM.
Reply With Quote
  #2  
Old 15th September 2006, 09:59 AM
jhetrick62 Offline
Registered User
 
Join Date: Feb 2005
Location: Buffalo, Ny
Posts: 875
Sounds like your resolv.conf or hosts file may not be right. Post the output of each.

cat /etc/hosts
cat /etc/resolv.conf

Jeff
__________________
Registered Linux User #411071

If at first you don't suceed, read the man page again!
Reply With Quote
  #3  
Old 15th September 2006, 12:03 PM
knot2afrayed Offline
Registered User
 
Join Date: Jun 2006
Posts: 22
Quote:
Sounds like your resolv.conf or hosts file may not be right. Post the output of each.

cat /etc/hosts
cat /etc/resolv.conf

Jeff
cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost

cat /etc/resolv.conf
; generated by /sbin/dhclient-script
nameserver 192.168.1.1
search localdomain

I tried pinging google, found the IP and can reach the site using the IP as opposed to using domain name.
Thanks for the reply Jeff,
k2a

Last edited by knot2afrayed; 15th September 2006 at 12:06 PM.
Reply With Quote
  #4  
Old 15th September 2006, 01:07 PM
red_dungeon's Avatar
red_dungeon Offline
Registered User
 
Join Date: Mar 2006
Location: Switzerland
Posts: 179
errrm...

what's on 192.168.1.1 ?

This is configured as DNS (Namerserver), and there you have the problem.
__________________
LINUX - because booting is for adding hardware! :D
Reply With Quote
  #5  
Old 15th September 2006, 03:32 PM
knot2afrayed Offline
Registered User
 
Join Date: Jun 2006
Posts: 22
I have adual port dsl modem (labeled as a "broadband router") which I believe is the 192.168.1.1. On Windows the DNS is configured the same, and I do not have the same problem. But perhaps this device does not work so well with a Linux system? Initially, I went and bought a ethernet card for my Fedora system, as no drivers would support the USB option.
The device has one USB port and one Ethernet.

Is there a way I could try using a different DNS server, if so, what might be a good way to find one?
Reply With Quote
  #6  
Old 15th September 2006, 03:42 PM
red_dungeon's Avatar
red_dungeon Offline
Registered User
 
Join Date: Mar 2006
Location: Switzerland
Posts: 179
google :-)

btw: you should get dns server (ip's) from your isp.

If you have them:
You only have to put them into /etc/resolv.conf

as an example for 3 dns server...
Code:
nameserver 123.23.34.54
nameserver 123.23.56.23
nameserver 125.12.52.12
__________________
LINUX - because booting is for adding hardware! :D
Reply With Quote
  #7  
Old 15th September 2006, 03:45 PM
knot2afrayed Offline
Registered User
 
Join Date: Jun 2006
Posts: 22
I don't if this means anything, but if I login to 192.168.1.1 using a web browser, I can access settings for the DSL gateway (the dual port modem). DHCP Clients settings show two hosts. The host name for the Fedora system is "unknown", while another machine on a windows system has a host name listed.

Could this cause problems for the DNS server?
Reply With Quote
  #8  
Old 15th September 2006, 03:47 PM
knot2afrayed Offline
Registered User
 
Join Date: Jun 2006
Posts: 22
Quote:
google :-)

btw: you should get dns server (ip's) from your isp.

If you have them:
You only have to put them into /etc/resolv.conf
thanks for the tip
Reply With Quote
  #9  
Old 17th September 2006, 08:48 AM
knot2afrayed Offline
Registered User
 
Join Date: Jun 2006
Posts: 22
I've added some nameserver entries to etc/resolv.conf, and at first it seemed to work.

Only one problem, anytime I restart network service or restart the computer, the /etc/resolv.conf reverts back to the old one. I even tried changing the contents of resolv.conf.predhclient to reflect the added dns listed, it didn't work.

At the top of resolv.conf content it says :
Code:
; generated by /sbin/dhclient-script
When I looked at the content of this script I noticed the resolv.conf.predhclient file.
That is why I gave a shot at changing the contents of this file. But no effect.


If I don't restart, I can go to the websites that previously I could not go to before changing nameserver in resolv.conf. But I don't yet understand why my resolv.conf gets reverted back to the former one after a restart. What else needs to be done?
Any tips on this would be great,
thx,
k2a

Last edited by knot2afrayed; 17th September 2006 at 09:56 AM.
Reply With Quote
  #10  
Old 17th September 2006, 11:02 AM
red_dungeon's Avatar
red_dungeon Offline
Registered User
 
Join Date: Mar 2006
Location: Switzerland
Posts: 179
try to set
Code:
PEERDNS=no
in your /etc/sysconfig/network-scripts/ifcfg-eth0 file
__________________
LINUX - because booting is for adding hardware! :D
Reply With Quote
  #11  
Old 17th September 2006, 11:15 AM
luxguzl Offline
Registered User
 
Join Date: Sep 2006
Posts: 1
I've had the same problem once, and I used the following command to solve it:

Code:
chattr +i /etc/resolv.conf
This prevents the script from changing resolv.conf, and should fix your problem.
Hope this helps.
Reply With Quote
  #12  
Old 18th September 2006, 01:09 AM
knot2afrayed Offline
Registered User
 
Join Date: Jun 2006
Posts: 22
Quote:
Originally Posted by luxguzl
I've had the same problem once, and I used the following command to solve it:

Code:
chattr +i /etc/resolv.conf
This prevents the script from changing resolv.conf, and should fix your problem.
Hope this helps.

Adding immutable for resolv.conf seems to work (though I was puzzled that just before I added this, the behavior of the file reverting back to the old one after restart did not happen- strange)

I really appreciate all of the tips.
Performance is now significantly better, now things are getting fun.
Thank you,
k2a
Reply With Quote
Reply

Tags
finding, trouble, websites

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Trouble finding software repos' mikepunt Using Fedora 8 27th June 2008 01:42 AM
Trouble finding Files MacSter Using Fedora 13 29th March 2007 08:12 AM
Trouble Finding old Fedora system CrazednDazed Using Fedora 4 20th October 2006 12:22 AM
Trouble Finding Icons sec Using Fedora 1 26th August 2006 09:50 PM
trouble finding software nico76 Using Fedora 5 29th May 2006 12:03 AM


Current GMT-time: 03:48 (Wednesday, 19-06-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat