From 7e080cf1aba9b269117221ab2c7b6dea8034393c Mon Sep 17 00:00:00 2001 From: Matias Fontanini Date: Tue, 20 Nov 2012 18:27:59 -0300 Subject: [PATCH] Added some missing DNS record types which contain domain names to the 'contains_dname' helper function. --- src/dns_record.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/dns_record.cpp b/src/dns_record.cpp index e64127e..ac57b59 100644 --- a/src/dns_record.cpp +++ b/src/dns_record.cpp @@ -37,8 +37,10 @@ namespace Tins { bool contains_dname(uint16_t type) { type = Endian::be_to_host(type); - return type == 15 || type == 5 || - type == 12 || type == 2; + return type == 1 || type == 2 || + type == 5 || type == 6 || + type == 12 || type == 15 || + type == 28 || type == 41; } DNSResourceRecord::DNSResourceRecord(DNSRRImpl *impl,