Why do I get an error when pinging a windows computer by HOSTNAME from Linux Unbutu 20.04?

Posted on

A server stack is the collection of software that forms the operational infrastructure on a given machine. In a computing context, a stack is an ordered pile. A server stack is one type of solution stack — an ordered selection of software that makes it possible to complete a particular task. Like in this post about Why do I get an error when pinging a windows computer by HOSTNAME from Linux Unbutu 20.04? was one problem in server stack that need for a solution. Below are some tips in manage your windows server when you find problem about windows, ping, ubuntu-20.04, , .

I have a Hyper-V Linx Ubuntu 20.04 VM
I’m trying to ping a windows box in my domain via it’s HOSTHAME.

I’ve followed some threads with this suggested fix:

sudo apt-get install libnss-winbind

I then updated /etc/nsswitch.conf to contain the following line:

hosts:          files dns wins

Now when I attempt to ping the windows machine by HOSTNAME, I get the following error:

ping SOMESERVER
ping:SOMESERVER: Name or Service not found

What do I need to do in order to get this to work?
Are there additional configuration changes that I need to make?

Check your DNS servers / your DNS Suffix. You have have to ping the FQDN of the machine

Leave a Reply

Your email address will not be published. Required fields are marked *