unable to ping with hostname centos

I have installed centos 7 on virtualbox and connected it to bridged network.

I am able to ping other windows network machines with ip address but not by hostnames.
I am able to connect to internet also.

Tried so far:

installed winbind as in [url]https://askubuntu.com/questions/23011/why-can-i-ping-via-ip-address-but-not-hostname[/url]
which worked for ubuntu but not here.

added  ‘wins’ where it says “hosts:” in /etc/nsswitch.conf
 but no use

someone suggested me to add entries in hosts file manually. But it is not practical to populate all the machines entries.

Any suggestions please.

0 Comments   [ + ] Show comments

Answers (1)

Posted by: c.castellari 3 years ago
Senior Purple Belt
You're using a wrong dns. WINS is deprecated and isn't useful for you

  • can you suggest any other alternative - ur00361883 3 years ago
    • The only one answer is: use the same DNS. Or a well configured DNS - c.castellari 3 years ago

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login


This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ