Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Deprecation Warning: resolver.query() #46

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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