We help IT Professionals succeed at work.
Troubleshooting Question

How does ping -a resolve host names?

18 Views
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 192.168.0.3 I get computera.domain.com

If i ping computera.domain.com I get 192.168.0.30.

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.
Comment
Watch Question

Lead Systems Administrator
CERTIFIED EXPERT
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION

Author

Commented:
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
CERTIFIED EXPERT
Distinguished Expert 2019

Commented:
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.

OR

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.