Regexp in DNS Static

Hi,

In my IP - DNS - Static I have 4 records

dns.nextdns.io 111.111.111.111
dns1.nextdns.io 111.111.111.111
dns.nextdns.io 222.222.222.222
dns2.nextdns.io 222.222.222.222

as you can see, first and a second pair have matching IP addresses
I’m thinking about combining every pair into one record and I’m looking for your advice with Regex on Mikrotik

should it be like this? *

^dns[0-2]?.nextdns.io$ 111.111.111.111
^dns[0-2]?.nextdns.io$ 222.222.222.222

or may be like this?

^dns.nextdns.io$|^dns1.nextdns.io$ 111.111.111.111
^dns.nextdns.io$|^dns2.nextdns.io$ 222.222.222.222

  • updated for a better match

Will be answering for myself :slight_smile:

Both options are valid and working fine