[Pdns-users] Slaving Opennic zones using bind-backend

Oliver Kent admin at peerx.co
Fri May 11 16:16:36 UTC 2012


I must apologise because the patch does work, I was just being an idiot.

However this seems to create another problem. When I query localhost for an
OpenNic domain, I just get a list of nameservers:

dig @localhost wiki.opennic.glue

; <<>> DiG 9.7.3 <<>> @localhost wiki.opennic.glue
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 39353
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 8, ADDITIONAL: 8

;; QUESTION SECTION:
;wiki.opennic.glue.        IN    A

;; AUTHORITY SECTION:
glue.            7200    IN    NS    ns2.opennic.glue.
glue.            7200    IN    NS    ns21.opennic.glue.
glue.            7200    IN    NS    ns3.opennic.glue.
glue.            7200    IN    NS    ns4.opennic.glue.
glue.            7200    IN    NS    ns5.opennic.glue.
glue.            7200    IN    NS    ns6.opennic.glue.
glue.            7200    IN    NS    ns7.opennic.glue.
glue.            7200    IN    NS    ns8.opennic.glue.

;; ADDITIONAL SECTION:
ns2.opennic.glue.    7200    IN    A    216.87.84.210
ns21.opennic.glue.    7200    IN    A    202.83.95.229
ns3.opennic.glue.    7200    IN    A    199.30.58.57
ns4.opennic.glue.    7200    IN    A    84.200.228.200
ns5.opennic.glue.    7200    IN    A    128.177.28.254
ns6.opennic.glue.    7200    IN    A    207.192.71.13
ns7.opennic.glue.    7200    IN    A    66.244.95.11
ns8.opennic.glue.    7200    IN    A    178.63.116.152

;; Query time: 2 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Fri May 11 12:12:16 2012
;; MSG SIZE  rcvd: 308

The same thing happens when I try to dig google.com, this query should be
passed on to the recursor.

Any thoughts?

Oli

On Fri, May 11, 2012 at 4:23 PM, Oliver Kent <admin at peerx.co> wrote:

> Peter
>
> Thanks for the quick reply. I added the patch so it appears like this:
>
> /** strips a domain suffix from a domain, returns true if it stripped */
> bool stripDomainSuffix(string *qname, const string &domain)
> {
>   if(!domain.size())
>     return true;
>
>   if(!endsOn(*qname, domain))
>     return false;
>
>   if(toLower(*qname)==toLower(domain))
>     *qname="@";
>   else {
>     if((*qname)[qname->size()-domain.size()-1]!='.')
>       return false;
>
>     qname->resize(qname->size()-domain.size()-1);
>   }
>   return true;
> }
>
> Still no joy :(
>
> Oli
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.powerdns.com/pipermail/pdns-users/attachments/20120511/d8b90958/attachment-0001.html>


More information about the Pdns-users mailing list