I configured Mikrotik to be the company’s DNS server. We use Microsoft Active Directory with DNS installed with the name “contabil.local”
As per the mikrotik example
" add regexp=“.\.example\.com$" forward-to=10.0.0.1 would mine look like this? .\.contabil\.local$” forward-to=10.0.0.1 ?
Would I change the “.com” to “.local”?
Since release 7.6 you can use the match-subdomain parameter:
/ip dns static
add forward-to=10.0.0.1 match-subdomain=yes name=contabil.local type=FWD
In comparison to the regexp example, this example will forward queries for the domain itself (contabil.local) as well.
Additionally, in case you want to forward reverse lookups:
/ip dns static
add forward-to=10.0.0.1 match-subdomain=yes name=0.0.10.in-addr.arpa type=FWD