unable to ping windows machines with hostname

General support questions
Post Reply
uday1kiran
Posts: 2
Joined: 2018/08/08 09:45:14

unable to ping windows machines with hostname

Post by uday1kiran » 2018/08/09 01:34:21

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 https://askubuntu.com/questions/23011/w ... t-hostname
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.

hunter86_bg
Posts: 2019
Joined: 2015/02/17 15:14:33
Location: Bulgaria
Contact:

Re: unable to ping windows machines with hostname

Post by hunter86_bg » 2018/08/11 19:44:18

Could you provide the exact command , error message and the FQDN of the windows machines?
Also provide the output of

Code: Select all

cat /etc.resolv.conf

uday1kiran
Posts: 2
Joined: 2018/08/08 09:45:14

Re: unable to ping windows machines with hostname

Post by uday1kiran » 2019/12/23 11:50:29

[admin@centos-test1 ~]$ cat /etc/resolv.conf
# Generated by NetworkManager
nameserver 85.93.5.142
nameserver 8.8.8.8
nameserver 8.8.4.4

User avatar
Errosion
Posts: 43
Joined: 2014/12/03 19:58:02

Re: unable to ping windows machines with hostname

Post by Errosion » 2019/12/23 14:53:36

To look up a hostname, you need some kind of resolver.

Either DNS or a local file or WINS server if you wish to use that.

Your DNS settings are using google for your DNS. Google will not have your local machines name to resolve. So you need to do it another way.

So either you need a local DNS server to resolve your hostnames. Or you need to define them manually in /etc/hosts.

I'll admit, I am not familiar with WINS, but suspect that you'll need to set up a WINS server if you want to use that instead.

Post Reply