[Pdns-users] MySQL Table prefix support?

bert hubert bert.hubert at netherlabs.nl
Sun Jul 31 16:05:29 UTC 2005

On Sun, Jul 31, 2005 at 02:30:27PM +0200, Maurice Sienema wrote:
> Is is possible to configure a prefix to MySQL tables like $prefix_domains,
> $prefix_records and $prefix_supermasters ?

Not as yet, but you can fake this by redefining all gmysql queries. Extract
the current queries like this:

$ /usr/sbin/pdns_server --launch=gmysql --config 2>&1 | grep -i gmysql | grep query=

And change all instances of 'records' by 'blah-records', and insert this in
your configuration.

It's not easy to fix this in any generic way, and it's not clear to me it
provides a real benefit for enough people.

Good luck, the above will work for you.

http://www.PowerDNS.com      Open source, database driven DNS Software 
http://netherlabs.nl              Open and Closed source services

More information about the Pdns-users mailing list