From e26d80d9d21aef41c2835c260efbd4b6bb642467 Mon Sep 17 00:00:00 2001 From: Bob Halley Date: Sun, 10 May 2020 09:36:45 -0700 Subject: [PATCH] add info about compression assumptions in dns.name.Name.to_wire() --- dns/name.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dns/name.py b/dns/name.py index addfa9a8..1d151c6d 100644 --- a/dns/name.py +++ b/dns/name.py @@ -613,7 +613,10 @@ class Name(object): containing the wire name will be returned. *compress*, a ``dict``, is the compression table to use. If - ``None`` (the default), names will not be compressed. + ``None`` (the default), names will not be compressed. Note that + the compression code assumes that compression offset 0 is the + start of *file*, and thus compression will not be correct + if this is not the case. *origin* is a ``dns.name.Name`` or ``None``. If the name is relative and origin is not ``None``, then *origin* will be appended -- 2.47.3