Skip to main content

Module txt

Module txt 

Source
Expand description

TXT-based SCION address resolution (TSAR).

TSAR encodes SCION addresses in DNS TXT records to support dual-stack resolution. The record format is defined as:

scion-txt     = "scion=" version separator address-list
version       = "v1"          ; Versioning for future extensibility
separator     = ";"
address-list  = address *( "," address )
address       = "[" isd-as "," host "]"
isd-as        = 1*DIGIT "-" 1*HEXDIG ":" 1*HEXDIG ":" 1*HEXDIG
host          = ipv4-address / ipv6-address
ipv4-address  = 1*3DIGIT "." 1*3DIGIT "." 1*3DIGIT "." 1*3DIGIT
ipv6-address  = <RFC5952 compliant string>

Example records:

example.com. IN TXT "scion=v1;[19-ff00:0:110,192.0.2.1]"
example.com. IN TXT "scion=v1;[19-ff00:0:110,2001:db8::1]"
example.com. IN TXT "scion=v1;[19-ff00:0:110,192.0.2.1],[19-ff00:0:111,203.0.113.5]"

Structs§

ScionTxtDnsResolver
Resolver that interprets TXT records using the TSAR format.

Enums§

TxtResolverError
Errors returned while constructing a TXT resolver.