iroh_net::dns

Module node_info

Source
👎Deprecated: This crate has been renamed from ‘iroh-net’ to ‘iroh’, please use the new crate
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

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 home RelayUrl 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§

NodeInfoDeprecated
Information about the iroh node contained in an IROH_TXT_NAME TXT resource record.
TxtAttrsDeprecated
Attributes parsed from IROH_TXT_NAME TXT records.

Enums§

IrohAttrDeprecated
The attributes supported by iroh for IROH_TXT_NAME DNS resource records.

Constants§

IROH_TXT_NAMEDeprecated
The DNS name for the iroh TXT record.

Functions§

from_z32Deprecated
Parses a NodeId from [z-base-32] encoding.
to_z32Deprecated
Encodes a NodeId in [z-base-32] encoding.