LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Strange! Why can't acces fedoraproject.org and other problems? LiveCDs work fine~ (https://www.linuxquestions.org/questions/linux-networking-3/strange-why-cant-acces-fedoraproject-org-and-other-problems-livecds-work-fine%7E-777186/)

Zeniff 12-21-2009 04:15 AM

Strange! Why can't acces fedoraproject.org and other problems? LiveCDs work fine~
 
Hi~ I've been having very strange problems on Firefox in Ubuntu 9.10 for a few weeks now.

I'll start with the strangest problem: I cannot access anything from http://fedoraproject.org/ and haven't been able to, except for a few minutes....once..... and it never came back. This was when these problems had already been happening and after several tries to reach Fedora's site.

Other problems are just as strange but not so bad or consistent: Pages sometimes seem to randomly not be found or they are found on the wrong server or something. After several minutes, though, they usually go away after refreshing the page.

One of the strange examples from the "not found" or error pages I got was when I tried reading Wikipedia.org and it told me it "could not be found on this server," but....the server and URL it listed were from Google.com! The address bar showed that it was trying to find the page on Google! No, I didn't copy and paste or type the address, I was in an already-working Wikipedia page that stopped working and thought it was on Google's servers! Isn't that weird? (I might have screenshots somewhere...)

Anyway, any ideas? I have tried creating new, empty profiles on Firefox, but they still cannot access Fedora's sites. LiveCDs work fine, though. Also, I copied and used a profile from my Laptop to here and it also cannot access it.

I even tried System > Administration > Network tools and tried Fedora's site in the Ping tab and it usually works just fine (sometimes it gets nothing, though).

Also, I'm not using wireless or dial-up.

By the way, I've only been using Linux a couple of months now, so sorry if I don't know stuff...

Thank you very much~!!! ^_^

repo 12-21-2009 04:20 AM

Which dns servers are you using ?
post the output from
Code:

cat /etc/resolv.conf

Zeniff 12-21-2009 04:31 AM

O_O Wow! That was quick! Until now, the fastest reply I ever got for my posts was about half a week...Thanks!

Here's what your command showed me:
Code:

cat /etc/resolv.conf
# Generated by NetworkManager
domain domain.actdsltmp
search domain.actdsltmp
nameserver 192.168.0.1
nameserver 205.171.3.25


repo 12-21-2009 04:34 AM

try to remove
Quote:

domain domain.actdsltmp
search domain.actdsltmp
and comment out
Quote:

nameserver 192.168.0.1

Zeniff 12-21-2009 05:15 AM

Wow~ I'm surprised and confused...

I did like you said and removed and commented out those lines.

I opened a new tab and fedoraproject.org loaded right away! O_O

But...then I tried to see if it was really that, or just similar to the one other time it worked for me, so I closed Firefox and made Network Manager turn off my Internet... Firefox didn't close right or something, so I forced it. I opened again in a different Firefox profile and it worked (maybe I did that before turning off Internet..)

I tried the original profile and it didn't work anymore...

I found out that it puts back the stuff in the resolv.conf file everytime I connect.

But, now that I know that... it doesn't seem to ever get fedoraproject.org back like the first time I tried it... I've tried several times now, and even while those lines are gone and commented out, it's not working... :( However, it seems to work in the other profile...confusing...

Any ideas why it worked the first time but not again in one profile, but everytime in another? And, would I have to redo this every time I connect online?

Thanks so much so far! ^^

repo 12-21-2009 05:20 AM

Quote:

Any ideas why it worked the first time but not again in one profile, but everytime in another? And, would I have to redo this every time I connect online?
You need to make the changes in the configuration from networkmanager.
then restart the connection in networkmanager

Zeniff 12-21-2009 05:26 AM

Okay, I'll try that.

Also, before your reply just now, I got more confused because:

Now fedoraproject.org works again (at least since I last posted) since I refreshed it after it timed out a few minutes ago.

I'm confused why it works now but not before.... does it need some time to work? Or random? The first time I changed resolv.conf and went to the site right away and it worked...hmmm...

I guess I'm fine if it just needs some time for the change to work, but why are those lines in my resolv.conf in the first place? I've never changed Firefox and only installed Ubuntu here last month... Could it be that something happened when Ubuntu let me choose to migrate my Windows XP and browser settings when it installed?

repo 12-21-2009 05:30 AM

resolv.conf is needed to do the DNS lookup (name to IP)
You probably have set a domainname when you installed ubuntu ( domain.actdsltmp )
Did you made the changes in networkmanager?

Zeniff 12-21-2009 05:52 AM

Sorry, I can't seem to find any settings that show any domains or those IP addresses :( I tried to find them in nm-connection-editor (which I also got to from nm-applet) and in gconf-editor. I know I must be looking in the wrong place, but can't find anything else that seems related to Network Manager.

Hmm...I never knowingly chose a domain name. As far as I know, it only gave me the option of a machine name when I installed, which I gave a different name. I feel pretty sure about it, since I installed Fedora in multi-boot with it and it asked for both a domain name and machine name which confused me at the time (so I left it at default localdomain I think). Oh, I had the problem before installing Fedora, though, and Fedora seems fine. Should I try changing Ubuntu's domain name too?

Oh, I just remembered, I saw the hostname and dnsdomainname commands once, so I just now tried
Code:

dnsdomainname -d
But, it returns nothing.

repo 12-21-2009 05:58 AM

try

edit /etc/dhcp3/dhclient.conf
put a # before the line containing
Code:

supersede domain-name
remove the # before the line
Code:

#prepend domain-name-servers
make it look like
Code:

prepend domain-name-servers 205.171.3.25

If you use dhcp, it is possible the info is provided by the router

Zeniff 12-21-2009 07:47 AM

Okay, I installed Opera browser and checked cat /etc/resolv.conf to make sure it said what it originally did when things weren't working... but it seemed to get to fedoraproject.org just fine...I then rebooted and they are both having trouble. Good, that's what I was hoping for, right? :P But, after posting this reply several minutes after they both had been trying to reach the site, I expected Opera to have given up like Firefox, but instead it seems to have actually got part of the site and is still slowly trying for the rest...O_O Is that something that is useful info to figure out this problem?

Also, what you just said about DHCP, I saw that mentioned in Network Manager's nm-connection-editor, I think... I guess that's what it was? Sorry I was confused before. I guess I didn't see the resolv.conf stuff there because it says mine is set to Automatic DHCP in the Method for the IPv4 Settings tab. I also see empty, disabled "DNS servers" and "Search domains" which I guess are filled in automatically and put into resolv.conf?

Anyway, I guess that means that's where I should do your original suggestion of changes, but since it's automatic, I don't really know what I should change to what? O-O?? Or should just go ahead and do your last suggestion and try editing /etc/dhcp3/dhclient.conf ?

Zeniff 12-21-2009 08:55 AM

Gee, this is weird... after my last reply just now, I had left Opera on after it finally got to Fedora. Now, both Opera and Firefox seem to be able to load any fedoraproject.org page like normal! Did Opera's eventual success kickstart both of them to start working?? O_o I guess I should really learn networking stuff, because that's strange to me.

(It's working even though resolv.conf currently contains the lines originally suggested to take out, since I left them in to try Opera.)

...after several minutes of not loading any fedoraproject.org pages, though, it stops being able to again...

repo 12-21-2009 10:52 AM

Did you made the changes in
/etc/dhcp3/dhclient.conf ?

Also look in the preferences from the browser, and see if you use any proxy.
Set it to
Quote:

no proxy

Zeniff 12-28-2009 09:00 AM

Okay, I have just now edited /etc/dhcp3/dhclient.conf

There was already a # before supersede domain-name, so I left it as it was.

I removed the # and changed the number at the end to make
Code:

prepend domain-name-servers 205.171.3.25;
I assume I should leave the semi-colon there too?

Also, my Firefox was set to "Use system proxy settings," so I now changed it to "no proxy" like you said.
I wondered what my system proxy settings were, so I went to System > Preferences > Network Proxy (gnome-network-properties) and its Proxy Configuration tab has the "Direct internet connection" radio option selected.

Okay, now I'll save the changes and hope that it will all work. I'll have to test later when I come back home, though, but I'll post back here when I do.

Thanks again!
(Also, sorry about the delay in replying. I often don't have useful access to my PC for days at a time.)


All times are GMT -5. The time now is 12:51 AM.