AXFRDDNS: support unix domain sockets in update-mode/transfer-mode#4304
Open
tomfitzhenry wants to merge 1 commit into
Open
AXFRDDNS: support unix domain sockets in update-mode/transfer-mode#4304tomfitzhenry wants to merge 1 commit into
tomfitzhenry wants to merge 1 commit into
Conversation
Unix domain sockets allow connecting via another program. Why not just have that other program listen on a localhost port? That's then exposed to all processes on the host.
TomOnTime
reviewed
May 18, 2026
Collaborator
TomOnTime
left a comment
There was a problem hiding this comment.
Looks good!
Would you please also add a call to providers.RegisterCredsMetadata()?
This is a new feature, which is covered in Step 4 of https://docs.dnscontrol.org/developer-info/writing-providers
You can see an example in #4297
Thanks!
P.S. If you wish to do that in a separate PR, please let me know and I'll approve this as-is.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
My usecase is doing AXFR/DDNS via DNS-over-TLS with PKCS11, and to a server that has a self-signed cert whose pubkey pin I want to verify. This could plausibly be natively added to dnscontrol, but it would be a fiddly amount of config in the AXFRDDNS provider.
Unix domain sockets allow connecting via another program, that already exposes lots of the above configuration (stunnel/ghostunnel).
Why not just have that other program listen on a localhost port? That's then exposed to all processes on the host. Unix domain sockets are restricted by file ACLs.