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.
unable to ping windows machines with hostname
-
- Posts: 2019
- Joined: 2015/02/17 15:14:33
- Location: Bulgaria
- Contact:
Re: unable to ping windows machines with hostname
Could you provide the exact command , error message and the FQDN of the windows machines?
Also provide the output of
Also provide the output of
Code: Select all
cat /etc.resolv.conf
-
- Posts: 2
- Joined: 2018/08/08 09:45:14
Re: unable to ping windows machines with hostname
[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
# Generated by NetworkManager
nameserver 85.93.5.142
nameserver 8.8.8.8
nameserver 8.8.4.4
Re: unable to ping windows machines with hostname
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.
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.