LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 02-03-2007, 01:48 AM   #1
r_babaei
LQ Newbie
 
Registered: Feb 2007
Distribution: Fedora Core 6
Posts: 10

Rep: Reputation: 0
DNS problem with Fedora Core 6


Hi! could you please give me a hand?

I am very new in Linux -but already in love with it! - and I just installed Fedora Core 6 (as my first Linux installation :-> ) a few days ago. Now I have a problem with DNS resolution:

I am running Fedora on a Toshiba laptop dual booting with XP, have an ADSL connection using a D-Link router and definitely don't have any problem with browsing the pages on the internet in XP but in fedora I can't browse any URL. Only when I use the website's IP address I am able to view it and as I click on the links on the pages it gets a very long time (sometimes resulting in a timeout error) to load it.
Here is my ifconfig results:

eth0 Link encap:Ethernet HWaddr 00:C0:9F:BF:AD:27
inet addr:192.168.1.2 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::2c0:9fff:febf:ad27/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1771 errors:0 dropped:0 overruns:0 frame:0
TX packets:1880 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:573727 (560.2 KiB) TX bytes:207638 (202.7 KiB)
Interrupt:6 Base address:0x6000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:2623 errors:0 dropped:0 overruns:0 frame:0
TX packets:2623 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3866052 (3.6 MiB) TX bytes:3866052 (3.6 MiB)

and this is my route result:

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
169.254.0.0 * 255.255.0.0 U 0 0 0 eth0
default mygateway.ar7 0.0.0.0 UG 0 0 0 eth0

the address mygateway.ar7 is the addrss of the DNS server provided by the ISP. It has been recognized automaticaly.
Thanks for your time.
 
Old 02-03-2007, 02:26 AM   #2
Micro420
Senior Member
 
Registered: Aug 2003
Location: Berkeley, CA
Distribution: Mac OS X Leopard 10.6.2, Windows 2003 Server/Vista/7/XP/2000/NT/98, Ubuntux64, CentOS4.8/5.4
Posts: 2,986

Rep: Reputation: 45
Look in /etc/resolv.conf

Does it look good? I suggest, for the time being, setting your router as the DNS in /etc/resolve.conf. Comment out the current ones with a #

Code:
nameserver 192.168.1.1
Now restart your networking service and try
Code:
ping google.com
Does that work?
 
Old 02-03-2007, 08:52 PM   #3
r_babaei
LQ Newbie
 
Registered: Feb 2007
Distribution: Fedora Core 6
Posts: 10

Original Poster
Rep: Reputation: 0
The resolv.conf looks already like this:

; generated by /sbin/dhclient-script
nameserver 192.168.1.1
search localdomain

so I didn't use the code you provided and surprisingly able to ping google.com:

PING google.com (64.233.187.99) 56(84) bytes of data.
64 bytes from google.com (64.233.187.99): icmp_seq=1 ttl=240 time=241 ms
64 bytes from google.com (64.233.187.99): icmp_seq=2 ttl=240 time=240 ms
64 bytes from google.com (64.233.187.99): icmp_seq=3 ttl=240 time=240 ms
64 bytes from google.com (64.233.187.99): icmp_seq=4 ttl=240 time=240 ms
64 bytes from google.com (64.233.187.99): icmp_seq=5 ttl=240 time=250 ms
64 bytes from google.com (64.233.187.99): icmp_seq=6 ttl=240 time=240 ms

--- google.com ping statistics ---
6 packets transmitted, 6 received, 0% packet loss, time 4999ms
rtt min/avg/max/mdev = 240.073/242.295/250.311/3.631 ms

But again can not browse the page in Mozilla Firefox! Here is the error message I see everytime I try to load www.google.com:

The connection has timed out
The server at www.google.ae is taking too long to respond.

* The site could be temporarily unavailable or too busy. Try again in a few
moments.

* If you are unable to load any pages, check your computer's network
connection.

* If your computer or network is protected by a firewall or proxy, make sure
that Firefox is permitted to access the Web.

Thanks again.
 
Old 02-04-2007, 03:22 AM   #4
Micro420
Senior Member
 
Registered: Aug 2003
Location: Berkeley, CA
Distribution: Mac OS X Leopard 10.6.2, Windows 2003 Server/Vista/7/XP/2000/NT/98, Ubuntux64, CentOS4.8/5.4
Posts: 2,986

Rep: Reputation: 45
There's got to be some kind of host-based firewall that is preventing Firefox from accessing the web. Try using the Konqueror or Nautilus browser. Same problem? This sounds sort of like this thread:

http://www.linuxquestions.org/questi...d.php?t=525149
 
Old 02-04-2007, 06:01 AM   #5
dephilile
LQ Newbie
 
Registered: Feb 2007
Posts: 1

Rep: Reputation: 0
It sounds like the same problem I am having. I can ping computers on my network and google but when I try and open a site in firefox it says it canít find it. Iím running fedora core 6 as a virtual machine using vmware. The internet is working fine on the host PC.
 
Old 02-04-2007, 09:36 AM   #6
r_babaei
LQ Newbie
 
Registered: Feb 2007
Distribution: Fedora Core 6
Posts: 10

Original Poster
Rep: Reputation: 0
Hi again! I read the other thread you mentioned carefully and have the results here. But couldn't use Konqueror or Nautilus 'cause I'm running GNOME.

Here is the tracepath result for www.google.ae:

1: 192.168.1.2 (192.168.1.2) 0.262ms pmtu 1500
1: mygateway.ar7 (192.168.1.1) 1.193ms
2: 195.229.244.25 (195.229.244.25) asymm 3 40.471ms
3: 195.229.245.113 (195.229.245.113) asymm 4 40.402ms
4: 194.170.0.138 (194.170.0.138) asymm 5 40.721ms
5: 195.229.0.89 (195.229.0.89) asymm 6 40.872ms
6: 195.229.0.238 (195.229.0.238) 190.546ms
7: 195.229.0.238 (195.229.0.238) asymm 6 189.162ms
8: 209.85.248.80 (209.85.248.80) 370.180ms
9: 209.85.248.87 (209.85.248.87) asymm 8 397.981ms
10: 209.85.248.87 (209.85.248.87) asymm 8 368.850ms
11: 72.14.233.81 (72.14.233.81) asymm 10 395.687ms
12: 72.14.233.81 (72.14.233.81) asymm 10 401.151ms
13: 216.239.43.30 (216.239.43.30) asymm 10 405.812ms
14: www.google.ae (64.233.183.104) asymm 11 187.319ms reached
Resume: pmtu 1500 hops 14 back 11
And this is the traceroute for the same address:

traceroute to www.google.ae (1.0.0.0), 30 hops max, 40 byte packets
1 mygateway.ar7 (192.168.1.1) 0.591 ms 0.507 ms 0.540 ms
Unable to look up 195.229.244.25: Temporary failure in name resolution
2 195.229.244.25 8.924 ms 9.805 ms 10.736 ms
Unable to look up 195.229.245.113: Temporary failure in name resolution
3 195.229.245.113(N!) 8.592 ms (N!) 10.402 ms (N!) 9.645 m

Ping -c 100 has no losses. And w3m was not recognized as a valid command on my shell (command not found).
 
Old 02-04-2007, 09:52 AM   #7
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
Well DNS looks to have been exhonerated really... install wireshark, or just use tcpdump to see what the actual network traffic is doing here. what if you try to go to just http://64.233.183.104 ? try going to that, and also run "tcpdump -vn host 64.233.183.104" just before that, and show us the console output. if there's none at all, try just "tcpdump -vn" and go from there, could be a bit noisy though...
 
Old 02-04-2007, 04:05 PM   #8
r_babaei
LQ Newbie
 
Registered: Feb 2007
Distribution: Fedora Core 6
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Micro420
There's got to be some kind of host-based firewall that is preventing Firefox from accessing the web. Try using the Konqueror or Nautilus browser.
I tried to install other browsers but it seems the package manager doesn't work and after some time of trying to retrieve software information comes up with the follwoing error:

Unable to retrieve software information
Details: "Cannot find a valid baseurl for repo: core"

So I couldn't try it on other browser
 
Old 02-04-2007, 04:12 PM   #9
r_babaei
LQ Newbie
 
Registered: Feb 2007
Distribution: Fedora Core 6
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by acid_kewpie
what if you try to go to just http://64.233.183.104 ? try going to that, and also run "tcpdump -vn host 64.233.183.104" just before that, and show us the console output. if there's none at all, try just "tcpdump -vn" and go from there, could be a bit noisy though...
I tried it before and have absolutely no problem browsing using the IP address. The following is the result of tcpdump -vn command while browsing http://64.233.183.104/index.html (my ISP doesn't allow to use just IP) :

23:14:00.831407 IP (tos 0x0, ttl 64, id 12512, offset 0, flags [DF], proto: TCP (6), length: 52) 192.168.1.2.35931 > 64.233.183.104.http: ., cksum 0xa094 (correct), ack 1 win 46 <nop,nop,timestamp 73374 3383051>
23:14:00.839334 IP (tos 0x0, ttl 64, id 12513, offset 0, flags [DF], proto: TCP (6), length: 481) 192.168.1.2.35931 > 64.233.183.104.http: P 1:430(429) ack 1 win 46 <nop,nop,timestamp 73376 3383051>
23:14:00.859201 IP (tos 0x0, ttl 59, id 62100, offset 0, flags [none], proto: TCP (6), length: 52) 64.233.183.104.http > 192.168.1.2.35931: ., cksum 0x9f13 (correct), ack 430 win 65535 <nop,nop,timestamp 3383051 73376>
23:14:01.041362 IP (tos 0x0, ttl 59, id 924, offset 0, flags [none], proto: TCP (6), length: 1400) 64.233.183.104.http > 192.168.1.2.35931: . 1:1349(1348) ack 430 win 65535 <nop,nop,timestamp 3383051 73376>
23:14:01.041433 IP (tos 0x0, ttl 64, id 12514, offset 0, flags [DF], proto: TCP (6), length: 52) 192.168.1.2.35931 > 64.233.183.104.http: ., cksum 0x9958 (correct), ack 1349 win 69 <nop,nop,timestamp 73426 3383051>
23:14:01.061826 IP (tos 0x0, ttl 59, id 925, offset 0, flags [none], proto: TCP (6), length: 512) 64.233.183.104.http > 192.168.1.2.35931: P 1349:1809(460) ack 430 win 65535 <nop,nop,timestamp 3383051 73376>
23:14:01.061891 IP (tos 0x0, ttl 64, id 12515, offset 0, flags [DF], proto: TCP (6), length: 52) 192.168.1.2.35931 > 64.233.183.104.http: ., cksum 0x9772 (correct), ack 1809 win 90 <nop,nop,timestamp 73431 3383051>

9 packets captured
18 packets received by filter
0 packets dropped by kernel
 
Old 02-04-2007, 04:40 PM   #10
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
hmm, well that yum error may well be related... it uses wget or curl to download a list of files from the net...

can you do that again using the domain name? that was the objective... to see if when sent to that destination that you'll actuallysee anythign coming back from them. obviously it requires that that specific ip is used for google...
 
Old 02-04-2007, 10:25 PM   #11
r_babaei
LQ Newbie
 
Registered: Feb 2007
Distribution: Fedora Core 6
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by acid_kewpie
can you do that again using the domain name? that was the objective... to see if when sent to that destination that you'll actuallysee anythign coming back from them. obviously it requires that that specific ip is used for google...
Here it is: tcpdump -vn www.google.com and then tried to load www.google.com (timed out again):

tcpdump: listening on eth0, link-type EN10MB (Ethernet), capture size 96 bytes
06:16:46.279077 IP (tos 0x0, ttl 64, id 64647, offset 0, flags [DF], proto: TCP (6), length: 60) 192.168.1.2.36532 > 1.0.0.0.http: S, cksum 0x92cc (correct), 1231905763:1231905763(0) win 5840 <mss 1460,sackOK,timestamp 4294942564 0,nop,wscale 7>
06:16:49.278097 IP (tos 0x0, ttl 64, id 64648, offset 0, flags [DF], proto: TCP (6), length: 60) 192.168.1.2.36532 > 1.0.0.0.http: S, cksum 0x8fde (correct), 1231905763:1231905763(0) win 5840 <mss 1460,sackOK,timestamp 4294943314 0,nop,wscale 7>
06:16:55.278470 IP (tos 0x0, ttl 64, id 64649, offset 0, flags [DF], proto: TCP (6), length: 60) 192.168.1.2.36532 > 1.0.0.0.http: S, cksum 0x8a02 (correct), 1231905763:1231905763(0) win 5840 <mss 1460,sackOK,timestamp 4294944814 0,nop,wscale 7>
06:16:55.530483 IP (tos 0x0, ttl 64, id 36541, offset 0, flags [DF], proto: TCP (6), length: 60) 192.168.1.2.36531 > 1.0.0.0.http: S, cksum 0x2fcb (correct), 1143391011:1143391011(0) win 5840 <mss 1460,sackOK,timestamp 4294944877 0,nop,wscale 7>
06:17:07.279214 IP (tos 0x0, ttl 64, id 64650, offset 0, flags [DF], proto: TCP (6), length: 60) 192.168.1.2.36532 > 1.0.0.0.http: S, cksum 0x7e4a (correct), 1231905763:1231905763(0) win 5840 <mss 1460,sackOK,timestamp 4294947814 0,nop,wscale 7>
06:17:31.280720 IP (tos 0x0, ttl 64, id 64651, offset 0, flags [DF], proto: TCP (6), length: 60) 192.168.1.2.36532 > 1.0.0.0.http: S, cksum 0x66da (correct), 1231905763:1231905763(0) win 5840 <mss 1460,sackOK,timestamp 4294953814 0,nop,wscale 7>

6 packets captured
16 packets received by filter
0 packets dropped by kernel
 
Old 02-05-2007, 02:23 AM   #12
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
right, so firefox is trying to reach 1.0.0.0 ... wtf?
 
Old 02-05-2007, 04:11 AM   #13
r_babaei
LQ Newbie
 
Registered: Feb 2007
Distribution: Fedora Core 6
Posts: 10

Original Poster
Rep: Reputation: 0
Guys please help me! I'm just sick of switching to Windows several times a day just for checking my emails!!!!!!
 
Old 02-05-2007, 08:18 AM   #14
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
does that ip address, 1.0.0.0 look at all familiar to you? ever typed it in to your proxy configs? i googled from "firefox 1.0.0.0 ip" and got similar sounding problems on unbuntu forums, but didn't see a solution.
 
Old 02-05-2007, 01:02 PM   #15
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
i really really hope you've been googling for this yourself...? i just found this... https://launchpad.net/ubuntu/+bug/81057 which looks relevant.. have you found that link yourself yet?
 
  


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
Fedora Core 3 DNS startup wgaivin Linux - Networking 4 04-12-2005 10:55 AM
DNS server on Fedora Core 3 mediocrity Linux - Networking 16 04-11-2005 10:56 AM
DNS in Fedora core 2 caocon Linux - Networking 11 11-12-2004 01:27 AM
Fedora Core 2 - Problem with Cable connection (DNS Resolve) T-u-N-i-X Linux - Networking 2 06-18-2004 02:11 PM
Dns is not working in Fedora Core 1 Mahaul Fedora 2 05-14-2004 04:41 PM


All times are GMT -5. The time now is 10:59 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration