Class DnsHeader.Builder

  • Enclosing class:
    DnsHeader

    public static final class DnsHeader.Builder
    extends java.lang.Object
    Builder class for DnsHeader.
    • Constructor Detail

      • Builder

        public Builder()
        Constructor with parameters for the required properties of DnsHeader.
    • Method Detail

      • setAddress

        public DnsHeader.Builder setAddress​(java.lang.String address)
        This is used to define what is being asked or responded. format: hostname-or-ip
        Parameters:
        address - New value for the property.
      • setAddressType

        public DnsHeader.Builder setAddressType​(java.lang.String addressType)
        Possible values are: This is used to specify the type of the address. V4 - The address provided is an IPv4 domain name/IP address, the Type in query or response will be A V6 - The address provided is an IPv6 domain name/IP address, the Type in query or response will be AAAA
        Parameters:
        addressType - New value for the property.