static Names with DNS

Hello.
I have a question about the setting / default in
ip/dns/static

here, in addition to the host IP address, there is also the entry “router.lan”. Unfortunately, this doesn’t work if I enter this name in the browser line and the web console is called up.

Now I have more devices that only offer a web console via the IP address, so I thought I could enter a name for these devices there so that I don’t always have to enter the IP.

How does this work exactly?

Thanks
Frank

  1. via dhcp-server you have to send the IP of your router in LAN
    /ip dhcp-server network set dns-server=192.168.88.1 domain=name.local

  2. open port for DNS in firewall
    /ip/firewall/filter add action=accept protocol=udp port=53

  3. allow remote requests
    /ip dns set allow-remote-requests=yes

  4. add static entry
    /ip dns static add address=192.168.88.2 name=switch.local type=A

I agree, except for this part:

Apart from a missing chain, you don’t want to provide access to your DNS server from the internet.
And there is a default rule in place that implicitely provides access to the router from LAN:

add chain=input action=drop in-interface-list=!LAN comment="defconf: drop all not coming from LAN"