fierce icon indicating copy to clipboard operation
fierce copied to clipboard

Fix Deprecation Warning: resolver.query()

Open agungichiruki opened this issue 1 year ago • 1 comments

Summary of Changes:

  • Replaced deprecated dns.resolver.Resolver.query() method with the updated dns.resolver.Resolver.resolve() method introduced in dnspython 2.0.0.
  • Ensures compatibility with the latest library version and prevents DeprecationWarning.
  • Updated all DNS lookup calls to use the new resolve() API.

Reason for Changes:

  • query() is deprecated and may no longer function in future versions of dnspython.
  • resolve() provides enhanced functionality and better alignment with DNS standards.

This update keeps the codebase up-to-date with modern practices and avoids potential issues caused by deprecated methods.

agungichiruki avatar Dec 31 '24 13:12 agungichiruki

Before Fixing: before

After Fixing: after

agungichiruki avatar Dec 31 '24 13:12 agungichiruki