none
Ping -a returns various results on different servers RRS feed

  • Question

  • Hello

    There are some A records in DNS server without PTR for them. when I use Ping -a command to test them on DNS server it returns name (without domain name) , but on other servers it returns just IP. I've cleared DNS cache. Why is that?

    for some of these records I am getting reply like this:

    Pinging "Servername.DNS-IP" with 32 bytes of data. (DNS IP instead domain name)

    how do you explain these different behaviors?

    Thanks in advance

    Thursday, September 6, 2018 6:14 AM

Answers

  • Thanks dear 

    I Found the answers, so I want to share:

    I found out that Ping -a result like : "servername.DNS-IP" was because of WINS-R lookup and when I disable that, its gone.

    The correct result of Ping -a for servers that has A record in dns but no PTR, has two formats:

    1- The source and destination are in same IP range, so after failing query in DNS reverse lookup, It returns name of server using netBios!

    2- The source and destination are not in same IP range, so after failing query in DNS reverse lookup, It returns just servers IP address.

    Thanks


    Wednesday, September 12, 2018 11:14 AM

All replies

  • Hi,

    Thanks for your question.

    The command ping -a can resolve addresses to hostnames.

    If A records have PTR records, the command will return domain names.

    on the contrary, the command will return hostnames with out PTR records.

    However, the command won't just return IP addresses. Could you show me more information?

    I suspect that you used the wrong command. The command Ping IP -a is wrong ,and it should be used as ping -a IP.

    Best regards,

    Travis


    Please remember to mark the replies as an answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com

    Friday, September 7, 2018 6:17 AM
    Moderator
  • ping -a 10.0.53.45

    Pinging 10.0.53.45 with 32 bytes of data:
    Reply from 10.0.53.45: bytes=32 time=1ms TTL=126
    Reply from 10.0.53.45: bytes=32 time=1ms TTL=126
    Reply from 10.0.53.45: bytes=32 time=1ms TTL=126
    Reply from 10.0.53.45: bytes=32 time=1ms TTL=126

    Ping statistics for 10.0.53.45:
        Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
    Approximate round trip times in milli-seconds:
        Minimum = 1ms, Maximum = 1ms, Average = 1ms
    Saturday, September 8, 2018 10:35 AM
  • Hi,

    A Records are used to point a hostname(With domain) to IP address. PTR is a reverse lookup, It points IP address to hostname(With domain)

    When you do the "Ping -A" on particular IP, it should return you the hostname followed by the domain name. 

    1) The server where you are getting result with name but not domain name, is that a DNS server or member server?

    2) Is your environment active directory integrated DNS?

    3) The server where you are getting result only with IP address, are those server configured with proper DNS servers. 

    4) If you environment is AD integrated, can you post the IPconfig /all from where you are getting only IP address result. 

    Note: You can change the actual names, if it is confidential.

    Regards

    Afsar

    Saturday, September 8, 2018 6:50 PM
  • Hello dear

    1- The server where I am getting result with name but not domain name, is that a DNS server.

    2-  Zones are active directory integrated

    3- The server where I am getting result only with IP address, are those servers configured with proper DNS servers. (I checked again)

    4- 

    ping -a 10.0.53.45
    
    Pinging 10.0.53.45 with 32 bytes of data:
    Reply from 10.0.53.45: bytes=32 time=1ms TTL=126
    Reply from 10.0.53.45: bytes=32 time=1ms TTL=126
    Reply from 10.0.53.45: bytes=32 time=1ms TTL=126
    Reply from 10.0.53.45: bytes=32 time=1ms TTL=126
    
    Ping statistics for 10.0.53.45:
        Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
    Approximate round trip times in milli-seconds:
        Minimum = 1ms, Maximum = 1ms, Average = 1ms
    
    C:\Users\user.domainname>ipconfig /all
    
    Windows IP Configuration
    
       Host Name . . . . . . . . . . . . : My-PC-Name
       Primary Dns Suffix  . . . . . . . : Domain.com
       Node Type . . . . . . . . . . . . : Hybrid
       IP Routing Enabled. . . . . . . . : No
       WINS Proxy Enabled. . . . . . . . : No
       DNS Suffix Search List. . . . . . : Domain.com
    
    Ethernet adapter VPN - VPN Client:
    
       Media State . . . . . . . . . . . : Media disconnected
       Connection-specific DNS Suffix  . :
       Description . . . . . . . . . . . : VPN Client Adapter - VPN
       Physical Address. . . . . . . . . : 00-AC-67-AA-B2-26
       DHCP Enabled. . . . . . . . . . . : Yes
       Autoconfiguration Enabled . . . . : Yes
    
    Ethernet adapter Ethernet:
    
       Connection-specific DNS Suffix  . :
       Description . . . . . . . . . . . : Realtek PCIe GBE Family Controller
       Physical Address. . . . . . . . . : 1C-1B-0D-8E-4B-DB
       DHCP Enabled. . . . . . . . . . . : No
       Autoconfiguration Enabled . . . . : Yes
       IPv4 Address. . . . . . . . . . . : 10.0.48.50(Preferred)
       Subnet Mask . . . . . . . . . . . : 255.255.255.0
       Default Gateway . . . . . . . . . : 10.0.48.1
       DNS Servers . . . . . . . . . . . : 10.0.53.3
                                           10.0.53.14
                                           10.0.53.36
       Primary WINS Server . . . . . . . : 10.0.53.3
       NetBIOS over Tcpip. . . . . . . . : Enabled


    Monday, September 10, 2018 11:20 AM
  • Hi,

    Thanks for your reply.

    Could you ping the hostname of 10.0.53.45?

    Check the host's hosts file for the record of the localhost.

    Path c:\windows\system32\drivers\etc\hosts.

    Best regards,

    Travis


    Please remember to mark the replies as an answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com

    Tuesday, September 11, 2018 7:41 AM
    Moderator
  • ping srv5345
    
    Pinging srv5345.Domain.com [10.0.53.45] with 32 bytes of data:
    Reply from 10.0.53.45: bytes=32 time=1ms TTL=126
    Reply from 10.0.53.45: bytes=32 time=1ms TTL=126
    Reply from 10.0.53.45: bytes=32 time=1ms TTL=126
    Reply from 10.0.53.45: bytes=32 time=1ms TTL=126
    
    Ping statistics for 10.0.53.45:
        Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
    Approximate round trip times in milli-seconds:
        Minimum = 1ms, Maximum = 1ms, Average = 1ms

    I checked Host file. nothing related.

    I tried some other servers. for all of them: with a record and no PTR, is the same. ping reply is like above and ping -a reply is just IP.

    Tuesday, September 11, 2018 1:37 PM
  • Hi,

    Thank you for your reply. 
    I am trying to involve someone familiar with this topic to further look at this issue. There might be some time delay. Appreciate your patience.

    Best regards,

    Travis


    Please remember to mark the replies as an answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com

    Wednesday, September 12, 2018 9:40 AM
    Moderator
  • Thanks dear 

    I Found the answers, so I want to share:

    I found out that Ping -a result like : "servername.DNS-IP" was because of WINS-R lookup and when I disable that, its gone.

    The correct result of Ping -a for servers that has A record in dns but no PTR, has two formats:

    1- The source and destination are in same IP range, so after failing query in DNS reverse lookup, It returns name of server using netBios!

    2- The source and destination are not in same IP range, so after failing query in DNS reverse lookup, It returns just servers IP address.

    Thanks


    Wednesday, September 12, 2018 11:14 AM
  • First of all sorry for the delayed response on your provided answers.

    I am happy that you found answer.

    Regards

    Afsar

    Saturday, September 22, 2018 3:54 PM