I've put the script here guys: https://github.com/TvL2386/pdns-tools
On 08/20/2013 11:54 AM, Mohamed Brahimi wrote:
On Mon, Aug 19, 2013 at 5:27 PM, Klaus Darilion
klaus.mailingli...@pernau.at mailto:klaus.mailingli...@pernau.at
wrote:
That even ignores the serial and always transfers
On your MASTER:
#!/bin/bash
PASS='secret'
USER='pdns'
DB='pdns'
DOMAINS=$(echo SELECT name FROM domains p WHERE type = 'MASTER' |
mysql -N -u$USER -p$PASS $DB)
for DOMAIN in $DOMAINS; do
echo Sending notifies for: $DOMAIN
pdns_control notify $DOMAIN
done
Query should be: SELECT name FROM domains WHERE type = 'MASTER'
On 08/14/2013 01:09 PM, Tom van Leeuwen wrote:
On your MASTER:
#!/bin/bash
PASS='secret'
USER='pdns'
DB='pdns'
DOMAINS=$(echo SELECT name FROM domains p WHERE type = 'MASTER'
| mysql -N -u$USER -p$PASS
Hi Mohamed,
Thanks for your response!
I have a simple (crappy!) ruby script to notify all slaves, even with a
progressbar -_-
# File: notify-all-slaves.rb
require 'progressbar'
PASS='secret'
USER='powerdns'
DB='powerdns_db'
domains = `echo SELECT domains.name FROM domains; | mysql -N -u#{USER}
can fix the issues I'm having? Or that I'm just
asking too much of my setup and should pipe it down a bit. I understand
that 10*724 zone transfers at once may simply ask way too much from pdns...
Kind regards,
Tom van leeuwen
___
Pdns-users mailing