问题
I'm having a hard time finding information about whether or not .Net (C# specifically if it matters) respects the TTL values for DNS entries. I believe it does not based on the information I found here. I noticed in other places that Java also does not respect DNS TTL values (Any way to make Java honor the DNS Caching Timeout (TTL)?). Am I right that the only way to control how long a DNS lookup is cached is by using the ServicePointManager.DnsRefreshTimeout
property? If this is a case does anyone have information on why this is the case? Seems like a non-obvious choice for programming languages.
来源:https://stackoverflow.com/questions/17454925/does-net-respect-dns-ttl-values