This article will discuss the method a DNS monitor uses to match an expected result against text records.
Domain Name System (DNS) monitors check DNS servers for the correct resolution of a hostname. DNS monitors query one or more DNS servers (local or remote) for a given Resource Record and verify its response. When monitoring against a text record (TXT), the result is expected to be an exact match of the string(s) specified in the expected result field of the monitor. For example, google.com returns "v=spf1 include:_spf.google.com ip4:220.127.116.11/31 ip4:18.104.22.168/31 ~all". Any expected result that is not an exact match of this record will return a 9501 Not Matched error in Cloud Monitor. Please note that substrings and wildcards are not supported in the expected result field, only an exact match.