[Pdns-users] Cleanest way to delete unexitant domains on slave?
Augie Schwer
augie.schwer at gmail.com
Fri Jun 27 13:50:59 UTC 2008
On Fri, Jun 27, 2008 at 12:17 AM, Anton - Valqk <lists at lozenetz.org> wrote:
> Augie Schwer wrote:
>> On Wed, Jun 25, 2008 at 7:19 AM, Anton - Valqk <lists at lozenetz.org> wrote:
>>> I'm wondering what' the cleanes way to delete unexistent (deleted)
>>> domains domains from slave powerdns that
>>> have been populated there from a supermaster server?
>> There is no automatic way; you must do this with code. Either diff
>> both data sets and deal with conflicts, or turn Supermaster off and
>> make sure when you add and delete from both the master and the slave.
> yes, I'm aware of this, dunno why you've ignored my second part of the
> email?
> That's what I'm asking - is there a way to list _all_ domain from the
> supermaster (with host, nslookup or dig?)
> or I should read directly from the database server?
> I'll then make a diff and delete missing domains from slave.
If you want to list all the domains in your MySQL PowerDNS back-end,
then you should do it with code; perhaps this code:
http://search.cpan.org/~augie/PowerDNS-Backend-MySQL-0.06/lib/PowerDNS/Backend/MySQL.pm#list_domain_names
--
Augie Schwer - Augie at Schwer.us - http://schwer.us
Key fingerprint = 9815 AE19 AFD1 1FE7 5DEE 2AC3 CB99 2784 27B0 C072
More information about the Pdns-users
mailing list