this post was submitted on 24 Nov 2026
668 points (96.8% liked)

Programmer Humor

34287 readers
1742 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 3 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] RedSnt@feddit.dk 3 points 2 days ago (1 children)

This is more of a meta comment. I put

[CustomHosts]
127.0.0.1    localhost.ip4
::1          localhost.ip6

in /etc/systemd/resolved.conf.d/custom-hosts.conf / /etc/hosts/ (sans the header) to make it a 1 character edit to switch between localhost ipv4 and localhost ipv6.

[–] OliMoli2137@piefed.social 4 points 2 days ago (2 children)

/etc/hosts is a file, why the leading slash

[–] uin@lemmy.world 1 points 1 day ago (1 children)
[–] RedSnt@feddit.dk 2 points 2 days ago

I meant, the /etc/hosts file doesn't need the [CustomHosts] header.