python-hyper / hyper

HTTP/2 for Python.

Home Page:http://hyper.rtfd.org/en/latest/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How resolve DNS to a specific IP?

the-boring-dev opened this issue · comments

Using hyper, is there a way to resolve a hostname to a specific IP address? Like the way we can do with cUrl's --resolve flag.

This is useful when you have a service that has regional DNS records and you want to send requests to a particular regional server.

This is how it works in requests.