From: Ensar Sarajčić Date: Mon, 15 Sep 2025 09:01:43 +0000 (+0200) Subject: Apply suggestions from code review X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2d8db541278f2eb5667ce476318808da512cfbec;p=thirdparty%2Fpdns.git Apply suggestions from code review Co-authored-by: Remi Gacogne Signed-off-by: Ensar Sarajčić --- diff --git a/pdns/dnsdistdist/docs/reference/dnsparser.rst b/pdns/dnsdistdist/docs/reference/dnsparser.rst index 5d010c84b..196f854da 100644 --- a/pdns/dnsdistdist/docs/reference/dnsparser.rst +++ b/pdns/dnsdistdist/docs/reference/dnsparser.rst @@ -47,44 +47,44 @@ and then to create a :class:`DNSPacketOverlay` object: .. versionadded:: 2.1.0 - Returns the address from the record, as a :ref:`ComboAddress`, if it's qtype is A. + Returns the address from a record, as a :ref:`ComboAddress`, if the record's type is A. Nil is returned otherwise. :param str packet: The DNS payload. - :param DNSRecord record: The record to parse. + :param DNSRecord record: The record to parse, obtained via :meth:`DNSPacketOverlay:getRecord`. .. function:: parseAAAARecord(packet, record) -> ComboAddress .. versionadded:: 2.1.0 - Returns the address from the record, as a :ref:`ComboAddress`, if it's qtype is AAAA. + Returns the address from a record, as a :ref:`ComboAddress`, if the record's type is AAAA. Nil is returned otherwise. :param str packet: The DNS payload. - :param DNSRecord record: The record to parse. + :param DNSRecord record: The record to parse, obtained via :meth:`DNSPacketOverlay:getRecord`. .. function:: parseAddressRecord(packet, record) -> ComboAddress .. versionadded:: 2.1.0 - Returns the address from the record, as a :ref:`ComboAddress`, if it's qtype is A or AAAA. + Returns the address from a record, as a :ref:`ComboAddress`, if the record's type is A or AAAA. Nil is returned otherwise. :param str packet: The DNS payload. - :param DNSRecord record: The record to parse. + :param DNSRecord record: The record to parse, obtained via :meth:`DNSPacketOverlay:getRecord`. .. function:: parseCNAMERecord(packet, record) -> DNSName .. versionadded:: 2.1.0 - Returns the name from the record, as a :ref:`DNSName`, if it's qtype is CNAME. + Returns the name from a record, as a :ref:`DNSName`, if the record's type is CNAME. Nil is returned otherwise. :param str packet: The DNS payload. - :param DNSRecord record: The record to parse. + :param DNSRecord record: The record to parse, obtained via :meth:`DNSPacketOverlay:getRecord`. .. _DNSPacketOverlay: