Serve a site out of DNS with Emmet


@          CNAME
serv       TXT   "body>h1{Hello, World!}"

More details here.

Why tho?

  • It’s kinda neat.
  • It’s free hosting without the need for a 3rd party account/password (you’re not going to get any obnoxious emails).
  • You can get a simple website running from the comfort of your domain registrar’s admin panel.
  • Reduce the need for dedicated machines by serving many sites from 1 generic server.
  • Attaching domain specific content to the zone makes sense in some cases (RFC), since the data is decoupled from a specific [web] server. In this case, a string which represents HTML.
  • It could help lower the barrier to entry to serving sites. Not everyone has the time and/or devops knowhow to deploy their own site (and out of the box solutions usually have strings attached).

Mostly this is a fun little gimmick, but it makes me wonder if DNS could take some of the weight off of our gigantic tech stacks (increasing performance as well). Browsers- in between checking DNS records- could short-circuit the process, skip the web server query, and render a static site if a special DNS record exists. We could potentially halve the time it takes to render a site. It’s a fun idea to entertain, even if it’s infeasible.

Naturally people might question the trustworthiness of as a web host. Feel free to serve it yourself.