Test, validate and match regular expressions
Parses lines from dig or nslookup DNS query output, capturing four groups: the domain name (allowing wildcard *, dots, hyphens, underscores), the TTL number, the record type (A, AAAA, MX, CNAME, etc. after the IN class), and the record value. The gm flags allow processing full zone files or dig response dumps line by line. Useful for extracting DNS records from tool output, zone file analysis, or log parsing.