From e22ca63bea0b14b3ad5c9a78800949a12ebff835 Mon Sep 17 00:00:00 2001 From: Dan <36902356+danc403@users.noreply.github.com> Date: Fri, 2 Mar 2018 11:24:17 -0600 Subject: [PATCH] added notify query just sets last_check column in domains table to NULL to force an update to slaves. --- dnsapi/dns_pdnsMysql.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dnsapi/dns_pdnsMysql.sh b/dnsapi/dns_pdnsMysql.sh index 766a4c6a..f04a40c3 100644 --- a/dnsapi/dns_pdnsMysql.sh +++ b/dnsapi/dns_pdnsMysql.sh @@ -136,7 +136,7 @@ rm_record() { notify_slaves() { 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 }