Skip to content

Conversation

@agungichiruki
Copy link

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
Copy link
Author

Before Fixing:
before

After Fixing:
after

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant