Closed
Description
This is a tracking issue for the lookup_addr
and lookup_host
unstable features in the standard library. These are currently the only exposed support for DNS as a public interface. Functions like TcpStream::connect
already expose the ability to resolve names via passing a string, but this cannot be done programmatically currently.
There are a number of thorny issues to deal with here:
- Is calling
getaddrinfo
andgetnameinfo
here appropriate? - What should the arguments be? Should this use a builder?
- In the
getaddrinfo
case, should IP addresses or socket addresses be returned? - In the
getnameinfo
case, should IP addresses or socket addresses be taken? - What should the return values look like? Iterators? Structs exposing accessors? (like
DirEntry
)
Metadata
Metadata
Assignees
Labels
Blocker: Implemented in the nightly compiler and unstable.Category: An issue tracking the progress of sth. like the implementation of an RFCRelevant to the library API team, which will review and decide on the PR/issue.In the final comment period and will be merged soon unless new substantive objections are raised.