We help IT Professionals succeed at work.
Troubleshooting Question

How does ping -a resolve host names?

Last Modified: 2020-08-14
I'm having an issues where if I do a ping -a <ip address> its giving me the wrong DNS name.

For example, if i do ping -a I get computera.domain.com

If i ping computera.domain.com I get

This is all internal and My AD DNS is showing the correct DNS when the ping command. the ping -a command is showing the wrong DNS.I am not sure why.
Watch Question

Lead Systems Administrator
This one is on us!
(Get your first solution completely free - no credit card required)


Thank you. I am not sure why I didn't look at the reverse lookup zone when that's exactly what it's doing. Thank you very much. Now I need to find out why these old records arent being scavenged when I have it set to 7 days and those old IP's havent been used for months.
nociSoftware Engineer
Distinguished Expert 2019

Like any other regular program it uses the gethostbyaddr() function. Some programs that do a massive amount of lookups use non-waiting library calls.the dig program doet all by itself.
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.