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 04-28-2011, 11:11 PM   #1
donv2
Member
 
Registered: Nov 2004
Location: Upper right corner of USA
Distribution: Ubuntu/Mint, unSLUng (NSLU2), Arch/PlugApps (Dockstar)
Posts: 50

Rep: Reputation: 15
Question Can ping but can't wget - strange network behavior


Hi, really puzzled by this and looking for help and sanity checking.

I have a small ARM machine running an Arch linux variant, PlugApps. It was set up and working fine at my home, with a standard networking setup -- cable modem and router. I could do pretty much anything I needed to access the net fine.

This machine is a remote monitoring system for another location. I shipped it to that location and am now trying to get it set up using another set of hands on site. There it is on the network behind a dsl modem and a router. I forwarded ports from the dsl modem to the router and from the router to the ARM computer.

In both cases the ARM machine is/was configured to use dhcp.

So here's the deal:
  • I can ssh into the ARM machine just fine.
  • I can ping hosts on the wan fine (eg: stanford.edu).
BUT:
  • wget fails for not being able to resolve a valid address (eg: http://checkip.dyndns.org)
  • the PlugApps package management system (pacman) cannot resolve the repository address
  • the openntp time sync isn't working

On the new network, I am able to connect to another client windows PC which has the same associated network info (Bcast address, Mask, etc. - comparing windows "ipconfig" vs linux "ifconfig" outputs) but which can resolve addresses for web browsing, etc.

What am I missing? If it can resolve addresses for pings, why can't it work for other address requests? If I can ssh interact with it, why can't it connect to the net for other purposes?
 
Old 04-29-2011, 10:47 AM   #2
donv2
Member
 
Registered: Nov 2004
Location: Upper right corner of USA
Distribution: Ubuntu/Mint, unSLUng (NSLU2), Arch/PlugApps (Dockstar)
Posts: 50

Original Poster
Rep: Reputation: 15
Just for anyone following after me, I was able to put in place a workaround if not an actual fix.

I ended up forcing a set of nameserver entries into /etc/resolv.conf through use of /etc/resolv.conf.head. This file is read into resolv.conf on boot when using dhcp. After adding the google, opendns, etc. nameservers into the set up, addresses can now be resolved and it all works.

There must be something strange about the router/dsl modem network set up that was not providing lookup services by the default via dhcp.
 
  


Reply

Tags
arch linux, failure, networking, ping, wget



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
Strange behavior of Network Manager in Ubuntu 7.10 depam Linux - Software 3 01-13-2008 05:29 PM
strange behavior using system() and ping utility ggeorgak Programming 4 02-10-2007 05:55 AM
Arkeia Network Backup - Strange Behavior - Can anybody help? bdb4269 Linux - Software 4 03-03-2006 06:43 PM
Debian strange behavior about network config Half_Elf Debian 3 04-01-2004 12:07 PM
Strange ping/network problem Noerr Linux - Networking 8 05-29-2002 12:01 PM

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

All times are GMT -5. The time now is 02:35 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
Open Source Consulting | Domain Registration