Added support for better DNS-specific error handling