title: Splunk (perl) REGEX for DNS
body: <p>Im trying to create a regex to pull out the CNAME for DNS quires in splunk. I can get the first DNS name (everything after "CNAME-record for " and before ( "=" ), but i cant find an expression to get the next DNS name after the equals. </p>
  
  <pre><code>Mar  1 09:16:43 123.dns.local Mar  1 09:16:43 dns-01-1 SDNS: -&gt; Answer: CNAME-record for dl.wu.ms.edgesuite.net = a26.ms.akamai.net
  Mar  1 09:16:43 123.dns.local Mar  1 09:16:43 dns-01-1 SDNS: -&gt; Answer: CNAME-record for dom.dl.wu.akadns.net = dl.wu.ms.edgesuite.net
  Mar  1 09:16:43 123.dns.local Mar  1 09:16:43 dns-01-1 SDNS: -&gt; Answer: CNAME-record for main.dl.wu.akadns.net = dom.dl.wu.akadns.net
  Mar  1 09:16:43 123.dns.local Mar  1 09:16:43 dns-01-1 SDNS: -&gt; Answer: CNAME-record for download.windowsupdate.nsatc.net = main.dl.wu.akadns.net
  Mar  1 09:16:43 123.dns.local Mar  1 09:16:43 dns-01-1 SDNS: -&gt; Answer: CNAME-record for download.windowsupdate.com = download.windowsupdate.nsatc.net
  Mar  1 09:16:43 123.dns.local Mar  1 09:16:43 dns-01-1 SDNS: -&gt; Answer: CNAME-record for dl.wu.ms.edgesuite.net = a26.ms.akamai.net
  </code></pre>