Skip to content

AddressResolverOptions does not accept bare IPv6 DNS server addresses #6194

Description

@shblue21

Version

4.x, 5.x

Context

AddressResolverOptions#setServers says each DNS server entry is the IP address of the DNS server, optionally followed by :port. The Vert.x guide also says the default DNS server port is 53 when no port is specified.

Based on that, I expected a bare IPv6 DNS server address such as Google Public DNS IPv6 to be accepted and use the default port.

Currently, resolver initialization fails for this value, apparently because the IPv6 colons are interpreted as part of the host/port syntax.

This is only about the bare IPv6/no-port case.

Steps to reproduce

Vertx.vertx(new VertxOptions()
  .setAddressResolverOptions(new AddressResolverOptions()
    .addServer("2001:4860:4860::8888"))); // Google Public DNS IPv6

Do you have a reproducer?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions