As far as I know Dynadot has now blocked non API drop catching. That script probably used to work, but now DD bans IPs that do multiple lookups within few seconds.
So after a few seconds it will yield false results. At least that is what happened to my non API dynadot drop catching script. I now use software that utilises the DD API instead. All you need for that to work is the DD bulk payment plan.