LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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-25-2007, 12:26 PM   #1
jago25_98
Member
 
Registered: Jun 2001
Posts: 302

Rep: Reputation: 30
Ping resolves DNS but other apps don't?


Crucially:

"Connecting to irc.freenode.net (1.0.0.0) port 6667"
"[admin@(none) root]$ ping freenode.net
PING freenode.net (140.211.166.2): 56 data bytes
64 bytes from 140.211.166.2: icmp_seq=0 ttl=51 time=178.3 ms"

Separate ADSL Modem 192.168.1.10
- doesn't have much in the way of diagnostics. It's a linksys ADSL2 modem

^ connects through

Router 192.168.1.20
- /etc/resolv.conf is set to 192.168.1.10

^ connects through

Client PC 192.168.1.101
- Firefox doesn't resolve DNS queries. Konqueror kind of works but
slow DNS requests.
- yet, ping works fine resolving DNS perfectly
- /etc/resolve.conf is set to 192.168.1.20 (router), and ping only works if it is set to
this and not 192.168.1.10 (modem)
- gateway is set to router (192.168.1.20) by DHCP
- same symptoms on Windows and Linux, conected by ethernet cable
- can't ping the modem (192.168.1.10)
- apt-get fails to update as well

Other Windows only client PC:
- works fine connected by cable or wireless


What on earth is going on?

Last edited by jago25_98; 02-25-2007 at 12:31 PM.
 
Old 02-25-2007, 12:32 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
if i'm right, this sounds a lot like similar issues (well.. they wouldn't be similar otherwise would they??) which came down to very bizzare ipv6 issues with the adsl router and the certain patterns of dns lookups being done by clients. try disabling ipv6 on your box and see where that gets you. i still don't understand the "why", but the "how" seems to do the job.
 
Old 02-25-2007, 01:18 PM   #3
fur
Member
 
Registered: Dec 2003
Distribution: Debian, FreeBSD
Posts: 310

Rep: Reputation: 35
The linksys ADSL2 looks to be a combination modem, and router.

Then you have another router on top of that, and both are on the same subnet from what you posted

"Separate ADSL Modem 192.168.1.10"

"Router 192.168.1.20"

If NAT is enabled on two devices, and they share the same subnet there will most likely be problems. If you want to use both routers you will need to do some config changes on the 2nd device.
 
Old 02-25-2007, 01:24 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
no, i don't think so. actually it was the 1.0.0.0 dns resolutions too that fitted in with it. regardless of network topology, if DNS works on one app on a client, it *should* work on all of them.
 
Old 02-25-2007, 01:31 PM   #5
jago25_98
Member
 
Registered: Jun 2001
Posts: 302

Original Poster
Rep: Reputation: 30
Thanks. For some strange reason I am able to get to linuxquestions.org but not google.co.uk ...

I am look for IPv6 in my WL500g settings and can't see a way to disable.

The modem only has one ethernet port on the back, and client PCs can't ping the modem.

What would be a better setup? -because the defaults of the modem and router being on 192.168.1.1 didn't seem to work.
 
Old 02-25-2007, 01:43 PM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
it's not a function of the laptop, it's the operating system which dos the support. normally it's just a case of removing, or not loading the "ipv6" module on boot.
 
Old 02-25-2007, 02:11 PM   #7
fur
Member
 
Registered: Dec 2003
Distribution: Debian, FreeBSD
Posts: 310

Rep: Reputation: 35
Quote:
The modem only has one ethernet port on the back, and client PCs can't ping the modem.
Thats because they share they same subnet, and are being NATed by seperate devices.


Modem 192.168.1.10

Router 192.168.1.20


Any clients that are plugged into the router are not going to send their packets to 192.168.1.20 to reach 192.168.1.10, or any other IPs that share that subnet.

They will do a arp lookup asking who has 192.168.1.10, and wont get a answer because 192.168.1.10 is not a configured IP that is in their collision domain.


Now if the modem had a IP on another subnet then the clients would look in their routing table, and see that the IP is not on the same subnet they are, send packets to their default route of 192.168.1.20.

IPv6 may have something to do with this, but I have little experience with it. Either way, you will still want to get your network straightened out.

Last edited by fur; 02-25-2007 at 02:12 PM.
 
Old 02-25-2007, 02:22 PM   #8
jago25_98
Member
 
Registered: Jun 2001
Posts: 302

Original Poster
Rep: Reputation: 30
Thanks for the help guys! I changed the router to access point mode for the moment.

When I can would a choice of 10.0.0.1 for the modem and 192.168.1.1 for the router be ok? I'm not an expert in calculating subnets
 
Old 02-25-2007, 03:01 PM   #9
fur
Member
 
Registered: Dec 2003
Distribution: Debian, FreeBSD
Posts: 310

Rep: Reputation: 35
Do you have a link to documentation for you modem?
 
Old 02-25-2007, 03:06 PM   #10
jago25_98
Member
 
Registered: Jun 2001
Posts: 302

Original Poster
Rep: Reputation: 30
No, because it's 2nd hand off ebay and google search results are dogged by adverts
 
Old 02-25-2007, 03:23 PM   #11
fur
Member
 
Registered: Dec 2003
Distribution: Debian, FreeBSD
Posts: 310

Rep: Reputation: 35
Well I found the documentation, and that modem does do routing/NAT

ftp://ftp.linksys.com/international/...2MUE-EU_ug.pdf

This is what I would do.


To disable this.

In your modem go select "Bridged Mode Only"

Then click the "Save Settings" button.


This disables, routing, and NAT on the modem, so that it will act as a "normal" modem, and just pass traffic.



Then you would need to configure your router to connect to your ISP.

You want your router to perform NAT.

So it will connect to the ISP, and get a public IP on its external interface then hand out the 192.168.x.x IPs to your clients.


I would also get the documentation for your router as well as well as the connection settings for your ISP if you don't already have it.
 
Old 02-25-2007, 03:24 PM   #12
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
/me sits back and waits for this to be deemed irrelevant. or be proved very very wrong. ;-)
 
Old 02-25-2007, 03:39 PM   #13
fur
Member
 
Registered: Dec 2003
Distribution: Debian, FreeBSD
Posts: 310

Rep: Reputation: 35
Quote:
Originally Posted by acid_kewpie
/me sits back and waits for this to be deemed irrelevant. or be proved very very wrong. ;-)

Well if you look here there was a similar issue with domains resolving to 1.0.0.0 with lynx, but ping would resolved the domain.

http://forums.whirlpool.net.au/forum...fm/474578.html


Either way his network is not setup properly with the 2 NATs like that, and needs fixed.
 
  


Reply

Tags
dns, ping, router



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
no matter what I ping it resolves to the localhosts's IP.... aubrey-calm2 Linux - Newbie 4 08-31-2006 12:17 PM
Fix: 'apt-get update' dns resolves to 1.0.0.0 benjeeqds Linux - Software 0 04-09-2006 07:46 AM
Virtual Hosts, DNS resolves, PLEASE HELP!! parasbshah Linux - Software 14 10-17-2005 01:38 PM
Any name resolves to. A? CNAME? DNS Q dlublink Linux - Networking 3 01-11-2005 09:55 AM
DNS resolves quickly but lynx extremely slow yichun Debian 2 07-01-2004 09:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:35 PM.

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
Open Source Consulting | Domain Registration