try
{
m_qname = target;
- m_axfrqlen = target.toStringNoDot().length();
+ m_axfrqlen = target.toStringRootDot().length();
m_adomain = m_adomains.end(); // skip loops in get() first time
return (this->*m_list_fcnt)( target, domain_id );
dn = getArg( "basedn" );
- qesc = toLower( m_pldap->escape( target.toString() ) );
+ qesc = toLower( m_pldap->escape( target.toStringRootDot() ) );
// search for SOARecord of target
filter = strbind( ":target:", "&(associatedDomain=" + qesc + ")(sOARecord=*)", getArg( "filter-axfr" ) );
m_qname = qname;
m_adomain = m_adomains.end(); // skip loops in get() first time
- if( m_qlog ) { L.log( "Query: '" + qname.toString() + "|" + qtype.getName() + "'", Logger::Error ); }
+ if( m_qlog ) { L.log( "Query: '" + qname.toStringRootDot() + "|" + qtype.getName() + "'", Logger::Error ); }
(this->*m_lookup_fcnt)( qtype, qname, dnspkt, zoneid );
}
catch( LDAPTimeout < )
const char* attronly[] = { NULL, "dNSTTL", "modifyTimestamp", NULL };
- qesc = toLower( m_pldap->escape( qname.toString() ) );
+ qesc = toLower( m_pldap->escape( qname.toStringRootDot() ) );
filter = "associatedDomain=" + qesc;
if( qtype.getCode() != QType::ANY )
const char* attronly[] = { NULL, "dNSTTL", "modifyTimestamp", NULL };
- qesc = toLower( m_pldap->escape( qname.toString() ) );
+ qesc = toLower( m_pldap->escape( qname.toStringRootDot() ) );
stringtok( parts, qesc, "." );
len = qesc.length();
vector<string> parts;
- qesc = toLower( m_pldap->escape( qname.toString() ) );
+ qesc = toLower( m_pldap->escape( qname.toStringRootDot() ) );
filter = "associatedDomain=" + qesc;
if( qtype.getCode() != QType::ANY )
if( m_result.count( "associatedDomain" ) )
{
for(auto i = m_result["associatedDomain"].begin(); i != m_result["associatedDomain"].end(); i++ ) {
- if( i->size() >= m_axfrqlen && i->substr( i->size() - m_axfrqlen, m_axfrqlen ) == m_qname.toString() /* ugh */ ) {
+ if( i->size() >= m_axfrqlen && i->substr( i->size() - m_axfrqlen, m_axfrqlen ) == m_qname.toStringRootDot() /* ugh */ ) {
m_adomains.push_back( DNSName(*i) );
}
}
if( m_result.count( "associatedDomain" ) )
{
for(auto i = m_result["associatedDomain"].begin(); i != m_result["associatedDomain"].end(); i++ ) {
- if( i->size() >= m_axfrqlen && i->substr( i->size() - m_axfrqlen, m_axfrqlen ) == m_qname.toString() /* ugh */ ) {
+ if( i->size() >= m_axfrqlen && i->substr( i->size() - m_axfrqlen, m_axfrqlen ) == m_qname.toStringRootDot() /* ugh */ ) {
m_adomains.push_back( DNSName(*i) );
}
}