Forum Discussion
Tguadagno
Jul 01, 2025Copper Contributor
resolve-dnsname returns odd data
hi, appreciate your time. I am working with resolve-dnsname and I am seeing some odd results. for example: resolve-dnsname -server 10.0.20.5 -name "60.16.40.194.in-addr.arpa" -NoHostsFile -type p...
Vern_Anderson
Jul 02, 2025Copper Contributor
On the machine where you got this output, try flushing DNS cache "ipconfig /fushdns". Then run your code again and see if you get the same results. Most likely your DNS cache just has more than one record cached and you can easily purge stale records. Your DNS Server doesn't necessarily have to have a PTR record for your DNS Client to build its own PTR in cache.
- TguadagnoJul 03, 2025Copper Contributor
Sorry, I forgot to state this initially...i am using the "NoHostsFile -dnsonly" switches...so there should be no caching involved (and no hostfile either)