logoalt Hacker News

iberatortoday at 5:34 PM3 repliesview on HN

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.


Replies

chasd00today at 6:32 PM

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

IP's can change without warning.

TZubiritoday at 6:24 PM

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.

GuinansEyebrowstoday at 6:12 PM

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