Nslookup working but ping not working at windows client

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat Nslookup working but ping not working at windows client
# 1  
Old 02-27-2014
RedHat Nslookup working but ping not working at windows client

Hi Team

we have created a DNS server at RHEL6.2 environment in 10.20.203.x/24 network.
Everything is going well on linux client as nslookup, ping by host etc in entire subnet. We are getting problem in windows client as nslookup working as well but not ping. all the firewall is disabled and alos port is opened for DNS server.

Here the /etc/named.conf
Code:
//
// named.conf
//
// Provided by Red Hat bind package to configure the ISC BIND named(8) DNS
// server as a caching only nameserver (as a localhost DNS resolver only).
//
// See /usr/share/doc/bind*/sample/ for example named configuration files.
//

options {
        listen-on port 53 { 127.0.0.1; 10.20.203.4; };
        listen-on-v6 port 53 { ::1; };
        directory       "/var/named";
        dump-file       "/var/named/data/cache_dump.db";
        statistics-file "/var/named/data/named_stats.txt";
        memstatistics-file "/var/named/data/named_mem_stats.txt";
        allow-query     { localhost; 10.20.203.4; };
        recursion yes;
        dnssec-enable yes;
        dnssec-validation yes;
        dnssec-lookaside auto;

        /* Path to ISC DLV key */
        bindkeys-file "/etc/named.iscdlv.key";
};

logging {
        channel default_debug {
                file "data/named.run";
                severity dynamic;
        };
};

zone "." IN {
        type hint;
        file "named.ca";
};

zone "example.com" IN {
       type  master;
       file "example.com.fwd";
       allow-transfer { 10.20.203.0/24; };
};

zone "203.20.10.in-addr.arpa" IN {
        type master;
        file "example.com.rev";
        allow-update { 10.20.203.0/24; };
};

include "/etc/named.rfc1912.zones";

Here the forward Zone
Code:
$TTL    86400
@                SOA         example.com.      root (
                                        42              ; serial (d. adams)
                                        3H              ; refresh
                                        15M             ; retry
                                        1W              ; expiry
                                        1D )            ; minimum

                NS              server.example.com.
  
server          A               10.20.203.4

Reverse Zone file
Code:
$TTL    86400
@             SOA     example.com. root.server.example.com.  (
                                      1997022700 ; Serial
                                      28800      ; Refresh
                                      14400      ; Retry
                                      3600000    ; Expire
                                      86400 )    ; Minimum

          IN     NS      server.example.com.
4      IN     PTR     server.example.com.

One more problem in Dig as it can't resolve the host by IP but by hostname as well.

Can anyone explain 1> why ping not working with windos
2> Dig can't resolve host by IP

I would be appreciate if someone trace out the issue here.

Thanks in Advance

Moderator's Comments:
Mod Comment Please use code tags next time for your code and data. thanks

Last edited by vbe; 02-27-2014 at 09:42 AM.. Reason: code tags
# 2  
Old 02-27-2014
Last time i got the same issue with cannot ping hostname from windows client. After troubleshooting for a while, i try to reboot those windows server since it was on test environment. After reboot, ping and nslookup both working on windows server. Still not sure though reboot can solve yours or not.
# 3  
Old 02-27-2014
If DNS is correctly configured and working, what output do you get for your ping?

Does it say something like:-
Code:
C:\>ping myserver.my.domain.com

Pinging myserver.my.domain.com [111.222.333.444] with 32 bytes of data:

Timed out
Timed out
Timed out
Timed out

Ping statistics for 111.222.333.444:
    Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),

C:\>

If you see the IP address in the ping output, then you can be happy with DNS.

This could be a routing problem though. Can you publish the output from ifconfig -a and netstat -nr on your server? It may be that your ping gets to the server, but the server does not have a route to respond.



Thanks,
Robin
# 4  
Old 02-28-2014
RedHat

Reboot didn't help here.
Ping is working here and resolving the same.
output for netstat:
Code:
[root@server ~]# netstat -nr
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
10.20.203.0    0.0.0.0         255.255.255.0   U         0 0          0 em1
169.254.0.0     0.0.0.0         255.255.0.0     U         0 0          0 em1
0.0.0.0         10.20.203.1    0.0.0.0         UG        0 0          0 em1

Code:
[root@server ~]# ifconfig -a
em1       Link encap:Ethernet  HWaddr D4:BE:D9:9A:3C:72
          inet addr:10.20.203.4  Bcast:10.20.203.255  Mask:255.255.255.0
          inet6 addr: fe80::d6be:d9ff:fe9a:3c72/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:222447433 errors:0 dropped:0 overruns:0 frame:0
          TX packets:55475961 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1487414468 (1.3 GiB)  TX bytes:3800055060 (3.5 GiB)
          Interrupt:20 Memory:e1a00000-e1a20000

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:3527 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3527 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:316488 (309.0 KiB)  TX bytes:316488 (309.0 KiB)


I have done all the troubleshooting with windows client like flush DNS cache etc.

Any other way for this?

Last edited by Franklin52; 02-28-2014 at 08:09 AM.. Reason: Please use code tags
# 5  
Old 02-28-2014
Please put your output in CODE tags. It makes it far easier to read. You might need to write the :D in [NOPARSE]:D[/NOPARSE] tags to avoid it putting in the big grin as part of a MAC address.

You haven't given us the output of a ping. It would be good to know if you can ping 10.20.203.1 too.



Thanks,
Robin
# 6  
Old 02-28-2014
RedHat

Code:
C:\Users\Desktop>ping 10.20.203.1

Pinging 10.20.203.1 with 32 bytes of data:
Reply from 10.20.203.1: bytes=32 time<1ms TTL=254
Reply from 10.20.203.1: bytes=32 time<1ms TTL=254
Reply from 10.20.203.1: bytes=32 time<1ms TTL=254
Reply from 10.20.203.1: bytes=32 time<1ms TTL=254

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


Last edited by Franklin52; 02-28-2014 at 08:10 AM.. Reason: Please use code tags
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Nslookup on a variable inside script not working

I am new at scripting. I have a file that each line is the shortname for a server. ie - Server1 Server2 Server3 I want to read in that file, do a nslookup and print the FQDN to a file. I added an echo statement to make sure my variable was being read and changing. But the nslookup... (5 Replies)
Discussion started by: kellyhkc
5 Replies

2. Solaris

Sudo not working on LDAP client machine

Hi, I have configured ldap manually on solaris 10/11 machine with below entries: # ldapclient list |grep sudo NS_LDAP_SERVICE_SEARCH_DESC= sudoers:ou=SUDOers,dc=exm,dc=ple,dc=com # cat /etc/nsswitch.conf |grep -i sudo sudoers: files ldap # But groups available in LDAP server... (8 Replies)
Discussion started by: Sridaran
8 Replies

3. UNIX for Dummies Questions & Answers

Yum not working on client while able to do the ftp

1)check vsftpd service is running service vsftpd status 2)mkdir -p /var/ftp/pub/Packages Packages will contain all rpm packages 3)copy the xml file to Packages folder #cp -arf /mnt/hgfs/share/RHEL_DVD/Packages /var/ftp/pub/Packages 4)install the 3 required rpm rpm --nodeps -ivh... (0 Replies)
Discussion started by: joj123
0 Replies

4. Shell Programming and Scripting

Perl : ping for multiple IPs not working

I have written perl ping program to ping list of IPs one by one and print the status.But each and every time it is showing the status as Pass for all IPs even though the IP is wrong. multipleip.pl use Net::Ping; $p = Net::Ping->new(); $ifile="inventory.txt"; ... (2 Replies)
Discussion started by: scriptscript
2 Replies

5. HP-UX

nslookup/ping resolve problem 11i v3

I am having a problem with a new server build that has got me completely baffled. This server has a private back end network so the way it is supposed to work is that the server thinks its ip address is 10.131.0.48 but the rest of the world knows it as 199.68.100.100 per DNS. It has to be this way... (2 Replies)
Discussion started by: keelba
2 Replies

6. Solaris

my sun solaris 10 cannot ping and nslookup other server using hostname.

hi.... i have sun solaris 10 server, fedora 10, and Windows Server.. i cant ping my sun solaris 10, fedora 10 and Windows Server using hostname (etc: ping winserver.bengkel2.com), but i can ping all using IPV4 and IPV6 address.. can u give some suggestion to solve my problem or some idea to... (3 Replies)
Discussion started by: izuan_7657
3 Replies

7. UNIX for Advanced & Expert Users

ping by hostname not working

anyone ever seen this problem: I can ping the server by IP address but I can't by hostname. nslookup is working and dns query is ok. # nslookup mwxnsb24 Server: 10.11.49.206 Address: 10.11.49.206#53 Name: mwxnsb24 Address: 10.10.58.175 # ping... (8 Replies)
Discussion started by: linuxgeek
8 Replies

8. UNIX Desktop Questions & Answers

X windows not working

Hi all, Fedora 10 workstation is not able to login to X windows (GUI).But works fine on command line. Below are command outputs from two workstations: one with problem and another working fine (both are identical in h/w and run fedora core 10). Please help me in this. Thanks in advance! ... (3 Replies)
Discussion started by: lramsb4u
3 Replies

9. Solaris

dns client not working

Hi All, I have configured linux server as local dns server (practice level). I have given the IP and hostname details in /etc/hosts -bash-3.00# cat /etc/hosts # # Internet host table # ::1 localhost 127.0.0.1 localhost 192.168.1.78 dummy.set.com loghost 192.168.1.57 cent.set.com #... (3 Replies)
Discussion started by: vaibhav.kanchan
3 Replies

10. Solaris

ping -s not working

I have a multipath system with 2 physicals, a virtual and a failsafe. All network connectivity is working fine to and from all of the interfaces and the virtual. The one thing that is not working is 'ping -s'. From this machine, I cannot send and receive packets using ping -s. ping without the... (1 Reply)
Discussion started by: tjlst15
1 Replies
Login or Register to Ask a Question