Every linux based host has \00 in their hostname.
Windows Machines doesnt have it.
ros code
[admin@kari-crs] > /ip dhcp-server lease print Flags: X - disabled, R - radius, D - dynamic, B - blocked # ADDRESS MAC-ADDRESS HOST-NAME SERVER RATE-LIMIT STATUS 0 192.168.1.2 60:A4:4C:8E:9C:90 dhcp-server1 bound 1 192.168.1.10 00:11:32:28:9D:E7 Syno\00 dhcp-server1 bound 2 192.168.1.16 00:90:A9:69:B3:40 WDTVLive\00 dhcp-server1 bound 3 192.168.1.17 00:E0:36:EF:EE:D6 dhcp-server1 4 D 192.168.1.251 60:45:BD:EC:54:98 Surface-RT dhcp-server1 bound 5 D 192.168.1.250 EC:F3:5B:50:EA:C4 Etzi-Lumia dhcp-server1 bound 6 D 192.168.1.248 84:3A:4B:47:BD:68 MSA-4000237 dhcp-server1 bound 7 192.168.1.15 00:02:9B:CA:88:93 dhcp-server1 boundIn a result, every Static DNS (for any Linux/BSD host), generated by the script has an whitespace between Hostname and domain, so they wont resolve.
Of course I could trim that "\00" in the script, but I would like to understand why it does that in a first place.