News for hackers. Stuff that matters.
Re:Show HN: Wordle over DNS by pgl on Saturday February 19, 2022 @09:05AM (#30397199)
This is going straight on my list: https://twitter.com/pgl/status/1405614755000295427
Re:Show HN: Wordle over DNS by AviationAtom on Saturday February 19, 2022 @10:47AM (#30397927)
Now we know why it's always DNS breaking /s
Re:Show HN: Wordle over DNS by omnicognate on Saturday February 19, 2022 @08:55AM (#30397138)
Neat. I thought for a moment it was just a script embedded in a TXT record, but you do communicate over DNS with a server-side implementation of the game. The perl bit is just to unescape the response.

It uses a custom DNS server that returns the result as a TXT record for the domain <your guess>.wd.ip.wtf. You don't need to point directly at that server as it's registered as the nameserver for that domain.

Re:Show HN: Wordle over DNS by pwdisswordfish9 on Saturday February 19, 2022 @01:04PM (#30399062)
Awaiting the inevitable Wordle in CoffeeScript in pure CSS on the blockchain as a Service.
Re:Show HN: Wordle over DNS by kseistrup on Saturday February 19, 2022 @09:03AM (#30397187)
I really like the idea of wordle-over-dns.

I wish all wordle authors would use words with 5 unique letters and singular nouns or infinitive verbs, though.

Re:Show HN: Wordle over DNS by furyofantares on Saturday February 19, 2022 @10:04AM (#30397628)
I see where you're coming from on 5 unique letters but have a strong preference the other way. The possibility of double letters adds a lot of interest to the game for me. But I can see how someone would find it annoying too.

I'm curious about the singular nouns or infinitive verbs suggestion though. What's the thinking there? Also to be clear, are you advocating for no adjectives/adverbs, or are you just restricting which nouns/verbs are allowed and allowing other types of word to be unrestricted?

Re:Show HN: Wordle over DNS by kseistrup on Saturday February 19, 2022 @10:59AM (#30398033)
The reason for the restriction is that you make a near endless amount of words by allowing plural, past, future, genitive (at least in Danish, that doesn't take apostrophe in the genitive) et cetera. I'm unsure how I would restrict adjectives/adverbs, but the idea is that the words should exist as main entries in a dictionary.

Here's where I come from:

Decades ago I learned to play a word game which was more like MasterMind than Wordle, and it could be played with just pen and paper (later I have played it over sms, and over gratis bank transfers):

Each participant writes down a secret 5-letter word (unique letters, singular nouns, no verbs) and take turns to guess the oppponent's word. The only clue you get for each guess, is how many correct letters your guess has. You do not get to know which letters are correct, if any, nor if they are correctly placed. It's a bit more challenging than Wordle, something that justifies the restrictions, but even with Wordle I think it's reasonable to use just the “root dictionary words”, if I may call them so.

Re:Show HN: Wordle over DNS by ReaLNero on Saturday February 19, 2022 @11:11AM (#30398136)
The different forms of the word are really just a constant factor. Moreover, not all endings have the same number of letters, so it's easy to distinguish between e.g. eat vs eaten vs ate.
Re:Show HN: Wordle over DNS by l8rlump on Tuesday February 22, 2022 @01:40AM (#30424690)
May I ask what is your favourite site for playing Wordle in Danish? I know someone who would enjoy that.
Re:Show HN: Wordle over DNS by kseistrup on Tuesday February 22, 2022 @02:06AM (#30424835)
They are https://ordlek.github.io/ordlek/dansk/ and https://xn--wrdle-vua.dk/

The former is translated from Swedish by its author and I have promised to help the author make it look like fluent Danish, but I haven't gotten around to it just yet.

Re:Show HN: Wordle over DNS by ghaff on Saturday February 19, 2022 @10:20AM (#30397739)
The thinking is probably that if you allow plurals and certain other verb forms to any significant degree you probably end up with a disproportionate number of trailing "S" letters--which would be less interesting.

The combination of five letters, the rules, and the number of guesses seem to calibrate the difficulty pretty well for me. Given enough time, I could probably solve most words eventually with just my brain. (In practice, I sometimes go to a dictionary program that's not wordle specific to tickle my brain once I know what I'm probably looking for.

Re:Show HN: Wordle over DNS by furyofantares on Saturday February 19, 2022 @10:54AM (#30397991)
> The thinking is probably that if you allow plurals and certain other verb forms to any significant degree you probably end up with a disproportionate number of trailing "S" letters--which would be less interesting.

There's no reason it has to be noticeably disproportionate, the clues are curated and not just picked randomly from the list of words that are legal to guess.

I guess I'm also curious if the suggestion is that all these words are illegal to guess or just not used as clues?

Re:Show HN: Wordle over DNS by ghaff on Saturday February 19, 2022 @11:14AM (#30398166)
It appears as if there are plurals in the words you can use to guess. I just tried PILLS and it worked. I have not yet run across a plural as the answer but I haven't looked at the word list.
Re:Show HN: Wordle over DNS by sprobertson on Saturday February 19, 2022 @05:34PM (#30401171)
1.6% of possible answers end with "s" but none of those are plural. 30.5% of allowed guesses end in "s" however.
Re:Show HN: Wordle over DNS by dgl on Saturday February 19, 2022 @09:09AM (#30397228)
Wordle itself doesn’t use 5 unique letters though.

Some of the words I’ve picked are a bit tricky, it’s trickier than you think picking words!

Re:Show HN: Wordle over DNS by kseistrup on Saturday February 19, 2022 @09:20AM (#30397301)
I know the original Wordle also don't use 5 unique letters, that's why I wrote “all wordle authors” so you wouldn't feel singled out.

I chose words for a Danish wordle, and distilled 64k dictionary words down to around 3k.

Re:Show HN: Wordle over DNS by danwall on Sunday February 20, 2022 @02:49AM (#30404019)
This is really clever, you can also play in the browser with online DNS tools like https://www.whatsmydns.net/dns-lookup/txt-records?query=wd.i...

Using the example guess https://www.whatsmydns.net/dns-lookup/txt-records?query=cran...

Re:Show HN: Wordle over DNS by garaetjjte on Saturday February 19, 2022 @10:04AM (#30397625)
It would be better if it just represented replies as ASCII chars to avoid perl postprocessing. Most terminals probably doesn't display colored emoji anyway.
Re:Show HN: Wordle over DNS by dgl on Saturday February 19, 2022 @06:26PM (#30401553)
Interestingly I just tried it on Windows. For me Windows Terminal managed emoji, but only the green square! (After running “chcp 65001”)

However the unescaping isn’t needed, nslookup on Windows just outputs the raw data. Makes me wonder if I could just use ANSI terminal escape sequences.

Re:Show HN: Wordle over DNS by testplzignore on Saturday February 19, 2022 @06:49PM (#30401694)
Here's an emoji-less version that prints correctly-placed characters in uppercase, incorrectly-placed characters in lowercase, and incorrect characters as spaces. Gotta love bitmask tricks.

wd() { dig +short txt $1.example.wd.ip.wtf | head -n1 | perl -pe's/"//g;s/\\226\\172\\156/ /g;s/\\240\\159\\159\\168/chr(255)/eg;s/\\240\\159\\159\\169/chr(223)/eg' | perl -pe'$_&=lc("'$1'")'; }

Re:Show HN: Wordle over DNS by somtoxhi on Saturday February 19, 2022 @04:13PM (#30400577)
What's a good resource to gain more-indepth knowledge on DNS?
Re:Show HN: Wordle over DNS by dgl on Saturday February 19, 2022 @06:23PM (#30401529)
I’m not sure there’s one good resource, DNS is a complicated system, mostly as a result of evolving along with the internet over many years.

However Julia Evans has done a bunch of interesting things lately: https://jvns.ca https://twitter.com/b0rk

Re:Show HN: Wordle over DNS by zvr on Saturday February 19, 2022 @08:14PM (#30402255)
I'd guess Cricket's book(s) published by O'Reilly can guide you deep enough. Of course, developments since their publication are not covered, but you can still learn a lot.
Re:Show HN: Wordle over DNS by ate53 on Sunday February 20, 2022 @03:31AM (#30404201)
Re:Show HN: Wordle over DNS by captn3m0 on Sunday February 20, 2022 @01:41AM (#30403738)
DNS TTLs would make this interesting to play.