Live data from Hacker News

DNS over Wikipedia

github.com

11–20 of 168 posts

Re: DNS over Wikipedia

#11
It redirects to URL entries in the infobox (present in many wiki pages) associated with the body of your entered URL (ending with ‘.idk’).

What it does not do is prevent anyone from temporarily editing the associated wikipedia page and phishing you into an attacker-controlled website.

Re: DNS over Wikipedia

#13
post #7

What's the use case? Or just a fun programming task? Wouldn't this hammer wikipedia unnecessarily? DNS are very quick, lightweight requests.

If you want to visit a site like 'The Pirate Bay' or 'Sci-Hub' by name, Wikipedia provides the URL, whereas google doesn't.

Re: DNS over Wikipedia

#14
post #7

What's the use case? Or just a fun programming task? Wouldn't this hammer wikipedia unnecessarily? DNS are very quick, lightweight requests.

Use cases are given on the github page. It's useful for sites that aren't indexed by Google and for avoiding spam.

Re: DNS over Wikipedia

#15

> Instead of googling for the site, I google for the site's Wikipedia article ("schihub wiki") which usually has an up-to-date link to the site in the sidebar, whereas Google is forced to censor their results. In the video, it doesn’t show this. It shows going to the scihub.idk domain. And then a redirect happens. So does this tool just host a local a domain resolver (and HTTP redirect server) for all .idk domains th…

The comment is context for what inspired the tool. The functionality is about 40 lines of pretty readable Rust: https://github.com/aaronjanse/dns-over-wikipedia/blob/master...

1. Make a Wikipedia search API request for the .idk domain, using the name as the article name.

2. Retrieve the rendered page contents if found.

3. Find the first Wikipedia infobox table on the page.

4. Extract the first "URL" or "Website" entry in that infobox.

5. Return the entry's value, if it's a link.

All this runs in a nickel.rs server on 127.0.0.1:80, which routes the requests as permanent redirects to the destination. Using dnsmasq,[1] if it's an .idk domain, it routes the request through the above Wikipedia resolver.

1: https://github.com/aaronjanse/dns-over-wikipedia/tree/master...

Re: DNS over Wikipedia

#18
post #16

Please don't abuse public good infrastructure

How's that abusing public infrastructure?

1. Wikipedia is a private entity.

2. It is very well funded.

3. That extension probably uses less resources than someone loading an entire webpage with all associated media just to look up a url.

Re: DNS over Wikipedia

#20
post #7

What's the use case? Or just a fun programming task? Wouldn't this hammer wikipedia unnecessarily? DNS are very quick, lightweight requests.

This is not doing DNS. This is "domain name autocomplete".

It's using Wikipedia as a provider for CNAME records. Does it count as DNS?
Post reply on HN