Hi there,
I have just spent some time trying to setup a dns entry for domain*.com and it did not work as documented.
http://wiki.mikrotik.com/wiki/Manual:IP/DNS#Static_DNS_Entries
according to the docs, if the domain name is not valid, it is automatically treated as a regexp.
domain.*\.com
^domain.*\.com$
domain(.*)\.com
[d]omain(.*)\.com
… none of these would work, or even receive the automatic R flag
After some trial and error, i found out that it absolutely has to start with a dot (.)
So this is what worked for me :
/ip dns static > add name="domain.com" address="192.168.0.11" ttl="10m"
/ip dns static > add name=".omain.*\\.com" address="192.168.0.11" ttl="10m"
The first row is i believe optional, but it has the nice feature to it of being shown in the reverse lookup.
The second is the important, one has to use a rule starting with the dot, hence “.omain.*.com”
And now the question, is it a bug or a feature ?
Have i done anything wrong ? Is there a bugtracker for similar problems maybe ?
Another strange thing is that while “.omain.*\.com” received an R flag in both console and winbox, “domain.com” has no flag in winbox, but R flag in console.
Oh, and im using rb750gl with routeros 5.11