TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: DNS-powered website with no back end

83 pointsby elliottinventalmost 4 years ago

13 comments

elliottinventalmost 4 years ago
All of the contact data on this website is fetched from DNS TXT records. It&#x27;s an example of how NUM [0] data can be used.<p>A small team and I have created NUM because we believe that paid, restricted, rate-limited APIs provided by the giants of the web are holding back developers and we want to change that.<p>NUM provides: a simple way for businesses to provide machine-readable data direct to their users, bypassing data hoarding web giants; a forever free, unlimited and unrestricted source of data to developers.<p>The general-purpose semantic web has failed because the standards (microdata, JSON-LD, Open Graph) are too complicated and difficult for small businesses to adopt and often forgotten about by marketing teams in large businesses because data is too difficult to edit.<p>NUM is different because it can be adopted by any business using a simple online form. The protocol includes two DNS queries – the first to the authoritative DNS zone; the second failover query to our NUM Server, any business can claim their domain on NUM Server using a simple online process.<p>The Company Directory website linked to is just one example of how NUM data can be used. The website fetches all data from DNS using client-side Cloudflare DNS-over-HTTPS calls (see Network tab in Dev Tools). Barclays, or any other company listed can update the data on this site by adopting the NUM protocol [1] independently in their own DNS – for example, to replace the data for the Barclays listing, they can create a TXT record at 1._num.barclays.co.uk or claim the record shown by visiting numserver.com&#x2F;claim&#x2F;barclays.co.uk<p>DNS-based protocols like NUM (other examples are SPF and DMARC) typically suffer from the chicken-and-egg problem where no-one looks for this data in DNS because it&#x27;s not there, and no one stores this data in DNS because no-one is looking for it.<p>To help overcome this, we&#x27;ve pre-populated the DNS with contact data for large UK companies and are in the process of automatically gathering contact data for all *.uk domain names (we expect to complete this in the next 10 days) before moving on to all other UK companies, then companies worldwide (the US, Canada, Australia next).<p>NUM can be adopted &#x2F; edited with a simple online form. Anyone can create a record for their domain, either independently in their own DNS or using our service at <a href="https:&#x2F;&#x2F;app.numserver.com&#x2F;tools&#x2F;editor&#x2F;add" rel="nofollow">https:&#x2F;&#x2F;app.numserver.com&#x2F;tools&#x2F;editor&#x2F;add</a><p>To ensure that NUM is as efficient as possible, we store all data in DNS using MODL [2] – a compact, DNS-friendly data serialisation format; we make compact DNS objects developer friendly using Unpacker [3] – we have developed both in-house. I have written a very basic Notion document to explain how all of these technologies fit together [4].<p>To simplify all of this for front-end developers (who by and large don&#x27;t care about DNS), we&#x27;ve packaged it up in a Typscript library called company-api which you can query for a domain and get a beautiful object back containing company contact data [5].<p>We are very keen for feedback, good or bad.<p>0. <a href="https:&#x2F;&#x2F;www.num.uk" rel="nofollow">https:&#x2F;&#x2F;www.num.uk</a><p>1. <a href="https:&#x2F;&#x2F;www.numprotocol.com" rel="nofollow">https:&#x2F;&#x2F;www.numprotocol.com</a><p>2. <a href="https:&#x2F;&#x2F;www.modl.uk" rel="nofollow">https:&#x2F;&#x2F;www.modl.uk</a><p>3. <a href="https:&#x2F;&#x2F;www.unpacker.uk" rel="nofollow">https:&#x2F;&#x2F;www.unpacker.uk</a><p>4. <a href="https:&#x2F;&#x2F;www.notion.so&#x2F;num&#x2F;NUM-MODL-and-Unpacker-67d7cd59548d4eafb4852d0d89ff9493" rel="nofollow">https:&#x2F;&#x2F;www.notion.so&#x2F;num&#x2F;NUM-MODL-and-Unpacker-67d7cd59548d...</a><p>5. <a href="https:&#x2F;&#x2F;www.npmjs.com&#x2F;package&#x2F;company-api" rel="nofollow">https:&#x2F;&#x2F;www.npmjs.com&#x2F;package&#x2F;company-api</a><p>Edit: to make it clearer what problem we&#x27;re trying to solve.
评论 #27626839 未加载
评论 #27632300 未加载
评论 #27626849 未加载
评论 #27627585 未加载
评论 #27627520 未加载
评论 #27627106 未加载
评论 #27644980 未加载
评论 #27627649 未加载
unknown_erroralmost 4 years ago
I think you&#x27;re leeching off someone else&#x27;s infrastructure and using it to do things they never meant it to do. Sure, the technical capability is there, but your use case would drastically increase their costs. You are essentially cost-shifting your customers&#x27; costs onto theirs. Not cool.<p>It&#x27;s like building a cloud storage solution off Gmail&#x27;s free storage. It can be done, has been done, but that doesn&#x27;t mean it&#x27;s cool to do so.<p>Your system would increase costs for DNS providers all over the world, without their consent, just because you&#x27;re using it as a loophole. It was a problem that wasn&#x27;t there fixed in a way that leeches from rather than gives back to the community.
评论 #27637657 未加载
o8r3oFTZPEalmost 4 years ago
The idea I had for this over 10 years ago was to modify djb&#x27;s dnstxt to output raw HTML with a MIME header. tinydns allows one to store arbitrary data so I could put anything in a 512-byte DNS packet, including &quot;text&#x2F;html&quot; (newlines and carriage returns). I could request tiny web pages from tinydns. There have been other similar things by other folks like putting deCSS code in DNS, Wikipedia data, audio files, etc.<p>Now this might all sound silly, but since then 1. DNS packets are now massive and can carry much more data and 2. big companies are pushing a &quot;next-gen&quot; UDP-based protocol (reminds me of djb&#x27;s CurveCP) for HTTP, serving HTML and other web junk. They also want to use this UDP-based protocol for other things, like DNS, eventually.<p>Whatever. HTML in DNS worked great. Tiny pages that fit in a CPU cache.
评论 #27636295 未加载
bawolffalmost 4 years ago
I don&#x27;t get it.<p>You have to host the static page somewhere. Why not host the data in the same place (as a json blob or whatever)? It seems like the implication is all the data in dns is static, so what&#x27;s the benefit of adding dns to the mix - you already have to use something else to host some of your static resources, why not just have a single static host instead of two separate static hosting systems?<p>(Yes in theory you could write a dns server to dynamically answer queries, but that doesn&#x27;t seem like its what is being proposed here)<p>Dont get me wrong, its cool you can access dns from a browser, but i dont think this is a compelling usecase (something like web torrent in the browser with magnet links in dns for a decentralized web, seems like it would make a good demo for this technique)
评论 #27627699 未加载
forgotmypw17almost 4 years ago
Thank you for sharing your project, Elliott.<p>It is an intriguing technology, and a clever way of putting together existing pieces in a new way.<p>I think it is very much in the spirit of how things are done on the Internet, although I&#x27;m not entirely convinced that NUM wouldn&#x27;t gum up the DNS system if widely adopted.<p>My question to you is, how would I take advantage of NUM as a small-time personal-website operator, if my website was largely about small text-file snippets?
评论 #27639707 未加载
ksecalmost 4 years ago
&gt;CompanyDirectory.UK is a NUM Technology [1]<p>&gt;What is NUM?<p>&gt;NUM is a DNS-based alternative to the World Wide Web for storing and retrieving structured data. The web is amazing but websites are built for browsing and are an inefficient way to find precise pieces of data like telephone numbers, bank details and more.<p>[1] <a href="https:&#x2F;&#x2F;www.num.uk" rel="nofollow">https:&#x2F;&#x2F;www.num.uk</a>
darkralmost 4 years ago
Sounds similar to Telnic<p><a href="https:&#x2F;&#x2F;datatracker.ietf.org&#x2F;doc&#x2F;html&#x2F;draft-reid-dnsext-nkey-00" rel="nofollow">https:&#x2F;&#x2F;datatracker.ietf.org&#x2F;doc&#x2F;html&#x2F;draft-reid-dnsext-nkey...</a><p><a href="https:&#x2F;&#x2F;icannwiki.org&#x2F;TelNic" rel="nofollow">https:&#x2F;&#x2F;icannwiki.org&#x2F;TelNic</a>
评论 #27628148 未加载
tedk-42almost 4 years ago
Please no.<p>CI systems like GitHub actions and CircleCI use to have unlimited CI minutes until people started abusing them for things they weren&#x27;t intended for (i.e. crypto mining).<p>I would hate if I had to pay for DNS services (or be forced into using an ISP one which does things like blacklist certain domains) just because people on the internet wanted to be &#x27;cool&#x27; and show off how smort they are.<p>This is why we can&#x27;t have nice things.
评论 #27632104 未加载
评论 #27627536 未加载
评论 #27627608 未加载
评论 #27627605 未加载
bfungalmost 4 years ago
In a cursory read through, I’m still not sure what problem NUM actually solves. It seems like it moves data storage into DNS TXT records and defines some parsers.<p>What benefits does NUM have over html over http? One can use some semantic html tags to organize the data for parsing, making it roughly equivalent to NUM modules. If a NUM client is running w&#x2F;o a newly developed NUM module, how does it parse that data and how is it better than html without semantic meaning?
评论 #27628558 未加载
yakshaving_jgtalmost 4 years ago
This is interesting. I run <a href="https:&#x2F;&#x2F;newbusinessmonitor.co.uk&#x2F;" rel="nofollow">https:&#x2F;&#x2F;newbusinessmonitor.co.uk&#x2F;</a> and I’m often asked if I can provide contact data for UK companies, but this is difficult because no contact data is published when a company registers. I wonder how you’ll be getting this data for smaller companies.
评论 #27627824 未加载
rognjenalmost 4 years ago
I think it would be wise to slightly change the design so as not to look so similar to Companies House.
chadxzalmost 4 years ago
If you are offering this to people for free, what is your company’s business model? Why centralize their info on a single domain instead of putting it on their own using a common format?
评论 #27644824 未加载
nopcodealmost 4 years ago
Isn’t DNS de-facto centralised too?
评论 #27626762 未加载
评论 #27627566 未加载
评论 #27625220 未加载