LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 09-30-2004, 11:35 PM   #1
darkfire55
LQ Newbie
 
Registered: Oct 2003
Posts: 12

Rep: Reputation: 0
ping gets dns but not web browser


Im a bit puzzled.
I managed to get onto this site by first going ping linuxquestions.org in a console and then typing in the ip address in mozilla.

ping linuxquestions.org
PING linuxquestions.org (64.179.4.149): 56 data bytes
64 bytes from 64.179.4.149: icmp_seq=0 ttl=50 time=60.6 ms
--- linuxquestions.org ping statistics ---
1 packets transmitted, 1 packets received, 0% packet loss
round-trip min/avg/max = 60.6/60.6/60.6 ms

However if I just type linuxquestions.org in my browser I get the site could not be found error after it takes forever resolving host.

Im quite sure this is a DNS problem but I dont know how to fix it.
Im running SimplyMepis2004 on a Dell I8200 laptop and using a Siemens Speedstream Pcmcia wireless card that talks to a D-Link 614+ router that talks to a Belkin Befsr41 router that talks to a motorola cable modem.

In the mepis system center, I can get my wireless card with an ip address using dhcp, but not with static (even using values assigned when using dhcp).

Heres my output of ifconfig and route

ifconfig
eth1 Link encap:Ethernet HWaddr 00:02D:32:4F:83
inet addr:192.168.0.104 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::202:ddff:fe32:4f83/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:5854 errors:0 dropped:0 overruns:0 frame:0
TX packets:4307 errors:32 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2497668 (2.3 MiB) TX bytes:850845 (830.9 KiB)
Interrupt:3 Base address:0x100
route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 * 255.255.255.0 U 0 0 0 eth1
default 192.168.0.1 0.0.0.0 UG 0 0 0 eth1

and this is what my etc/resolv.conf looks like
search chartertn.net
nameserver 192.168.0.1

Anybody have any suggestions?

Last edited by darkfire55; 09-30-2004 at 11:37 PM.
 
Old 09-30-2004, 11:46 PM   #2
Sutekh
Member
 
Registered: Apr 2002
Location: Melbourne, Australia
Distribution: Gentoo
Posts: 273

Rep: Reputation: 30
weird, if you can get the addy with ping kinda suprised that moz doesn't work.

in the console were you logged as as the same user (ie did you open the console and then su to root or some other user).

you can check what user is runnig moz by using

Code:
ps aux | grep moz
does links (or lynx) work?

Rich
 
Old 10-01-2004, 08:49 PM   #3
darkfire55
LQ Newbie
 
Registered: Oct 2003
Posts: 12

Original Poster
Rep: Reputation: 0
mozilla is running as a different user, but it makes no difference.
The same happens when visiting sites using lynx.
I have to ping a website first to get an ip address (doesnt always give it to me on the first try) and then use lynx ipadress and that works.

Any other suggestions?
 
Old 10-02-2004, 05:15 AM   #4
Sutekh
Member
 
Registered: Apr 2002
Location: Melbourne, Australia
Distribution: Gentoo
Posts: 273

Rep: Reputation: 30
that is weird to be sure, I assume that if you change your /etc/resolv.conf to have the address of an external webserver it all works ok?

maybe in the short term it would be worth listing an external address as the secondary so you can still play with the local one but have the backup there if it doesn;t work. Ther eare plenty of DNS tools you can use to specify your local server whilst testing.

Whick device is the DNS server, that is which one is 192.168.0.1 - is it the D-Link?
 
Old 10-02-2004, 09:24 AM   #5
darkfire55
LQ Newbie
 
Registered: Oct 2003
Posts: 12

Original Poster
Rep: Reputation: 0
The wirless card is assigned 192.168.0.4
The Dlink router it talks to is 192.168.0.1
The Belkin router that above goes thru is 192.168.1.1
The Cable modem thats connected to the Belkin is 192.168.100.1

The actual DNS servers for my isp are 24.159.48.6 and 24.159.48.7

Which one of these is supposed to go in my /etc/resolv.conf file?
Ive only tried the 24.Numbers but they didnt do any good.
 
Old 10-02-2004, 09:38 AM   #6
Sutekh
Member
 
Registered: Apr 2002
Location: Melbourne, Australia
Distribution: Gentoo
Posts: 273

Rep: Reputation: 30
hmm ok well if all the routing is working ok then you certainly should be able to use the isp DNS ip's.

Quote:
Ive only tried the 24.Numbers but they didnt do any good.
and the d-link
Quote:
and this is what my etc/resolv.conf looks like
search chartertn.net
nameserver 192.168.0.1
so if the d-link is resolving thee names for ping why wont it reolve for lynx i wonder

you may have to run a prtocol analyser to get to the bottom of this, trace the requests to see what the difference is.

are there any other pc's on the network and if so do they suffer from the same problems?

also are you running a local firewall on this linux box?

the other thing i forgot to ask before, where is eth0? is this used for something else or is it not defined? does it have an ip address?
 
Old 10-02-2004, 10:23 AM   #7
darkfire55
LQ Newbie
 
Registered: Oct 2003
Posts: 12

Original Poster
Rep: Reputation: 0
How would I run a trace?

My machine is the only one having problems, since Im the only one brave enough to use linux.
My laptop is a dual boot, so the internet on the windows side is fine.
The reason eth0 is not listed is because it is the regular 10/100 lan port which is not connected so I didnt bother pasting it.
And I do believe that mepis sets up its on firewall (guarddog or something like that).
 
Old 10-02-2004, 10:28 AM   #8
samael26
Member
 
Registered: Oct 2004
Location: France, Provence
Distribution: Debian sid, aptosid, Linux Mint, MacOS X
Posts: 847

Rep: Reputation: 30
Hello Darkfire

You're not alone in this trap ! Not the same hardware at all but I've got the same problem. So far no one has been able to help.
It's strange, that's other, luckier people think...
Perhaps we should form a club : Pingers united
Hope we'll find a solution, before the end of the world Cheers !!
 
Old 10-02-2004, 08:45 PM   #9
Sutekh
Member
 
Registered: Apr 2002
Location: Melbourne, Australia
Distribution: Gentoo
Posts: 273

Rep: Reputation: 30
ok well maybe i can help you both :-)

the reason i was asking after eth0 was that it is possible request are being sent to it and timing out, still doesn't really answer the question of why ping works but maybe worth looking into. is eth0 up? if so does it have an ip address?

The firewall question is also a potential cause for problems if not set properly.

oh and just so I am clear, you have tried changing /etc/resolv.conf to use the isp DNS addresses (the 24. ones) those address don;t look right when I do a dig however.

part of the dig responce was

ns1.chartertn.net. 51718 IN A 24.158.96.10
ns2.chartertn.net. 51718 IN A 24.159.191.7

so maybe try those addresses are your DNS (ie in your resolv.conf)

see how you go
 
Old 10-03-2004, 12:50 AM   #10
charon79m
Member
 
Registered: Oct 2003
Distribution: Just about anything... so long as it is Debain based.
Posts: 297

Rep: Reputation: 30
Stupid question, but do you have your machine set to use a proxy server? I've seen this issue with people using squid previously.

As far as DNS is concerned, the console and mozilla both get their resolution the same way. That's why I'm looking into an issue within mozilla that could be causing your problems.

MrKnisely
 
Old 10-03-2004, 04:43 AM   #11
warnesey333
Member
 
Registered: Oct 2004
Posts: 43

Rep: Reputation: 15
Hey guys...u aint the only ones...i got the EXACT same problem..
my pc which is running both linux and Windows connects to my D link g604t wireless adsl router through a CAT 5 ethernet cable. However, wen logged in on windows....it works perfectly fine...however wen im on linux....i have to ping say www.google.com to actually get on google.
However, after installing MSN messenger for linux, i can get on the messenger fine.

Any ideas?
 
Old 10-03-2004, 06:56 AM   #12
Sutekh
Member
 
Registered: Apr 2002
Location: Melbourne, Australia
Distribution: Gentoo
Posts: 273

Rep: Reputation: 30
it would be handy to know if the windows setting match the linux settings. maybe someone could check there windows settings (with winipcfg if it's win 95/98/me or go to a command prompt and type ipconfig /all in win2k/xp) and then boot linux and type ifconfig and then post all those results here

thanks
 
Old 10-03-2004, 07:13 AM   #13
warnesey333
Member
 
Registered: Oct 2004
Posts: 43

Rep: Reputation: 15
ok here we go


this was from Linux:


eth0 Link encap:Ethernet HWaddr 00:0C:F1:A9:09:8D
inet addr:192.168.1.2 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::20c:f1ff:fea9:98d/64 Scope:Link
UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1
RX packets:14598 errors:0 dropped:0 overruns:0 frame:0
TX packets:10169 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:20688625 (19.7 Mb) TX bytes:973442 (950.6 Kb)

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:158 errors:0 dropped:0 overruns:0 frame:0
TX packets:158 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:10434 (10.1 Kb) TX bytes:10434 (10.1 Kb)




And this is from the same pc but under windows::

Windows IP Configuration

Host Name . . . . . . . . . . . . : UPSTAIRS
Primary Dns Suffix . . . . . . . :
Node Type . . . . . . . . . . . . : Unknown
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No

Ethernet adapter Local Area Connection:

Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Intel(R) PRO/100 VE Netw
on
Physical Address. . . . . . . . . : 00-0C-F1-A9-09-8D
Dhcp Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
IP Address. . . . . . . . . . . . : 192.168.1.2
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.1.1
DHCP Server . . . . . . . . . . . : 192.168.1.1
DNS Servers . . . . . . . . . . . : 192.168.1.1
Lease Obtained. . . . . . . . . . : 03 October 2004 13:06:19
Lease Expires . . . . . . . . . . : 03 October 2004 14:06:19
 
Old 10-03-2004, 08:27 AM   #14
samael26
Member
 
Registered: Oct 2004
Location: France, Provence
Distribution: Debian sid, aptosid, Linux Mint, MacOS X
Posts: 847

Rep: Reputation: 30
Hello again,

I've just read in "Running Linux", 4th Edition that when you see this kind of IP:" 127.0.0.1" , it's called "loopback" and it's your system address.
It's seems that it's only your local system which is configured like that and of course can't access the Internet.
Problem is, in /etc/resolv.conf I tried to change that (it was my 1st servername) and replaced it by the IP given by the router itself, nothing changed.
Well someone told me to try cat/etc/resolv.conf to see what the problem could be. Not tried yet, but I will.
Last, ifconfig shows that eth0 is ok on my system
What about trying netstat -rn to get info from the IP routing table.
Keep up the faith, boys, we'll make it some day !! Cheers!
 
Old 10-03-2004, 10:09 AM   #15
warnesey333
Member
 
Registered: Oct 2004
Posts: 43

Rep: Reputation: 15
ok, here's the IP Table...do you know how i can change the Inet address?

Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
browser plugin for Konqueror web browser (linspire) Tracianddwayne Linux - Newbie 2 01-06-2010 02:08 PM
Problem with web browser DNS resolution pepe_k Mandriva 5 01-04-2005 02:47 AM
Ping vs. Browser jarmstrong Linux - Networking 5 08-27-2004 12:18 PM
Internet connection problem, able to ping but unable to get web page in browser rajnishmishra Linux - Networking 13 07-15-2004 12:54 AM
public web browser aka web kiosk xmnemonic Linux - Software 6 06-14-2004 03:20 PM


All times are GMT -5. The time now is 01:55 PM.

Main Menu
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