>> There's no regex machinery available. > > Then I was misled by > --naptr-record=<name>,<order>,<preference>,<flags>,<service>,<regexp>[,<replacement>] The regexp is part of the NAPTR record and processing occurs in the client, not the DNS server.