Ping By name issue

I have a computer that has an A record and PTR record in DNS.
its IP is 10.20.20.20 I can ping it successfully using

ping 10.20.20.20
ping -a 10.20.20.20 (it resolves the name)

But if I ping it by name
 ping compname
Or
ping compname.domainname.com

I receive:
Ping request could not find host compname. Please check the name and try again.

I can't see where the probleme could be.

Thanks
jskfanAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Ahmed Ezzat AbuRayaNetwork Developer EngineerCommented:
It seems that name resolution is blocked. Maybe a firewall issue?
Is NetBIOS over TCP/IP enabled?
Try disabling the firewall (just for testing for a min) to see if it is the problem. And see if the netbios settings are enabled.

If you still can't manage to get a successful ping reply, please respond :)
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
MariusSunchaserCommented:
Hi there.
Please make a nslookup on your dns server. Post here the results.
nslookup, enter
server <your.dns.server>, enter
<10.20.20.20>, enter
(tell us the results)
<compname>
(tell us the results)
<compane.domain.com>
(tell us the results)
0
jskfanAuthor Commented:
Thanks... I rejoined it to the domain and for some reason it works fine now...the ping replies by name and IP
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
DNS

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.