dart-lang / sdk

The Dart SDK, including the VM, JS and Wasm compilers, analysis, core libraries, and more.
https://dart.dev
BSD 3-Clause "New" or "Revised" License
10.09k stars 1.56k forks source link

How to use custom DNS server with HttpClient #36551

Open wendux opened 5 years ago

wendux commented 5 years ago

I need to use a custom DNS server (or at least, manually specify the IP address) with HttpClient. I can't find any way to do this at the moment.

You may think I can just use the IP address and manually set a HTTP host header, but this doesn't work with HTTPS, because the certificate is invalid.

hacker1024 commented 5 years ago

I need this functionally too.

fallshuang commented 4 years ago

I think "dns over https" is also a key feature . The HttpClient in dart::io doesn't support these features

YunanChen commented 4 years ago

Is there any update?

Moredistant commented 4 years ago

Is there any update?

IBM9100 commented 4 years ago

Is there any update?

mrtian commented 4 years ago

Is there any update? or have some methods to ?

shenshouer commented 2 years ago

Any update for dns over https ?

fly512 commented 2 years ago

Any update for dns over https ?

Sominemo commented 2 years ago

This functionally would be really useful for transparent HTTP proxies. Right now to accomplish this kind of trick, you need to work with dart:Io on low level to be able to intercept the Host header, so it makes developers reimplementing built in methods like HttpClient.post.

cyjaysong commented 2 years ago

Any update for dns over https ?

droplet-js commented 1 year ago

Any update for dns over https ?