Skip to content

Configurable HumanReadableName resolver#195

Open
tnull wants to merge 3 commits intolightningdevkit:mainfrom
tnull:2026-04-configurable-dns-resolver
Open

Configurable HumanReadableName resolver#195
tnull wants to merge 3 commits intolightningdevkit:mainfrom
tnull:2026-04-configurable-dns-resolver

Conversation

@tnull
Copy link
Copy Markdown
Collaborator

@tnull tnull commented Apr 21, 2026

Bump LDK Node and add configurable HRN resolution.

tnull added 2 commits April 21, 2026 12:39
Picks up support for resolving BIP 353 Human-Readable Names
(ldk-node PR #630), which adds `Config::hrn_config` and the
`HumanReadableNamesConfig` / `HRNResolverConfig` types.

Co-Authored-By: HAL 9000
Exposes LDK Node's new `HumanReadableNamesConfig` via a new `[hrn]`
section in `config.toml`. Users can pick between resolving BIP 353
names locally over DNS (`mode = "dns"`, the default) or via bLIP-32
(`mode = "blip32"`), and, when using DNS, optionally run as an HRN
resolution service for the rest of the network.

Defaults match LDK Node's: resolve via DNS against `8.8.8.8:53` with
the resolution service disabled (enabling it requires the node to be
announceable so others can route resolution requests to us).

Co-Authored-By: HAL 9000
@ldk-reviews-bot
Copy link
Copy Markdown

ldk-reviews-bot commented Apr 21, 2026

👋 Thanks for assigning @benthecarman as a reviewer!
I'll wait for their review and will help manage the review process.
Once they submit their review, I'll check if a second reviewer would be helpful.

Copy link
Copy Markdown
Collaborator

@benthecarman benthecarman left a comment

Choose a reason for hiding this comment

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

would be nice to one day add http support as well but mostly looks good!

Comment thread ldk-server/src/util/config.rs Outdated
Comment thread ldk-server/src/util/config.rs Outdated
Comment thread ldk-server/src/util/config.rs Outdated
Addresses review feedback on the initial HRN configuration commit:

- Construct `HRNResolverConfig::Dns` explicitly inside the DNS arm of
  the mode match rather than relying on `HumanReadableNamesConfig`'s
  default being DNS. If LDK Node's default ever changes (e.g., to
  accommodate new resolver modes), the DNS-specific settings are still
  applied when the user explicitly selects DNS mode instead of being
  silently dropped.
- Reject configs that set `dns_server_address` or
  `enable_resolution_service` under `mode = "blip32"`, since these
  options would otherwise be silently ignored and leave users thinking
  they took effect.
- Fall back to port 53 when a DNS server address is given without an
  explicit port (e.g., `dns_server_address = "1.1.1.1"` is treated as
  `"1.1.1.1:53"`), matching the convention for DNS.

Generated with the assistance of AI (Claude).
@tnull
Copy link
Copy Markdown
Collaborator Author

tnull commented Apr 24, 2026

Addressed pending feedback.

@tnull tnull requested a review from benthecarman April 24, 2026 10:45
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.

3 participants