LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-12-2007, 09:36 AM   #1
tkmsr
Member
 
Registered: Oct 2006
Distribution: Ubuntu,Open Suse,Debian,Mac OS X
Posts: 798

Rep: Reputation: 39
Ping error with proxy


I discovered this phenomenon we have a small LAN of 8 computers with
one of them working as proxy server and remaining get the internet
connection from that
the proxy server is in windows and rest of the PC's are in Linux
due to some reasons we are not using Squid as our proxy instead it is
a windows workstation and acts as a proxy when any one need to browse
the net in Linux
in firefox we specify the proxy and port and it works fine

==>>>> i.e. Internet Connection is working absolutely error free

but when I try to ping from any console on client machine to some
site like www.google.com
then I get error
ping: unknown host www.google.com
but if I ping the www.google.com from the proxy server then there is
no error and I am getting the correct response
now I looked my /etc/resolv.conf
it has following entries

search localdomain

~
~

then I looked /etc/hosts it has
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
~
~and then /etc/host.conf
order bind, hosts

I feel that when I type ping on console (terminal) the ping command
does not knows how to talk to proxy to resolve www.google.com to an IP
address
I don't have a DNS server here it is just a windows based proxy server

but there is some thing else to be pointed out
I did the reverse thing I made the linux machine as proxy server
and windows as the client then I was able to ping www.google.com
from windows command prompt without any error
that means here the machine or ping knew how to talk to proxy server
to resolve the address

now what I want to know is what entries should I change in my network
related files to be able to ping to any site outside my LAN from a
client machine
do I need to make changes to /etc/hosts or resolv,conf
I even shut down my firewalls for linux but the problem still persist
this is a very slight error some where I am missing because in past I
have faced exactly the same thing but I was able to fix the problem
right now the correct thing is not striking my mind
can some one point out the error I might be doing while configuring
the systems
 
Old 02-12-2007, 09:49 AM   #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
well you'd want to add whatever name servers the windows boxes are using to /etc/resolv.conf... hardly a phenomenon...
 
Old 06-26-2009, 05:55 AM   #3
pavan6754
LQ Newbie
 
Registered: May 2009
Posts: 18

Rep: Reputation: 0
same problem i have.
iam using fedora 10 and not able to ping www.google.com it saying unknown service or name.
iam also connected through proxy server running windows.
i tried alot but no use plse help me
 
Old 06-26-2009, 06:43 AM   #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
please don't drag up dead threads.
 
  


Reply



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
ping behind the proxy ? wiyanto84 Linux - Networking 3 11-16-2006 11:18 PM
ping through proxy shashwat Linux - Networking 2 01-18-2005 04:44 PM
able to ping proxy but no authentication rvijay17 Linux - Networking 4 06-17-2004 08:05 AM
Ping Proxy Server acjt Linux - Networking 11 07-31-2003 06:24 AM
no ping, can't use proxy lenlin Linux - Networking 2 10-29-2002 05:23 PM

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

All times are GMT -5. The time now is 07:18 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