Seems such a simple question or problem, but I can’t get it right for a few days and have been browsing for solutions with no result so far.
Problem:
I have inserted a static DNS entry to access my NAS which is located on the LAN. I can’t ping the NAS name from client but IP works fine. I CAN ping and resolve the NAS name on the mikrotik terminal (RB751U-2HnD, ROS 6.5).
Client get its network settings by DHCP from the Mikrotik. I have double-checked the settings and look fine to me. If required, I can post it here. Browsing on the internet works fine btw.
In Winbox under IP → DNS ensure that Allow Remote Request Box is checked, that should be the first step. Then under IP → DHCP Server → Networks and the configurations that the DNS server is set to the IP of the router board, also specify a Domain suffix (eg Home.local). Then enter in your DNS entry eg nasgear.home.local
Refresh the client network to ensure correct DHCP information and then run cmd followed by “nslookup nasgear”.
The DNS suffix will be automatically added by your computer when no DNS suffix is specified and stops your computer from querying actual websites such as nasgear.com
Thanks for the info. I have tried those settings and still not working. “Allow remote requests” and IP of routerboard as DNS server in DHCP Server → Networks was already set before, except for the domain suffix. But it didn’t succeed…
It’s weird, because I can resolve the static DNS entries in a terminal to the Mikrotik, but it doesn’t work from a client (Client has the Mikrotik as the only DNS Server).
Or is it perhaps the firewall which is blocking DNS requests? I haven’t set any firewall rules, except from default settings…
The DHCP client configurations will need to be updated by restarting the client computer. Also for a windows computer to accept a dns name it needs to be a fully qualified domain name i.e ( nasgear.home.local), the dns suffix is to ensure that you will be only required to type nasgear for the computers on the same dns suffix.
The DHCP client configurations will need to be updated by restarting the client computer. Also for a windows computer to accept a dns name it needs to be a fully qualified domain name i.e ( nasgear.home.local), the dns suffix is to ensure that you will be only required to type nasgear for the computers on the same dns suffix.
I did some further testing and apparently I could contact the nasgear / NAS by name from my ipad, so resolving DNS do work from a client.
The domain suffix was already set as suggested by CTrain (e.g. home.local) but resolving dns names didn’t work cause I set the static names wrong (just the computername e.g. nasgear). The solution was to set the static DNS name with the domain suffix (e.g. nasgear.home.local).