[Pdns-users] pdnsutil usage for get-meta without attribute

2019-06-21 Thread Herve Maisonneuve
Hello pdns-mailing list,
I'm writing a backend within cassandra db and python driver through the
remotebackend module http-mode configured

When using the pdnsutil to retrieve all meta-data attached to a particular
zone, it's done by using the pdnsutil 'get-meta' command whithout
attribute, as mentionned in the documentation.
This command works very well for particular attribute but not when ther is
no attribute at all.
I guess my backend doesn't return the right object structure or sequence,
since pdsnutil should try to retrieve each value for each attribute
existing in DB.

I tried several data structures, but without success: for example ( and
more ..)

[{'ALLOW-AXFR-FROM': '192.168.123.0/24'}, {'ALLOW-AXFR-FROM': '
192.168.250.0/24'}, {'SOA-EDIT': '0'}]

[['ALLOW-AXFR-FROM', '192.168.123.0/24'], ['API-RECTIFY', '1'],
['PRESIGNED', '0'], ['SOA-EDIT', '1'], ['SOA-EDIT-API', '1']]

['ALLOW-AXFR-FROM=192.168.123.0/24', 'API-RECTIFY=1', 'PRESIGNED=0',
'SOA-EDIT=1', 'SOA-EDIT-API=1']

DB content for the requested domain

kind| content
-+--
 ALLOW-AXFR-FROM | 192.168.123.0/24
 API-RECTIFY |1
   PRESIGNED |0
SOA-EDIT |1
SOA-EDIT-API |1

result of the pdnsutil command :
***
pdnsutil get-meta osnworld.net
Jun 21 14:11:44 Reading random entropy from '/dev/urandom'
Jun 21 14:11:44 [bindbackend] Parsing 0 domain(s), will report when done
Jun 21 14:11:44 [bindbackend] Done parsing domains, 0 rejected, 0 new, 0
removed
Metadata for 'osnworld.net'


That means "nothing", I guess, and whatever i try to return

It's why I'm thinking that I don't return the right data format to make
pdnsutil understand the backend's answer

for a particular attribute it works fine:
***
pdnsutil get-meta osnworld.net API-RECTIFY
Jun 21 11:58:00 Reading random entropy from '/dev/urandom'
Jun 21 11:58:00 [bindbackend] Parsing 0 domain(s), will report when done
Jun 21 11:58:00 [bindbackend] Done parsing domains, 0 rejected, 0 new, 0
removed
Metadata for 'osnworld.net'
API-RECTIFY = 1


Could someone help to find the good data structure I should return

Thanks for all

Herve
___
Pdns-users mailing list
Pdns-users@mailman.powerdns.com
https://mailman.powerdns.com/mailman/listinfo/pdns-users


[Pdns-users] PowerDNS Authoritative Server 4.0.8 and 4.1.10 Released

2019-06-21 Thread Erik Winkels via Pdns-users
Hello,

(via: 
https://blog.powerdns.com/2019/06/21/powerdns-authoritative-server-4-0-8-and-4-1-10-released/
 )

We just released PowerDNS Authoritative Server 4.0.8 and 4.1.10.

These are security releases.

The 4.0.8 and 4.1.10 (together with 4.1.9) releases fix the following security 
advisories:

- PowerDNS Security Advisory 2019-04[1] (CVE-2019-10162)
- PowerDNS Security Advisory 2019-05[2] (CVE-2019-10163)

Please also see the 4.0.8[3] and 4.1.10[4] changelogs for more details.

The 4.0.8 tarball[5] (sig[6]) and 4.1.10 tarball[7] (sig[8]) are available at 
downloads.powerdns.com and packages for CentOS 6 and 7, Debian Jessie and 
Stretch, Ubuntu Trusty, Xenial and Bionic are available from repo.powerdns.com.

Please send us all feedback and issues you might have via the mailing list[9], 
or in case of a bug, via GitHub[10].

[ 1] 
https://doc.powerdns.com/authoritative/security-advisories/powerdns-advisory-2019-04.html
[ 2] 
https://doc.powerdns.com/authoritative/security-advisories/powerdns-advisory-2019-05.html
[ 3] 
https://doc.powerdns.com/authoritative/changelog/4.0.html#powerdns-authoritative-server-4-0-8
[ 4] https://doc.powerdns.com/authoritative/changelog/4.1.html#change-4.1.10
[ 5] https://downloads.powerdns.com/releases/pdns-4.0.8.tar.bz2
[ 6] https://downloads.powerdns.com/releases/pdns-4.0.8.tar.bz2.sig
[ 7] https://downloads.powerdns.com/releases/pdns-4.1.10.tar.bz2
[ 8] https://downloads.powerdns.com/releases/pdns-4.1.10.tar.bz2.sig
[ 9] https://mailman.powerdns.com/mailman/listinfo/pdns-users
[10] https://github.com/PowerDNS/pdns/issues/new
--
Erik Winkels
PowerDNS.COM BV -- https://www.powerdns.com


signature.asc
Description: PGP signature
___
Pdns-users mailing list
Pdns-users@mailman.powerdns.com
https://mailman.powerdns.com/mailman/listinfo/pdns-users