Using new DNS library because we need to bypass DNS cache
Corrected key path for agent
Fixed public key path
Error handling