[Pdns-users] Enable/Disable domain without breaking PowerDNS.
Tino Donderwinkel
tino at tino.nl
Thu Jun 30 20:59:19 UTC 2011
Hi,
I have altered the 'domains' table in MySQL to include a Boolean field
'enabled'. This field 'tells' PowerDNS whether or not the domain is
'enabled'.
If the domain is not 'enabled', no queries for that domain must to be served
to clients.
In order for this to work, I have altered some of the basic queries by means
of the configuration file.
In the documentation (section 5.4) these queries are explained. Some of the
explanations spell out that the queries are 'used internally as well'.
Of course, I do not want to break the inner workings of PowerDNS.
For example the 'any-query'. I have modified it in such a way that it yields
no results when the domain is not 'enabled'. But what does this mean for the
'internal use' of this query? What are the side effects of modifying the
query in this way? (E.g. the query yields no results, but the domain does
'exist'.)
This goes, of course, for all queries.
Any ideas, hints or tips on this?
Thanks in advance,
Tino (Novice PowerDNS user)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.powerdns.com/pipermail/pdns-users/attachments/20110630/86590fde/attachment.html>
More information about the Pdns-users
mailing list