Remix.run Logo
pastage 10 hours ago

> DNS broke my site for three hours. But now I actually understand it

I have been broken for three decades and I still don't understand DNS. It is a simple protocol but people use it in complicated manners.

cyberax 3 hours ago | parent | next [-]

Simple? Oh no. Simple it is not.

It's the most baroque protocol that is still somehow surviving from the initial Internet. There are so many weird limitations, like not being able to use CNAME for apex zones. Or the entire DNSSEC fiasco.

iberator 5 hours ago | parent | prev [-]

why you need DNS for at server? just use hosts file. why your server would need to resolve domains on the internet? client yeah, server no.

chasd00 4 hours ago | parent | next [-]

> why you need DNS for at server? just use hosts file.

IP's can change without warning.

TZubiri 4 hours ago | parent | prev | next [-]

interesting.

But it's not an issue at all, and it provides a convenience that can be depended on by a lot of your dependencies.

Code may use domains instead of ip addresses (which provides resiliency), package managers like apt depend on domains. And so on.

GuinansEyebrows 4 hours ago | parent | prev [-]

clusters and other load-balanced workloads. who wants to maintain hosts files across a fleet of containers or multiregion load-balanced situations?