]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Apply suggestions from code review
authorEnsar Sarajčić <es.ensar@gmail.com>
Mon, 15 Sep 2025 09:01:43 +0000 (11:01 +0200)
committerGitHub <noreply@github.com>
Mon, 15 Sep 2025 09:01:43 +0000 (11:01 +0200)
Co-authored-by: Remi Gacogne <github@coredump.fr>
Signed-off-by: Ensar Sarajčić <es.ensar@gmail.com>
pdns/dnsdistdist/docs/reference/dnsparser.rst

index 5d010c84bbf169feb150b947b3e65ad83d4287bf..196f854dac4bacd3c5db7b5abdc5bb518fb804e1 100644 (file)
@@ -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: