Interface TargetAddress.Builder

    • Method Detail

      • ip

        TargetAddress.Builder ip​(String ip)

        One IPv4 address that you want to forward DNS queries to.

        Parameters:
        ip - One IPv4 address that you want to forward DNS queries to.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • port

        TargetAddress.Builder port​(Integer port)

        The port at Ip that you want to forward DNS queries to.

        Parameters:
        port - The port at Ip that you want to forward DNS queries to.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • ipv6

        TargetAddress.Builder ipv6​(String ipv6)

        One IPv6 address that you want to forward DNS queries to.

        Parameters:
        ipv6 - One IPv6 address that you want to forward DNS queries to.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • protocol

        TargetAddress.Builder protocol​(String protocol)

        The protocols for the target address. The protocol you choose needs to be supported by the outbound endpoint of the Resolver rule.

        Parameters:
        protocol - The protocols for the target address. The protocol you choose needs to be supported by the outbound endpoint of the Resolver rule.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        Protocol, Protocol
      • protocol

        TargetAddress.Builder protocol​(Protocol protocol)

        The protocols for the target address. The protocol you choose needs to be supported by the outbound endpoint of the Resolver rule.

        Parameters:
        protocol - The protocols for the target address. The protocol you choose needs to be supported by the outbound endpoint of the Resolver rule.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        Protocol, Protocol
      • serverNameIndication

        TargetAddress.Builder serverNameIndication​(String serverNameIndication)

        The Server Name Indication of the DoH server that you want to forward queries to. This is only used if the Protocol of the TargetAddress is DoH.

        Parameters:
        serverNameIndication - The Server Name Indication of the DoH server that you want to forward queries to. This is only used if the Protocol of the TargetAddress is DoH.
        Returns:
        Returns a reference to this object so that method calls can be chained together.