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.
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)
Please log in to answer
Posted by:
c.castellari
6 years ago
You're using a wrong dns. WINS is deprecated and isn't useful for you
Comments:
-
can you suggest any other alternative - ur00361883 6 years ago
-
The only one answer is: use the same DNS. Or a well configured DNS - c.castellari 6 years ago