-
Notifications
You must be signed in to change notification settings - Fork 34
feat(gateway): support dns addresses from indexer #443
Comments
Can you please explain the use case? |
It'd allow for a few things, such as:
|
Do these not work at the moment? We're using Hyper's client which should be doing DNS resolution already. |
Dns isn't handled in the distance calculation atm, so |
Why does DNS need to be included in the distance calculation? Can you please describe a specific example? |
You mean mindmaxdb isn't going to resolve names for us? If so, this issue makes sense. |
The only thing is, Node providers should not be advertising their domain name right? They have to specify their IP address IIRC? |
Restricting this to only IPs would be a good requirement because we want to make as fewer network calls as possible. |
Exactly, unless we resolve them and give maxminddb an IpAddr
This is a fair point, resolving the dns would require an additional network request, it'd be good to consider speed vs security here. For example not using https would allow for MITM but saves a dns request and the possible latency there. Kind of brings up a question though, if the domain and https is not advertised and used by the gateway, what's the point of requiring nodes to set that up? |
The gateway can use HTTPS. It uses/knows of whatever application protocol the providers advertised so if we needed to support that, the changes shouldn't take place in the gateway but in the node.
Idk about this. Maybe someone else can comment. ps. Sorry I mistakenly edited your comment 🙈. |
If we were to move to HTTPS, I would suggest that the nodes advertise both their IP and domain name so we could avoid the DNS call. |
DNS advertisements should be supported by the gateway
The text was updated successfully, but these errors were encountered: