// lcqname=labelReverse(lcqname);
DNSName dnc;
- string sbefore, safter;
- sbefore = before.toString();
- safter = after.toString();
- bool ret = this->getBeforeAndAfterNamesAbsolute(id, qname, dnc, sbefore, safter);
- before = DNSName(sbefore);
- after = DNSName(safter);
+ string relqname, sbefore, safter;
+ relqname=labelReverse(makeRelative(qname.toString(), zonename.toString()));
+ //sbefore = before.toString();
+ //safter = after.toString();
+ bool ret = this->getBeforeAndAfterNamesAbsolute(id, relqname, dnc, sbefore, safter);
+ before = DNSName(labelReverse(sbefore)) + zonename;
+ after = DNSName(labelReverse(safter)) + zonename;
// before=dotConcat(labelReverse(before), lczonename); FIXME
// after=dotConcat(labelReverse(after), lczonename); FIXME
virtual bool deleteTSIGKey(const DNSName& name) { return false; }
virtual bool getTSIGKeys(std::vector< struct TSIGKey > &keys) { return false; }
- virtual bool getBeforeAndAfterNamesAbsolute(uint32_t id, const DNSName& qname, DNSName& unhashed, string& before, string& after)
+ virtual bool getBeforeAndAfterNamesAbsolute(uint32_t id, const string& qname, DNSName& unhashed, string& before, string& after)
{
std::cerr<<"Default beforeAndAfterAbsolute called!"<<std::endl;
abort();