Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Perform DNS resolution in RequestWriter #10

Open
chris-morgan opened this issue Sep 6, 2013 · 1 comment
Open

Perform DNS resolution in RequestWriter #10

chris-morgan opened this issue Sep 6, 2013 · 1 comment

Comments

@chris-morgan
Copy link
Owner

DNS lookup was implemented in rust-lang/rust#9000; the client needs to use this to look up a remote address based on the hostname.

I'm not certain what should happen in case of an unknown hostname.

I'm not certain what the deal is with regards to multiple IP addresses being returned.

@esummers
Copy link

esummers commented Apr 7, 2014

I assume you just want to use the first address. Maybe try each address in order until one resolves. Most DNS servers hand out the addresses in a different order (round robin) each time a client queries the server. It can have a load balancing effect if you always pick the first address in the list since other clients receive the list of IPs in a different order.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants