Why You Should Use DNS for WordPress Site Verification
To setup your WordPress site with Google Search Console, Bing, and Yandex, you have to first verify your site. A lot of times I see people using the META tag verification method simply because it is the simplest method. However, if you care about performance, and ensuring your site doesn’t lose its verification you really should be doing it via DNS. Follow the steps below on how to change your site over to DNS verification. The Problem with Yoast SEO Site Verification
Typically when people set up their site with Google Search Console, Bing, or Yandex they will go with the easiest verification route, and that is to use the Yoast SEO webmaster’s tools section.
The Yoast SEO plugin allows you to easily input the verification meta tags. However, the problem with this is that this inserts the code into the header of your WordPress site. This is really unnecessary code as it is only needed once (and for periodic checks from Google Search Console, Bing, and Yandex) to confirm your site. You don’t want this code just sitting around forever, as it is a waste. And while it is only 3 lines of code, everything adds up when it comes to performance. It is good to think about these
Source: https://managewp.org/articles/15648/why-you-should-use-dns-for-wordpress-site-verification
source https://williechiu40.wordpress.com/2017/07/13/why-you-should-use-dns-for-wordpress-site-verification/