I’m also getting the same error:
“dns_get_record(): DNS Query failed in /sites/bonabonatoys.com/www/wp-content/plugins/wordfence/lib/wfUtils.php on line 1164”.
This started to happen since the latest update of wordfence (6.1.8) and only at one of my sites.