Re: [Pdns-users] Remove zombie/dead zones on superslave server

2022-11-30 Thread Robert L Mathews via Pdns-users

On 11/30/22 9:35 AM, William Edwards wrote:


`pdnsutil delete-zone` ?


That doesn't work for me:

 $ sudo pdnsutil -v delete-zone example.com
 Nov 30 16:09:25 [bindbackend] Done parsing domains, 2 rejected, 17011 
new, 0 removed

 Failed to delete domain 'example.com'

It's definitely in there:

 $ egrep example.com supermaster.conf
 # Superslave zone 'example.com.' (added: 2022-09-20 12:53:40 -0700) 
(account: ns1)

 zone "example.com" {
file "/var/lib/powerdns/zones.slave.d/example.com";

Does `pdnsutil delete-zone` work for others when using BIND auto 
secondaries? Is there any way I can make it show more info about why it 
"Failed to delete domain" the zone? (Nothing extra appears in the logs 
when I try this.)


--
Robert L Mathews

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


Re: [Pdns-users] Remove zombie/dead zones on superslave server

2022-11-30 Thread William Edwards via Pdns-users

Robert L Mathews via Pdns-users schreef op 2022-11-30 18:11:

On 11/30/22 6:20 AM, Pieter Lexis via Pdns-users wrote:


Removal of zones provisioned using the autoprimary must be done on the
secondaries themselves, as there is no way to signal this removal from
the primary to the secondary.


Jumping on this to ask something I've asked before, but unfortunately 
didn't get an answer to: how *do* you remove them from a secondary if 
you're using the BIND backend?


I've not been able to find a way to do it other than manually editing
the named.conf file on the secondary and then using "pdns_control 
rediscover", but it seems like that has a race condition (what if 
PowerDNS adds a new zone to the named.conf file while I'm editing it?).


`pdnsutil delete-zone` ?

--
With kind regards,

William Edwards

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


Re: [Pdns-users] Remove zombie/dead zones on superslave server

2022-11-30 Thread Robert L Mathews via Pdns-users

On 11/30/22 6:20 AM, Pieter Lexis via Pdns-users wrote:


Removal of zones provisioned using the autoprimary must be done on the
secondaries themselves, as there is no way to signal this removal from
the primary to the secondary.


Jumping on this to ask something I've asked before, but unfortunately 
didn't get an answer to: how *do* you remove them from a secondary if 
you're using the BIND backend?


I've not been able to find a way to do it other than manually editing
the named.conf file on the secondary and then using "pdns_control 
rediscover", but it seems like that has a race condition (what if 
PowerDNS adds a new zone to the named.conf file while I'm editing it?).


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


Re: [Pdns-users] Remove zombie/dead zones on superslave server

2022-11-30 Thread Pieter Lexis via Pdns-users
Hi,

On Mon, 2022-11-28 at 19:12 +0100, Andrea Biancalani via Pdns-users
wrote:
> is there a way to be noticed on master's GUI (or slave) of
> zombie/dead 
> zones in superslave server?

There is no option like that, as noted in the docs[1]:

=== Quote ===
Removal of zones provisioned using the autoprimary must be done on the
secondaries themselves, as there is no way to signal this removal from
the primary to the secondary.
=== End Quote ===

> Everytime I forgot to manually delete a zone from superslave and I 
> notice that watching total domain count, I need to diff export from
> 
> pdnsutil list-all-zones primary > out1 (on master)
> diff
> pdnsutil list-all-zones secondary > out2 (on slave)
> 
> 
> automatic pruning of zombie/dead zones on superslave will be great,
> but 
> even just notice that domain not served anymore is enough really.
> 
> Any advice or idea about it?

You could have a look at Catalog Zones[2] in the latest releases of the
Authoritative Server.
Catalog Zones can provision and remove zones on secondaries[3].

Depending on the backend used, you can also switch to Native domains.
This means that PowerDNS won't do primary/secondary but the underlying
database does the replication of the data between the nameservers.

Best regards,

Pieter

1 - 
https://docs.powerdns.com/authoritative/modes-of-operation.html#autoprimary-automatic-provisioning-of-secondaries
2 - https://docs.powerdns.com/authoritative/catalog.html
3 - 
https://datatracker.ietf.org/doc/draft-ietf-dnsop-dns-catalog-zones/

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


Re: [Pdns-users] Remove zombie/dead zones on superslave server

2022-11-30 Thread Andrea Biancalani via Pdns-users



Il 30/11/2022 13:11, William Edwards ha scritto:

Andrea Biancalani schreef op 2022-11-30 11:35:

Il 28/11/2022 19:52, William Edwards ha scritto:


Op 28 nov. 2022 om 19:12 heeft Andrea Biancalani via Pdns-users 
 het volgende geschreven:


 Good Evening,

is there a way to be noticed on master's GUI (or slave) of 
zombie/dead zones in superslave server?


Which GUI?



Don't you know about PowerDNS-Admin GUI?

https://github.com/PowerDNS-Admin/PowerDNS-Admin


Yes, I know about PowerDNS-Admin. I also know about Poweradmin. And 
PDNS Manager. And NSEdit!. Not to mention the ones I don't know.


So, which GUI?



Referring to PowerDNS-Admin here, missleading question. Sorry about that.
___
Pdns-users mailing list
Pdns-users@mailman.powerdns.com
https://mailman.powerdns.com/mailman/listinfo/pdns-users


Re: [Pdns-users] Remove zombie/dead zones on superslave server

2022-11-30 Thread Andrea Biancalani via Pdns-users



Il 30/11/2022 13:01, Brian Candler ha scritto:

On 30/11/2022 10:35, Andrea Biancalani via Pdns-users wrote:
is there a way to be noticed on master's GUI (or slave) of 
zombie/dead zones in superslave server?


Which GUI?



Don't you know about PowerDNS-Admin GUI?

https://github.com/PowerDNS-Admin/PowerDNS-Admin


"Which GUI" is a fair question, because there are many. See:

https://github.com/PowerDNS/pdns/wiki/WebFrontends



Didn't notice that, sorry about sarcastic tone.

Any idea about original question?___
Pdns-users mailing list
Pdns-users@mailman.powerdns.com
https://mailman.powerdns.com/mailman/listinfo/pdns-users


Re: [Pdns-users] Remove zombie/dead zones on superslave server

2022-11-30 Thread William Edwards via Pdns-users

Andrea Biancalani schreef op 2022-11-30 11:35:

Il 28/11/2022 19:52, William Edwards ha scritto:


Op 28 nov. 2022 om 19:12 heeft Andrea Biancalani via Pdns-users 
 het volgende geschreven:


 Good Evening,

is there a way to be noticed on master's GUI (or slave) of 
zombie/dead zones in superslave server?


Which GUI?



Don't you know about PowerDNS-Admin GUI?

https://github.com/PowerDNS-Admin/PowerDNS-Admin


Yes, I know about PowerDNS-Admin. I also know about Poweradmin. And PDNS 
Manager. And NSEdit!. Not to mention the ones I don't know.


So, which GUI?

--
With kind regards,

William Edwards

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


Re: [Pdns-users] Remove zombie/dead zones on superslave server

2022-11-30 Thread Brian Candler via Pdns-users

On 30/11/2022 10:35, Andrea Biancalani via Pdns-users wrote:
is there a way to be noticed on master's GUI (or slave) of 
zombie/dead zones in superslave server?


Which GUI?



Don't you know about PowerDNS-Admin GUI?

https://github.com/PowerDNS-Admin/PowerDNS-Admin


"Which GUI" is a fair question, because there are many. See:

https://github.com/PowerDNS/pdns/wiki/WebFrontends
___
Pdns-users mailing list
Pdns-users@mailman.powerdns.com
https://mailman.powerdns.com/mailman/listinfo/pdns-users


Re: [Pdns-users] Remove zombie/dead zones on superslave server

2022-11-30 Thread Andrea Biancalani via Pdns-users



Il 28/11/2022 19:52, William Edwards ha scritto:


Op 28 nov. 2022 om 19:12 heeft Andrea Biancalani via Pdns-users 
 het volgende geschreven:


 Good Evening,

is there a way to be noticed on master's GUI (or slave) of 
zombie/dead zones in superslave server?


Which GUI?



Don't you know about PowerDNS-Admin GUI?

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