@gibme/dns
    Preparing search index...

    Class SRV

    Encoder for DNS SRV (Service Locator) resource records (Type 33).

    Specifies the location of services by protocol and domain.

    RFC 2782

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    type: number = 33

    IANA resource record type identifier

    Methods

    • Decodes an SRV record from the byte stream.

      Parameters

      • reader: Reader

        the byte stream reader

      Returns SRV.Record

      the decoded SRV record

    • Encodes an SRV record into the byte stream.

      Parameters

      • writer: Writer

        the byte stream writer

      • data: SRV.Record

        the SRV record to encode

      • index: CompressionIndex

        compression index for DNS name pointer compression

      Returns void