I had a crazy idea, and wanted to be able to store a website within the DNS system.
I mean, I guess it's not that crazy, but I couldn't find anyone else doing it on the
internet. Ideally, it'd be rendered by javascript, but it seems that JS doesn't have
that native ability. And to get txt dns records inside of javascript you have to hit
an api. So screw the api, lets just do it in php.
I ended up doing it, it's a super simple implementation, you could very easily extend
it to have some sort of markdown generator render the content better. Either way, I
thought I'd share this. Below is an example list of txt records.
hello.domainname.tld TXT records
10: hello there! <br>
20: this is silly no?
hehehehe
the script at dns.php?q=hello would output
Hello there! <br>this is silly no?hehehehe