Can not ping name server in Ubuntu

In Ubuntu if you can not ping Host Name but can ping IP, you’re stuck on a broken MS network like this, reconfigure your linux multicast DNS to use a different domain like .alocal.

Solution:

1. Open the /etc/avahi/avahi-daemon.conf file

2. Add the domain-name=.alocal under the [server]. The default value is .local

3. Restart the daemon service