X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=pdns%2Fdnsdistdist%2Fdocs%2Freference%2Fdq.rst;h=a02c9d2da36b76e8081e64ad7c927c953b5897c5;hb=4c73e4afa6561ba86eeff2de9c81fe397c0911b9;hp=117ac18bb0b49eb806f111fc47270c33cf1b1f5f;hpb=2958a70da10f865db92a94695d5fd52867f90054;p=thirdparty%2Fpdns.git diff --git a/pdns/dnsdistdist/docs/reference/dq.rst b/pdns/dnsdistdist/docs/reference/dq.rst index 117ac18bb0..a02c9d2da3 100644 --- a/pdns/dnsdistdist/docs/reference/dq.rst +++ b/pdns/dnsdistdist/docs/reference/dq.rst @@ -38,7 +38,7 @@ This state can be modified from the various hooks. .. attribute:: DNSQuestion.qclass QClass (as an unsigned integer) of this question. - Can be compared against :ref:`DNSQClass`. + Can be compared against :ref:`DNSClass`. .. attribute:: DNSQuestion.qname @@ -47,7 +47,7 @@ This state can be modified from the various hooks. .. attribute:: DNSQuestion.qtype QType (as an unsigned integer) of this question. - Can be compared against ``dnsdist.A``, ``dnsdist.AAAA`` etc. + Can be compared against the pre-defined :ref:`constants ` like ``DNSQType.A``, DNSQType.AAAA``. .. attribute:: DNSQuestion.remoteaddr @@ -92,6 +92,15 @@ This state can be modified from the various hooks. :returns: A table of EDNSOptionView objects, indexed on the ECS Option code + .. method:: DNSQuestion:getServerNameIndication() -> string + + .. versionadded:: 1.4.0 + + Return the TLS Server Name Indication (SNI) value sent by the client over DoT or DoH, if any. See :func:`SNIRule` + for more information, especially about the availability of SNI over DoH. + + :returns: A string containing the TLS SNI value, if any + .. method:: DNSQuestion:getTag(key) -> string .. versionadded:: 1.2.0 @@ -169,8 +178,8 @@ DNSResponse object All parameters to ``func`` are integers: - ``section`` is the section in the packet and can be compared to :ref:`DNSSection` - - ``qclass`` is the QClass of the record. Can be compared to :ref:`DNSQClass` - - ``qtype`` is the QType of the record. Can be e.g. compared to ``dnsdist.A``, ``dnsdist.AAAA`` and the like. + - ``qclass`` is the QClass of the record. Can be compared to :ref:`DNSClass` + - ``qtype`` is the QType of the record. Can be e.g. compared to ``DNSQType.A``, ``DNSQType.AAAA`` :ref:`constants ` and the like. - ``ttl`` is the current TTL This function must return an integer with the new TTL.