Domain verification through DNS
A DNS record can show that a certificate applicant controls a domain.
For its DNS-01 challenge, Let's Encrypt gives the applicant a token. The applicant uses it with their ACME account key to calculate a value and publishes the result in a TXT record. For example.org, the certificate authority looks for that value at _acme-challenge.example.org.
Google Search Console uses a similar test before it gives someone access to a domain's search reports. Google's verification guide
Primary source: https://letsencrypt.org/docs/challenge-types/