>name ( domain -- byte-array )


Vocabulary
dns

Inputs
domainan object


Outputs
byte-arrayan object


Definition


: >name ( domain -- byte-array )
dup "." =
[ drop B{ 0 } ] [ "." split [ >n/label ] map concat ] if ;