I have been using Microtik as my router and DHCP server for about a month now. So far so good except I am running into 1 issue. I used to be able to ping a device by its hostname to get it’s IP address. Like ping desktop1, S2 etc. Now when I do that I get a name or service not fond or an ipv6 response? Anyway I can have the ipv4 address returned when I try to lookup devices on my network?
If you wanna ping a Windows from a Windows, use ping -4 to get the normal IPv4 address,
They discover eachother, with no need for the DNS server
If you want to be able to ping other devices using the DNS Server, then there is the problem - the DNS server in the Mikrotik is not updates automatically from DHCP. Devices cannot register on it.
So you need a script to update DNS from the DHCP lease table.
I did that once, but found out i didn’t need it. Windows can find so much by itself these days, and so many things announce themselves by verious means of subnet broadcasting
I will look into it a bit more. Most of the machines I have are running Mint Linux
How do you have DNS configured? You can add a script on the Mikrotik to create a matching DNS entry for any DHCP lease issued, using the domain you’re configured on the DHCP Network, and the hostname provided during the DHCP request. Of course that’s not any good if you’re not using the Mikrotik as your DNS server. It also relies on the device providing it’s host name when it get’s it’s DHCP address.
If you want to have a go then a google for “Mikrotik DHCP to DNS script” will bring up some stuff.