added notify query

just sets last_check column in domains table to NULL to force an update to slaves.
This commit is contained in:
Dan 2018-03-02 11:24:17 -06:00 committed by GitHub
parent 8b41b1e601
commit e22ca63bea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
} }