LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-08-2012, 12:26 AM   #1
sandeepc04
Member
 
Registered: Jun 2012
Location: India
Posts: 66

Rep: Reputation: Disabled
Pinging is not happening from Client Machine


Hi friends,

I have squid server, configured in RHEL-5,

i am able to ping www.google.com in server and getting reply also

but when i am trying to ping in client machine i am getting below error

"C:\Documents and Settings\Owner>ping google.com -t
Ping request could not find host google.com. Please check the name and try again. "

I have tried with some options, that not got workout...

Please help me on this...

Regards,
Sandeep CC
 
Old 10-08-2012, 12:37 AM   #2
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: RHEL 7.x, SLES 11 SP2/3/4
Posts: 1,195
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
check if you are connected to internet and DNS servers
 
Old 10-08-2012, 12:53 AM   #3
sandeepc04
Member
 
Registered: Jun 2012
Location: India
Posts: 66

Original Poster
Rep: Reputation: Disabled
Thank you deep27ak for your reply,

Yes My linux (RHEL-5) is running with Squid & DHCP same server, and DNS running in Windows server, in DHCP i have given DNS IP, so my client IP details is like below,

C:\Documents and Settings\Owner>ipconfig /all

Windows IP Configuration

Host Name . . . . . . . . . . . . : BA3022
Primary Dns Suffix . . . . . . . :
Node Type . . . . . . . . . . . . : Hybrid
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No
DNS Suffix Search List. . . . . . : xyz.com

Ethernet adapter Local Area Connection:

Connection-specific DNS Suffix . : xyz.com
Description . . . . . . . . . . . : Realtek RTL8139 Family PCI Fast Ethe
rnet NIC
Physical Address. . . . . . . . . : 01-22-90-68-39-BB
Dhcp Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
IP Address. . . . . . . . . . . . : 172.16.4.42
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 172.16.4.205
DHCP Server . . . . . . . . . . . : 172.16.4.205
DNS Servers . . . . . . . . . . . : 172.16.4.5
Primary WINS Server . . . . . . . : 172.16.4.5
Lease Obtained. . . . . . . . . . : Monday, October 08, 2012 9:07:19 AM
Lease Expires . . . . . . . . . . : Monday, October 08, 2012 3:07:19 PM

C:\Documents and Settings\Owner>


Now what i have to do for this?


Regards,
Sandeep CC
 
Old 10-08-2012, 12:56 AM   #4
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: RHEL 7.x, SLES 11 SP2/3/4
Posts: 1,195
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
are you able to ping your DNS server?

If internet is not working I don't think it has any thing to do with squid. It all depends how your client machine is connected to network

First of all check if you are able to ping other client machines on the network
Check if you are able to ping your DNS server

How are you trying to setup squid? Is it transparent ?
 
Old 10-08-2012, 01:05 AM   #5
sandeepc04
Member
 
Registered: Jun 2012
Location: India
Posts: 66

Original Poster
Rep: Reputation: Disabled
Thanks for your reply deep27ak,

Yes Internet is working there is no issue with internet in client as well as server,

Clients are able to ping each other & also it is pining to server (DNS-Windows & Squid-RHEL), Even clients are able to ping google.com by IP


C:\Documents and Settings\Owner>ping 74.125.236.161

Pinging 74.125.236.161 with 32 bytes of data:

Reply from 74.125.236.161: bytes=32 time=79ms TTL=51
Reply from 74.125.236.161: bytes=32 time=22ms TTL=51
Reply from 74.125.236.161: bytes=32 time=50ms TTL=51
Reply from 74.125.236.161: bytes=32 time=35ms TTL=51

Ping statistics for 74.125.236.161:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 22ms, Maximum = 79ms, Average = 46ms

C:\Documents and Settings\Owner>

But client are not able to ping by word like ping.google.com, by IP it is able to ping no issue,

This is not transparent squid, this is normal Squid configured on RHEL-5,

Office Network Setup:

Linux Squid Server + DHCP Server, Coming all client internet by this server only, so specific websites have blocked in this squid server,

Windows DNS server, This server made for internal usage purpose to login some domain users...

I have tried with Without DNS also, Like removed dns details from DHCPD.CONF file and checked with ping, till its not working properly


Regards,
Sandeep CC
 
Old 10-08-2012, 01:17 AM   #6
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: RHEL 7.x, SLES 11 SP2/3/4
Posts: 1,195
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
check the time settings of your client. Is it syncing with the domain server if it is under domain
The time gap should be maximum of 5 min between domain client and server
 
Old 10-08-2012, 01:20 AM   #7
sandeepc04
Member
 
Registered: Jun 2012
Location: India
Posts: 66

Original Poster
Rep: Reputation: Disabled
No, Time is not a issue...Time are correct in all server and client too...
 
Old 10-08-2012, 01:24 AM   #8
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: RHEL 7.x, SLES 11 SP2/3/4
Posts: 1,195
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
give a cross check with google DNS

change the client DNS with 4.2.2.2 or 8.8.8.8

make them use static IP
 
Old 10-08-2012, 06:51 AM   #9
sandeepc04
Member
 
Registered: Jun 2012
Location: India
Posts: 66

Original Poster
Rep: Reputation: Disabled
Hello,

Sorry for late reply,

Yes when i give static IP with 8.8.8.8 or 4.2.2.2 DNS its pinging, but when i am giving again our office DNS 172.16.4.5 its not pinging...


So what could be a problem?

Regards,
Sandeep CC
 
Old 10-08-2012, 07:04 AM   #10
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: RHEL 7.x, SLES 11 SP2/3/4
Posts: 1,195
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
SO check your DNS server and I think that 172.16.4.5 must be your domain server so you can do 2 things from here

1. Check the nameserver of Active Directory.
2. Use secondary DNS of google for the client machine (But this will not be appropriate)
 
Old 10-09-2012, 12:59 AM   #11
sandeepc04
Member
 
Registered: Jun 2012
Location: India
Posts: 66

Original Poster
Rep: Reputation: Disabled
Hello Good Morning deep27ak,

Finally i have put ISP 2 DNS IP's in DHCPD.CONF file its started to ping....

Thank you very much dear....


Now one more problem raised,

At one of my friend office, I have configured DNS+DHCP+Squid+HTTP+FTP+Mail in RHEL-5 Server, everything is working fine except DNS, The same problem were there what i have problem for my office server,

When i am stoping IP Tables I am getting ping request like time out from client Machine,
C:\Users\sysadmin>ping www.google.com -t

Pinging www.google.com [74.125.236.48] with 32 bytes of data:
Request timed out.
Request timed out.
Request timed out.
Request timed out.
Request timed out.
Request timed out.
Request timed out.
Request timed out.

But When i am again starting iptables i am unable to ping,
C:\Users\sysadmin>ping google.com -t
Ping request could not find host google.com. Please check the name and try again
.

Below things are working fine in client and server

Internet is working fine (Both Side)
By IP google is pinging (both side)
By name pinging only in server side
In client given 8.8.8.8 & 4.2.2.2 DNS and checked for ping its not pinging


Have tried with almost all options not getting where is problem,

And when i am starting iptables nslookup giving error like
C:\Users\sysadmin>nslookup
DNS request timed out.
timeout was 2 seconds.
Default Server: UnKnown
Address: 192.168.4.1

But When i am stopping iptables nslookup is working fine...
C:\Users\sysadmin>nslookup
Default Server: xyz.com
Address: 192.168.4.1

Please help me on this (Hope problem is in Linux DNS only, but not getting how to solve it)

Regards,
Sandeep CC
 
Old 10-09-2012, 01:52 AM   #12
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: RHEL 7.x, SLES 11 SP2/3/4
Posts: 1,195
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
You need to configure your iptables to allow DNS port

check if your current iptables rule allows nameserver

Code:
#netstat -ntlp | grep named
or
Code:
#netstat -ntlp | grep 53
 
Old 10-09-2012, 01:55 AM   #13
sandeepc04
Member
 
Registered: Jun 2012
Location: India
Posts: 66

Original Poster
Rep: Reputation: Disabled
Yes, All dns related ports are enabled,

netstat -ntlp | grep 53
tcp 0 0 192.168.4.1:53 0.0.0.0:* LISTEN 6525/named
tcp 0 0 IPS STATIC IP:53 0.0.0.0:* LISTEN 6525/named
tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 6525/named
tcp 0 0 127.0.0.1:953 0.0.0.0:* LISTEN 6525/named
tcp 0 0 ::1:953 :::* LISTEN 6525/named

Regards,
Sandeep CC
 
Old 10-09-2012, 02:05 AM   #14
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: RHEL 7.x, SLES 11 SP2/3/4
Posts: 1,195
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
can you post your named.conf file
 
Old 10-09-2012, 02:07 AM   #15
sandeepc04
Member
 
Registered: Jun 2012
Location: India
Posts: 66

Original Poster
Rep: Reputation: Disabled
cat /var/named/chroot/etc/named.conf
options{
directory "/var/named/";
};

zone "xyz.com" {
type master;
file "xyz.com.zone";
allow-transfer {192.168.4.254;};
};
zone "4.168.192.in-addr.arpa" {
type master;
file "4.168.192.in-addr.arpa.zone";
};
 
  


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
[SOLVED] How to check if a server is up / down if pinging to that machine is not allowed Vi_rod Linux - Newbie 5 09-03-2012 12:06 PM
REDHAT Virtual machine not pinging to default gateway royalredhat Linux - Virtualization and Cloud 2 06-22-2010 12:50 AM
windows machine not pinging to linux sunils1973 Linux - Networking 3 07-21-2009 12:38 AM
Gust machine is not pinging(vmware workstation 6.5) lincoln.runwal Linux - Newbie 1 03-19-2009 07:10 PM
eth0 is up but not pinging to any machine devilzgaze Linux - Networking 1 03-09-2005 05:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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