Suggestion - use the options-set API to disable the DNS cache, then re-enable by toggling the value of the dns.cache.enable option. I'd also put a pause between the two changes.
Hope this helps.
Bob Greenwald
Senior Systems Engineer | cStor
NCIE DP/SAN, NCSE Specialist, NCSIE