title: Google TXT record verification with Terraform on Digital Ocean
body: <p>I am trying to verify I couple websites I host under an domain I own. Google tells me</p>
  <blockquote>
  <ol>
  <li><p>Add the TXT record below to the DNS configuration for cescoferraro.xyz.</p>
  <p>google-site-verification=RANDOM_HASH</p>
  </li>
  </ol>
  </blockquote>
  <p>What I am trying:</p>
  <pre><code>resource &quot;digitalocean_domain&quot; &quot;domain&quot; {
    name = &quot;cescoferraro.xyz&quot;
    ip_address = &quot;${digitalocean_droplet.master.ipv4_address}&quot;
  }
  
  resource &quot;digitalocean_record&quot; &quot;googleconfirmation&quot; {
      domain = &quot;${digitalocean_domain.domain.name}&quot;
      type = &quot;TXT&quot;
      name = &quot;google-site-verification&quot;
      value = &quot;RANDOM_HASH&quot;
  }
  
  resource &quot;digitalocean_record&quot; &quot;googleconfirmationnnn&quot; {
      domain = &quot;${digitalocean_domain.domain.name}&quot;
      type = &quot;TXT&quot;
      name = &quot;what&quot;
      value = &quot;google-site-verification=RANDOM_HASH&quot;
  
  }
  resource &quot;digitalocean_record&quot; &quot;googleconfirmationnssnn&quot; {
      domain = &quot;${digitalocean_domain.domain.name}&quot;
      type = &quot;TXT&quot;
      name = &quot;@&quot;
      value = &quot;google-site-verification=RANDOM_HASH&quot;
  }
  </code></pre>
  <p>I have not been able to verify my domain yet, might be due to DNS cache. I know this things take a while, but whats is the right way?</p>