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

15th September 2006, 08:46 AM
|
|
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.
|

15th September 2006, 09:59 AM
|
|
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!
|

15th September 2006, 12:03 PM
|
|
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.
|

15th September 2006, 01:07 PM
|
 |
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
|

15th September 2006, 03:32 PM
|
|
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?
|

15th September 2006, 03:42 PM
|
 |
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
|

15th September 2006, 03:45 PM
|
|
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?
|

15th September 2006, 03:47 PM
|
|
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
|

17th September 2006, 08:48 AM
|
|
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.
|

17th September 2006, 11:02 AM
|
 |
Registered User
|
|
Join Date: Mar 2006
Location: Switzerland
Posts: 179

|
|
try to set
in your /etc/sysconfig/network-scripts/ifcfg-eth0 file
__________________
LINUX - because booting is for adding hardware! :D
|

17th September 2006, 11:15 AM
|
|
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.
|

18th September 2006, 01:09 AM
|
|
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
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Hybrid Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Current GMT-time: 03:48 (Wednesday, 19-06-2013)
|
|
 |
 |
 |
 |
|
|