Expand description
Support for handling DNS resource records for dialing by NodeId
.
Dialing by NodeId
is supported by iroh nodes publishing Pkarr records to DNS
servers or the Mainline DHT. This module supports creating and parsing these records.
DNS records are published under the following names:
_iroh.<z32-node-id>.<origin-domain> TXT
-
_iroh
is the record name as defined byIROH_TXT_NAME
. -
<origin-domain>
is the domain name of the publishing DNS server,N0_DNS_NODE_ORIGIN_PROD
is the server operated by number0 for production.N0_DNS_NODE_ORIGIN_STAGING
is the server operated by number0 for testing. -
TXT
is the DNS record type.
The returned TXT records must contain a string value of the form key=value
as defined
in RFC1464. The following attributes are defined:
-
relay=<url>
: The homeRelayUrl
of this node. -
addr=<addr> <addr>
: A space-separated list of sockets addresses for this iroh node. Each address is an IPv4 or IPv6 address with a port.
Structs§
- Node
Info Deprecated - Information about the iroh node contained in an
IROH_TXT_NAME
TXT resource record. - TxtAttrs
Deprecated - Attributes parsed from
IROH_TXT_NAME
TXT records.
Enums§
- Iroh
Attr Deprecated - The attributes supported by iroh for
IROH_TXT_NAME
DNS resource records.
Constants§
- IROH_
TXT_ NAME Deprecated - The DNS name for the iroh TXT record.