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

Use the nameserver of the zone for local DNS validation #43

Merged
merged 4 commits into from
Feb 13, 2024
Merged

Use the nameserver of the zone for local DNS validation #43

merged 4 commits into from
Feb 13, 2024

Conversation

robbinjanssen
Copy link
Contributor

@robbinjanssen robbinjanssen commented Feb 13, 2024

This PR adds a dependency to spatie/dns and uses it to validate the TXT DNS records in the LocalChallengeTest.

Instead of using the system's default DNS resolver, it tries to fetch the actual nameserver used by the zone. If for some reason it cannot be found, then Google Public DNS is used. This approach will omit local caching issues.

Fixes #41

@robbinjanssen robbinjanssen changed the title Use Spatie/DNS for local DNS validation Use the nameserver of the zone for local DNS validation Feb 13, 2024
@RogierW RogierW merged commit cfa60a2 into RogierW:master Feb 13, 2024
2 checks passed
@RogierW
Copy link
Owner

RogierW commented Feb 13, 2024

Thank you for your contribution, much appreciated!

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.

Fix DNS local challenge to use the nameserver of the zone
2 participants