DNS does not resolve local hostnames.

Hello!
My RB450Gx4 seems to completely ignore local network DNS names: I can’t connect to any of my devices using SSH, RDP or SMB with their hostnames.

Nslookup from windows machine results in this:

Windows:

C:\>nslookup zp-nb
Server:  homebase
Address:  192.168.1.1

*** homebase can't find zp-nb: Non-existent domain

Linux:

[zp@zp-nb ~]$ nslookup zp-pc
Server:		192.168.1.1
Address:	192.168.1.1#53

** server can't find zp-pc: NXDOMAIN

Windows:

C:\>ipconfig /all
   Host Name . . . . . . . . . . . . : ZP-PC
   Primary Dns Suffix  . . . . . . . :
   Node Type . . . . . . . . . . . . : Hybrid
   IP Routing Enabled. . . . . . . . : No
   WINS Proxy Enabled. . . . . . . . : No

Ethernet adapter Ethernet 3:

   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Realtek PCIe GbE Family Controller #2
   Physical Address. . . . . . . . . : 00-D8-61-54-D7-BC
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes
   Link-local IPv6 Address . . . . . : fe80::4da4:5a7b:6cdd:a179%17(Preferred)
   IPv4 Address. . . . . . . . . . . : 192.168.1.10(Preferred)
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Lease Obtained. . . . . . . . . . : понедельник, 16 марта 2020 г. 00:14:49
   Lease Expires . . . . . . . . . . : среда, 18 марта 2020 г. 00:21:55
   Default Gateway . . . . . . . . . : 192.168.1.1
   DHCP Server . . . . . . . . . . . : 192.168.1.1
   DHCPv6 IAID . . . . . . . . . . . : 369154145
   DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-24-48-8B-60-1C-1B-0D-61-61-13
   DNS Servers . . . . . . . . . . . : 192.168.1.1
   Primary WINS Server . . . . . . . : 192.168.1.1
   NetBIOS over Tcpip. . . . . . . . : Enabled

Linux:

wlp4s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.1.12  netmask 255.255.255.0  broadcast 192.168.1.255
        inet6 fe80::e44f:644f:af34:6e32  prefixlen 64  scopeid 0x20<link>
        ether dc:85:de:86:2b:d5  txqueuelen 1000  (Ethernet)
        RX packets 52890  bytes 24371839 (23.2 MiB)
        RX errors 0  dropped 1116  overruns 0  frame 0
        TX packets 53797  bytes 7048403 (6.7 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0



[zp@zp-nb ~]$ cat /etc/resolv.conf
# Generated by NetworkManager
nameserver 192.168.1.1

By default, ROS DNS server doesn’t ingest host names from DHCP server. If you want this to happen, you have to create a ROS script which is then run on DHCP lease etc. Search through this forum, there are a few examples to be found.