Round Robin DNS for local host

Hi all,

is it possibile to implement a Round Robin DNS for local hostname in RouterOS? I have a local hostname that could be resolved with may LAN IPs, to give an example:

example.lan 10.10.0.1
example.lan 10.10.0.2
example.lan 10.10.0.3

I’m expecting that when a client performs a dns lookup through the Mikrotik it gets one of this IP in a round robin order.
Is it also possibile to test if an IP is alive (respond to an ICMP request like ping) before returning it to the client?

Many thanks for the support.

When single host has multiple A records (multiple IP addresses), then usual DNS servers will return all of them in query response, only order can be changed on subsequent queries. How are then used those multiple addresses is entirely up to client (both resolver library and application), some will only use first address on the list, some will try other addresses if connection fails when using first one, …).

Quick test says that RouterOS returns all defined addresses, so client is free to choose. And in case it uses the first one, you’re still in luck, because RouterOS changes order of addresses in each response.

As for testing what’s alive, that could be done using script, either a scheduled one where you’d ping addresses yourself, or you can use Tools->Netwatch, which would be simpler.

Many thanks for the answers and for having done some test on your router