Browse Source

added notify query

just sets last_check column in domains table to NULL to force an update to slaves.
pull/1323/head
Dan 7 years ago
committed by GitHub
parent
commit
e22ca63bea
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      dnsapi/dns_pdnsMysql.sh

2
dnsapi/dns_pdnsMysql.sh

@ -136,7 +136,7 @@ rm_record() {
notify_slaves() { notify_slaves() {
root=$1 root=$1
### Need finished ###
mysql -ss "-h${PDNS_Host}" "-P${PDNS_Port}" "-u${PDNS_User}" "-p${PDNS_Pass}" -e "UPDATE ${PDNS_Database}.domains SET last_check=NULL WHERE name='${root}';"
return 0 return 0
} }

Loading…
Cancel
Save