Codeberg's Domain Vanished From Its Account While the Git Servers Kept Running: A Hosts-File Line Was the Workaround
The machines were fine; the name people type to reach them went missing, and anyone who clones from codeberg.org felt it.
The Git host Codeberg posted on Mastodon that its domain had disappeared from its account while the servers stayed up, and a one-line hosts-file entry got people in. The latest update says normal access is back and the workaround is no longer needed.

Codeberg’s post on Mastodon began plainly: “codeberg.org is unfortunately down right now due …” The snippet cuts off there, and the rest of Codeberg’s account is what makes the incident worth retelling. The domain had disappeared from its account, while the servers behind it stayed reachable.
That is a strange kind of outage. Nothing crashed, nothing filled a disk, nobody pushed a bad config. The machines sat there answering anyone who knew where to knock, and the name that tells browsers and git clients where to knock had simply gone missing. Picture a restaurant with the lights on, the cooks working, and the street sign removed.
The workaround was a single line. Codeberg pointed people to a temporary hosts-file entry, a local text file that pairs a name with an address and gets read before any lookup happens. Add the line and your machine skips the world’s directory and walks straight to the server. Anyone comfortable editing /etc/hosts, or the Windows equivalent, could get back in while the real problem was sorted out.
Then it ended. Codeberg’s update says normal access returned and the workaround is no longer needed. That hands the people who added the line one more chore, because a pinned entry that outlives the incident is a trap for whoever debugs it next spring.
How the domain left the account in the first place is the piece Codeberg’s post leaves blank.
Expect more projects to treat the name of their Git host as infrastructure, the same way they already treat the host itself. The mechanism is cheap to see: a repo’s address is baked into submodule files, package manifests, CI configs, badges and every contributor’s clone. When the name goes, all of them go together, even though the code is sitting safely on a working server. Redundancy for the servers is old news. Redundancy for the name is the part most teams haven’t practiced.
The likely fix is boring in the best way. A second remote costs one command, and a mirror on another host turns a lost name from an emergency into an inconvenience. Projects that care about continuity will keep one, and the ones that never thought about it will find out the way Codeberg’s users did, mid-clone.
There is also a lesson in who gets to be the hero. Codeberg’s fix was not a failover cluster or a war room. It was a text file a person can edit in a minute, older than most of the tools that depend on it. The servers knew exactly who they were, and nobody else could find them: a case of mistaken identity with no mistake on the servers’ side.
Sometimes the best DNS is a text file.