Routerboard DNS Static rules

I am trying to setup some static DNS values for my local domain.
According to the documentation,

The list is ordered and checked from top to bottom. Regular expressions are checked first, then the plain records.

So, I think I should be able to do:
example.mydomain.com A xx.yy.zz.aa
mydomain.com A xx.yy.zz.aa [Match Subdomains x]

If I want to resolve example.mydomain.com, the first entry should be served.
If I want to resolve somethingelse.mydomain.com, the second entry is served.

What happens, is whenever Match subdomains is enabled, the entry will always be served.
So resolving example.mydomain.com will resolve as the second entry.
So, the list is not checked from top to bottom.

Do you guys know a workaround/solution for this?

1 Like

you can make example.mydomain.com a regular expression so it is tested earlier.

example\.mydomain\.com

Perhaps the match subdomains option turns it into a regex in the background.

1 Like

This is a bug. If the list is ordered, it should stop checking the remaining records after first match. Otherwise, there is no any sense in ordering. I've reported about it almost a year ago, nothing was fixed. And reminded about it a couple of days ago.
Please, report it to support to speed this up.

1 Like

Created a ticket in their jira, thanks for your feedback!

1 Like

Did you receive any response from them?

Yes I did.
It was along the lines of
„Thank you for reporting it, we are aware of the problem and it is indeed a bug and it will be fixed in a future version of routeros, but we can not say if in the next patch or some later“