diff options
author | morris <morris@fsi.io> | 2017-12-26 14:07:35 -0800 |
---|---|---|
committer | Pierre LALET <pierre.lalet@cea.fr> | 2018-01-12 11:07:49 +0100 |
commit | 5deed2762cc6c21c1944f9eb72eb91c74093947f (patch) | |
tree | 17a1ff62370394e8b93663806bd893e6a3436d8f /scapy | |
parent | a995f0f87f93b16c36d74efb287df5edb438a53b (diff) | |
download | scapy-5deed2762cc6c21c1944f9eb72eb91c74093947f.tar.gz |
RDataField treats NS, CNAME as DNS string type.
Diffstat (limited to 'scapy')
-rwxr-xr-x[-rw-r--r--] | scapy/layers/dns.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scapy/layers/dns.py b/scapy/layers/dns.py index a5312e41..17a7711f 100644..100755 --- a/scapy/layers/dns.py +++ b/scapy/layers/dns.py @@ -194,7 +194,7 @@ class RDataField(StrLenField): family = None if pkt.type == 1: # A family = socket.AF_INET - elif pkt.type == 12: # PTR + elif pkt.type in [2, 5, 12]: # NS, CNAME, PTR l = orb(s[0]) if l & 0xc0 and hasattr(pkt, "_orig_s") and pkt._orig_s: # Compression detected p = ((l & ~0xc0) << 8) + orb(s[1]) - 12 |