To over-simplify - yes, DNS by design will resolve to IP addresses even if those IP addresses have not been used for 90 years. (assuming that the DNS servers are still there).
DNS in hashi consul is a matter of convenience, and also does routing to services that are available, or in a particular data-center.
If you like to live dangerously, you could implement very primitive service discovery with DNSmasq, but you should not.
DNS itself is not a bad or a good thing, it depends what you use it for, and the tolerances of caching, stale data, failures that your systems will put up with.
Log in to continue
We're a place where coders share, stay up-to-date and grow their careers.
To over-simplify - yes, DNS by design will resolve to IP addresses even if those IP addresses have not been used for 90 years. (assuming that the DNS servers are still there).
DNS in hashi consul is a matter of convenience, and also does routing to services that are available, or in a particular data-center.
If you like to live dangerously, you could implement very primitive service discovery with DNSmasq, but you should not.
DNS itself is not a bad or a good thing, it depends what you use it for, and the tolerances of caching, stale data, failures that your systems will put up with.