You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Normally, the DNS resolution provided by the operating system depends on the local operator's dns server, which makes it difficult to control the DNS caching policy and resolution stability. In this case, we can try to use DNS Over HTTP as an alternative, or we can cache DNS results locally in the app according to a customized policy. Cache DNS to sqlite/file or other ways.
Solution Brainstorm
We can add a resolver method to configure, a common design in the Golang world.
final dio =Dio({
resolver : (domain) -> string {
return"1.2.3.4"
}
})
The text was updated successfully, but these errors were encountered:
Request Statement
Why do we need a custom DNS resolver?
Normally, the DNS resolution provided by the operating system depends on the local operator's dns server, which makes it difficult to control the DNS caching policy and resolution stability. In this case, we can try to use DNS Over HTTP as an alternative, or we can cache DNS results locally in the app according to a customized policy. Cache DNS to sqlite/file or other ways.
Solution Brainstorm
We can add a resolver method to configure, a common design in the Golang world.
The text was updated successfully, but these errors were encountered: