I'd like our (unrooted) Android phones to be able to make use of the local GNSS NTP servers when connected to LAN. The phones don't make use of DHCP option 42, and don't have any way of setting the NTP servers manually (without rooting them) so I have to override time.google.com to point to my servers.
I don't want other NTP clients that use reverse DNS lookup to show the servers as time.google.com, so I used a time\.google\.com regex instead of a plaintext entry, as this way it doesn't create the reverse DNS entries:
/ip dns static
add address=192.168.20.2 comment="NTP overrides" regexp="time\\.google\\.com" type=A
add address=192.168.20.3 regexp="time\\.google\\.com" type=A
add address=::ffff:192.168.20.2 regexp="time\\.google\\.com" type=AAAA
add address=::ffff:192.168.20.3 regexp="time\\.google\\.com" type=AAAA
However, when queried:
nslookup time.google.com
Server: router.home.arpa
Address: 192.168.1.1
Non-authoritative answer:
Name: time.google.com
Addresses: ::ffff:192.168.20.2
192.168.20.2
So it seems that with regex, only the first A and AAAA entries are matched. For non-regex entries this works properly and matches all addresses. Is this a RouterOS limitation? I'm on version 7.23.2.
I haven't found anything specifically about this limitation in DNS | RouterOS Manual .
It would be nice if a "Don't create reverse DNS entry for this entry" checkbox was added. Or maybe there already is a way to do this that I just haven't found yet?