I must apologise because the patch does work, I was just being an idiot.<br><br>However this seems to create another problem. When I query localhost for an OpenNic domain, I just get a list of nameservers:<br><br>dig @localhost wiki.opennic.glue<br>
<br>; <<>> DiG 9.7.3 <<>> @localhost wiki.opennic.glue<br>; (1 server found)<br>;; global options: +cmd<br>;; Got answer:<br>;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 39353<br>
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 8, ADDITIONAL: 8<br><br>;; QUESTION SECTION:<br>;wiki.opennic.glue. IN A<br><br>;; AUTHORITY SECTION:<br>glue. 7200 IN NS ns2.opennic.glue.<br>
glue. 7200 IN NS ns21.opennic.glue.<br>glue. 7200 IN NS ns3.opennic.glue.<br>glue. 7200 IN NS ns4.opennic.glue.<br>glue. 7200 IN NS ns5.opennic.glue.<br>
glue. 7200 IN NS ns6.opennic.glue.<br>glue. 7200 IN NS ns7.opennic.glue.<br>glue. 7200 IN NS ns8.opennic.glue.<br><br>;; ADDITIONAL SECTION:<br>ns2.opennic.glue. 7200 IN A 216.87.84.210<br>
ns21.opennic.glue. 7200 IN A 202.83.95.229<br>ns3.opennic.glue. 7200 IN A 199.30.58.57<br>ns4.opennic.glue. 7200 IN A 84.200.228.200<br>ns5.opennic.glue. 7200 IN A 128.177.28.254<br>
ns6.opennic.glue. 7200 IN A 207.192.71.13<br>ns7.opennic.glue. 7200 IN A 66.244.95.11<br>ns8.opennic.glue. 7200 IN A 178.63.116.152<br><br>;; Query time: 2 msec<br>;; SERVER: 127.0.0.1#53(127.0.0.1)<br>
;; WHEN: Fri May 11 12:12:16 2012<br>;; MSG SIZE rcvd: 308<br><br>The same thing happens when I try to dig <a href="http://google.com">google.com</a>, this query should be passed on to the recursor.<br><br>Any thoughts?<br>
<br>Oli<br><br><div class="gmail_quote">On Fri, May 11, 2012 at 4:23 PM, Oliver Kent <span dir="ltr"><<a href="mailto:admin@peerx.co" target="_blank">admin@peerx.co</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
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>
</blockquote></div><br>