this post was submitted on 24 Mar 2026
69 points (96.0% liked)

Programming

26206 readers
288 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 2 years ago
MODERATORS
top 13 comments
sorted by: hot top controversial new old
[–] ExperimentalGuy@programming.dev 1 points 6 hours ago

and as the kids say… Skibidi.

[–] 87Six@lemmy.zip 1 points 7 hours ago (1 children)

No things will remain sacred next to DOOM

[–] anton@lemmy.blahaj.zone 2 points 3 hours ago

Because people have inflated what I means to run doom.

Serving the game files on DNS, is not running doom!
Using bacteria to display frames from doom, is not running doom!
Playing the soundtrack on a really old computer is not running doom!

Can it play doom is supposed to be a laymans proxy for turing completeness and quite frankly I was intrigued how to trick DNS into performing arbitrary computation.

[–] MonkderVierte@lemmy.zip 9 points 1 day ago* (last edited 1 day ago) (2 children)

DNS is why we can't have good things.

[–] phoenixz@lemmy.ca 2 points 14 hours ago (1 children)
[–] MonkderVierte@lemmy.zip 3 points 8 hours ago

I have to debug DNS issues currently.

[–] wabasso@lemmy.ca -2 points 1 day ago (2 children)

I hate it too but is there an alternative?

[–] MonkderVierte@lemmy.zip 1 points 8 hours ago* (last edited 8 hours ago)

Lots, but not widely used. All use the fix for a hack.

[–] Venat0r@lemmy.world 5 points 21 hours ago (1 children)

Hmm... Maybe using IP addresses like we use phone numbers? 😅

That seems worse though 😅

[–] 30p87@feddit.org 4 points 10 hours ago (1 children)

Just curl 2a02:810b:583:d00:1e98:ecff:fe21:4a37 (don't forget to set $HOST to 30p87.de)

[–] 30p87@feddit.org 1 points 10 hours ago (1 children)
curl '[2a02:810b:583:d00:1e98:ecff:fe21:4a37]' -LkH 'Host: 30p87.de'
[–] wabasso@lemmy.ca 1 points 6 hours ago* (last edited 6 hours ago) (1 children)

Ok I RTFM but I’m still lost. Partly I don’t know enough about headers to understand the -H flag, but also:

What provides the new location to curl when the attempt fails? The web server of the site at the IP you specified?

How does one obtain the IP in the first place, I thought this discussion was about alternatives to DNS.

[–] 30p87@feddit.org 0 points 5 hours ago

-L, because I only specify 30p87.de, and the webserver will therefore redirect me to https://30p87.de/ with a 308 response. With -L, curl follows that automatically. -k, because I don't have a cert for the IPv6, and the underlying SSL lib won't like that. So -k forces it to ignore all issues with it, including the cert not having that IP as Alt name. -H "Host: 30p87.de", because http servers serve you content not dependent on the IP you used, but the host you accessed (so that you can just have a.org, b.org and c.org served on the same IP, machine and port. And the host is read from the Host header. Curl sets that to the host you're accessing, which is my IP, in this case. As my webserver doesn't have an entry for that Host (because you'd never use an IP like that), it will fail. So to actually get the content of a webpage, I need to specify the Host manually.

You obtain it by asking me, then memorizing, as the comment I responded to said. And I used an IPv6 address, because that's even harder to remember.

So: curl requests content from the webserver at my IP, for the host 30p87.de, just as it would with only curl 30p87.de . The webserver returns a 308 Permanent Redirect to https://30p87.de/, which curl automatically follows with the -L flag, and therefore does a new request on the same IP, but with the host https://30p87.de/, so essentially curl https://30p87.de/.