Skip to content

[nethax-probe]: Add DNS probe #115

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

Merged
merged 10 commits into from
Jul 8, 2025
Merged

[nethax-probe]: Add DNS probe #115

merged 10 commits into from
Jul 8, 2025

Conversation

inkel
Copy link
Contributor

@inkel inkel commented Jun 24, 2025

Description

This PR adds a new DNS kind probe that allows checking if resolving a domain name works.

Changes

  • Add DNSProbe type.
  • Add -type=dns flag option.

Testing

Added test suite.

Special Considerations

Note that there's a hack to test the context aware requisite of a probe, probably related with this issue.

Checklist

  • My changes are minimal and accurately solve an identified problem
  • I have added tests that prove my fix is effective or that my feature works
  • I have updated the documentation accordingly
  • My changes generate no new warnings

@inkel inkel self-assigned this Jun 24, 2025
@inkel
Copy link
Contributor Author

inkel commented Jun 30, 2025

🤔 the test is failing because CI is resolving example.com to something, which AFAIK shouldn't.

@inkel inkel force-pushed the inkel/probe/dns branch from f10f058 to 9b38f21 Compare July 8, 2025 14:49
inkel added 2 commits July 8, 2025 14:45
For some reason our CI (GitHub Actions) is resolving `example.com`
making this test fail.
@inkel inkel force-pushed the inkel/probe/dns branch from e714e2c to e298799 Compare July 8, 2025 17:55
@inkel inkel marked this pull request as ready for review July 8, 2025 17:56
@inkel inkel requested review from terraboops and a team as code owners July 8, 2025 17:56
@inkel inkel enabled auto-merge (squash) July 8, 2025 17:58
Copy link
Collaborator

@terraboops terraboops left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thank you!

@inkel inkel merged commit e8ff575 into main Jul 8, 2025
6 checks passed
@inkel inkel deleted the inkel/probe/dns branch July 8, 2025 20:22
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.

2 participants