windows server 2012 lifted Active Directory and created a domain avk.local. The full computer name became server.avk.local ip computer 192.168.137.91

The client machine (running Windows 7) has registered the DNS 192.168.137.91 made ping avk.local (packet transfer was successful)

But when I logged into ubuntu and entered ping avk.local, he did not find the domain (the computer running Ubuntu logs into the network with wi-fi, but in the DNS network settings 192.168.137.91 is set)

What am I doing wrong?

The only thing if you run on Ubuntu (here you can see, but why not ping):

$ nslookup server Server: 127.0.1.1 Address: 127.0.1.1#53 Name: server.avk.local Address: 192.168.137.91 

Ping itself works on the server computer:

 $ ping server PING server.avk.local (192.168.137.91) 56(84) bytes of data. 64 bytes from 192.168.137.91: icmp_seq=1 ttl=128 time=1.01 ms 64 bytes from 192.168.137.91: icmp_seq=2 ttl=128 time=3.42 ms 

But as a client machine (running Windows) does not work

 $ ping server.avk.local ping: unknown host server.avk.local $ ping avk.local ping: unknown host avk.local 
  • Because avahi most likely works on avahi . Read about ru.wikipedia.org/wiki/Zeroconf . If I were you, I would change local to work , home or something. - don Rumata

1 answer 1

Open the file /etc/nsswitch.conf and look for a line in it that is responsible for the hosts. In openSUSE 11.3, it looks like this:

 hosts: files mdns4_minimal [NOTFOUND=return] dns 

In Ubuntu 10.04, it looks like this:

 hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4 

All we need to do is get rid of the option [NOTFOUND = return], putting the line in the form:

  • openSUSE 11.3

     hosts: files mdns4_minimal dns 
  • Ubuntu 10.04

     hosts: files mdns4_minimal dns mdns4 

Restart avahi-daemon.

https://habrahabr.ru/post/103009/