Skip to content

Tracking issue for DNS in std::net #27705

Closed
@alexcrichton

Description

@alexcrichton

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 and getnameinfo 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

No one assigned

    Labels

    B-unstableBlocker: Implemented in the nightly compiler and unstable.C-tracking-issueCategory: 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.final-comment-periodIn the final comment period and will be merged soon unless new substantive objections are raised.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions