Imagine writing code so useful and flexible it lasts for decades, being used every single day by billions. DNS might not be perfect but it's one of those simple and elegant systems that keeps on trucking because of its simplicity.
It's simple and comparatively easy to make reliable, but a factor in its continued use is that's so prevalent in hard-to-change places: the web, libraries, old OSs, switches, other battle-hardened systems, etc.