Update default script for DHCPD
"S.R." <[email protected]>
| Newsgroups | gmane.comp.log.logwatch.devel |
|---|---|
| Message-ID | <CADcC7WQMX3jKZoA8s69FpodyL=jMjDvVQxopQLP9+6j+CDDb+Q@mail.gmail.com> |
DHCP Server V3.0.5 running on CentOS 5.8 does not output trailing dot
after reverse DNS zone name. As such,
/usr/share/logwatch/scripts/services/dhcpd needs to be amended:
} elsif ($line =~ s/^added reverse map from
([\d]+).([\d]+).([\d]+).([\d]+).in-addr.arpa to
([a-zA-Z\d._-]+)\s*$/Add reverse $4.$3.$2.$1 -> $5/) {
if ($Detail >= 7) {
$data{'DNS Mappings'}{$line}++;
}
} elsif ($line =~ s/^removed reverse map on
([\d]+).([\d]+).([\d]+).([\d]+).in-addr.arpa\s*$/Remove reverse
$4.$3.$2.$1/) {
if ($Detail >= 7) {
$data{'DNS Mappings'}{$line}++;
In above, '.in-addr.arpa.' is replaced with '.in-addr.arpa' (last dot removed).
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/