📦 RDATA field encoder/decoder in multicast DNS TXT records

samandar

Samandar Ravshanov

Posted on July 28, 2019

📦 RDATA field encoder/decoder  in multicast DNS TXT records
from functorflow import ff

data = {'zero': 0, 'one': 1}
r = ff('dns-txt').encode(data)
print(r)
# {'type': 'Buffer', 'data': [6, 122,..]}

r = ff('dns-txt').decode(r)
print(r) # {'zero': '0', 'one': '1'}
Enter fullscreen mode Exit fullscreen mode
💖 💪 🙅 🚩
samandar
Samandar Ravshanov

Posted on July 28, 2019

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related