[Logcheck-commits] Frédéric Brière : Adding dhcp rules for DNS updates by ddns_remove_a() (closes: #459875)

Frédéric Brière fbriere-guest at alioth.debian.org
Sun Mar 16 20:21:37 UTC 2008


Module: logcheck
Branch: master
Commit: 57696b49d0ffa00e436e990319dd62c3eb0251d4
URL:    http://git.debian.org/?p=logcheck/logcheck.git/?a=commit;h=57696b49d0ffa00e436e990319dd62c3eb0251d4

Author: Frédéric Brière <fbriere at fbriere.net>
Date:   Sun Mar 16 16:19:27 2008 -0400

Adding dhcp rules for DNS updates by ddns_remove_a()  (closes: #459875)

---

 rulefiles/linux/ignore.d.server/dhcp |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/rulefiles/linux/ignore.d.server/dhcp b/rulefiles/linux/ignore.d.server/dhcp
index 0ee283d..9a7fddd 100644
--- a/rulefiles/linux/ignore.d.server/dhcp
+++ b/rulefiles/linux/ignore.d.server/dhcp
@@ -31,3 +31,10 @@
 # udhcpd support
 ^\w{3} [ :0-9]{11} [._[:alnum:]-]+ udhcpd\[[0-9]+\]: sending OFFER of [.0-9]{7,15}$
 ^\w{3} [ :0-9]{11} [._[:alnum:]-]+ udhcpd\[[0-9]+\]: sending ACK to [.0-9]{7,15}$
+# These two rules match specifically for ddns_remove_a()
+^\w{3} [ :0-9]{11} [._[:alnum:]-]+ dhcpd: if [._[:alnum:]-]+ IN TXT "[[:alnum:]]+" rrset exists and [._[:alnum:]-]+ IN A [.0-9]{7,15} rrset exists delete [._[:alnum:]-]+ IN A [.0-9]{7,15}: success\.$
+^\w{3} [ :0-9]{11} [._[:alnum:]-]+ dhcpd: if [._[:alnum:]-]+ IN A rrset doesn't exist delete [._[:alnum:]-]+ IN TXT "[[:alnum:]]+": success\.$
+# The preceding rules could be rewritten as follows to match most output from
+# print_dns_status(), also called for the expr_dns_transaction opcode.  I'd
+# rather not proceed without hearing from someone using DDNS updates, though.
+#^\w{3} [ :0-9]{11} [._[:alnum:]-]+ dhcpd:( (if|and|add|delete) [._[:alnum:]-]+ ([[:digit:]]+ )?IN ((A|PTR|MX|CNAME)( [._[:alnum:]-]+)?|TXT "[^"]*"|CNAME <keydata>)( (rrset|domain) (exists|doesn't exist))?)+: success\.$




More information about the Logcheck-commits mailing list