Peter<br><br>Thanks for the quick reply. I added the patch so it appears like this:<br><br>/** strips a domain suffix from a domain, returns true if it stripped */<br>bool stripDomainSuffix(string *qname, const string &domain)<br>
{<br> if(!domain.size())<br> return true;<br> <br> if(!endsOn(*qname, domain))<br> return false;<br><br> if(toLower(*qname)==toLower(domain))<br> *qname="@";<br> else {<br> if((*qname)[qname->size()-domain.size()-1]!='.')<br>
return false;<br><br> qname->resize(qname->size()-domain.size()-1);<br> }<br> return true;<br>}<br><br>Still no joy :(<br><br>Oli<br>