-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
B-unstableBlocker: Implemented in the nightly compiler and unstable.Blocker: Implemented in the nightly compiler and unstable.C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.final-comment-periodIn the final comment period and will be merged soon unless new substantive objections are raised.In the final comment period and will be merged soon unless new substantive objections are raised.
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
)
schneiderfelipe
Metadata
Metadata
Assignees
Labels
B-unstableBlocker: Implemented in the nightly compiler and unstable.Blocker: Implemented in the nightly compiler and unstable.C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.final-comment-periodIn the final comment period and will be merged soon unless new substantive objections are raised.In the final comment period and will be merged soon unless new substantive objections are raised.