Skip to content

[RFC] API design for IPv6 and more types of records #43

Description

@WyriHaximus

Currently this package only supports A and CNAME records in it's implementation and after a quick chat with @clue earlier today we decided we need to come up with a good way support IPv6 and more record types. Here is a quick hack up to get the discussion started:

$resolver = new Resolver('8.8.8.8', Options::PREFER_IPV6);
// Tries to resolve AAAA (IPv6) record first and then tries the A (IPv4) record.
$resolver->resolve('wyrihaximus.net');
$resolver = new Resolver('8.8.8.8');
// Resolves to NS record
$resolver->resolve('wyrihaximus.net', RecordType::NS);

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions