]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
I can't imagine how this worked - DNSName() as name for an OPT record. Should be "."
authorbert hubert <bert.hubert@netherlabs.nl>
Wed, 9 Dec 2015 12:30:02 +0000 (13:30 +0100)
committerbert hubert <bert.hubert@netherlabs.nl>
Wed, 9 Dec 2015 12:30:02 +0000 (13:30 +0100)
pdns/dnswriter.cc

index d7e58374ab96b137e9951ee20e4425ca32bfe974..8dd1dbb99e0542d799211ca93e39fed925b95e38 100644 (file)
@@ -105,7 +105,7 @@ void DNSPacketWriter::addOpt(int udpsize, int extRCode, int Z, const vector<pair
 
   ttl=ntohl(ttl); // will be reversed later on
 
-  startRecord(DNSName(), QType::OPT, ttl, udpsize, DNSResourceRecord::ADDITIONAL, false);
+  startRecord(DNSName("."), QType::OPT, ttl, udpsize, DNSResourceRecord::ADDITIONAL, false);
   for(optvect_t::const_iterator iter = options.begin(); iter != options.end(); ++iter) {
     xfr16BitInt(iter->first);
     xfr16BitInt(iter->second.length());