It turns out you can get video over DNS TXT
records.
I saw “we made a globally distributed DNS network for shits and giggles” at 38c3.
It can also be found on one of the presenter’s webpage.
The presenter of “A Deep Dive into DNS” mentioned that some people have used TXT
records to perform backups, so it was interesting to see that in action.
Obligitory bash
warning: I added the --sandbox
to sed and the “end of options” --
flag to the utilities that support it for security, but really, it depends on how much you trust mpv
and the people who gave the talk I suppose, so be careful.
dig +short TXT {0..92}.vid.demo.servfail.network | sed --sandbox -- 's/[" ]*//g' | base64 -d -- | mpv -- -
Checks I Should Have Done Before Posting
Sorry for the self-posting. I just wanted to share my post-hoc file checks since it was due-diligence I didn’t think of until after I shared.
TLDR: I redirected into a file and inspected it at least enough to say I received an mkv container with an h264 video and opus audio.
Caveats
Details
I ran the command from my post in a world-readable directory with
>mystery_video_file
substituted for| mpv -- -
and inspected the download withsudo --user=nobody -- file -- mystery_video_file
which output
I ran
rename --last -- '' '.mkv' mystery_video_file # the '' is the empty string delimited with apostrophes
and thensudo --user=nobody -- ffprobe -hide_banner -- mystery_video_file.mkv
which output
If you trust me and not the presenter for some inexplicable reason, the SHA-512 checksum for the video is “24345bd3ca8015c14a7d5d63d6b2a40f9d0f8c0307a65996226a496f121fa5ae934718cf58090f43ee67bc250b06804f23c73688cc871c15c1ba18d79b1a82a8”.