Improved logging for DNS and XML-RPC