2 ms·
> For internal addressing, why do we use DNS? Why not? It's standard protocol for name-address mapping. > In case of an address swap (hardware swap, load bala
by vbezhenar 1y ago
> For internal addressing, why do we use DNS?
Why not? It's standard protocol for name-address mapping.
> In case of an address swap (hardware swap, load balancing or whatever reason), one could broadcast it to the network, and the relevant clients would acknowledge & update the address.
Client just performs DNS query before HTTP query or client caches DNS response for some time. It's solved problem and "pull" approach usually preferable to "push" approach. For example, what if that broadcast gets lost (UDP is not reliable protocol)? How application handles initial discovery?
Of course it is possible to replace DNS with something else. But why? If you're afraid that your DNS server will fail, the same could happen with your custom service discovery server.