I'd like to stick all these message into their own logfile, not in /var/log/messages. Can someone give me straighforward instructions on how to do this? The manpage on dhcpd says,
Apr 13 23:17:24 mail dhcpd: Added reverse map from 18.104.22.168.in-addr.arpa. to HOLLY.hprs.local. Apr 13 23:17:24 mail named: client 192.168.0.56#55449: updating zone 'hprs.local/IN': deleting rrset at 'HOLLY.hprs.local' AAAA Apr 13 23:17:24 mail named: client 192.168.0.56#55449: updating zone 'hprs.local/IN': deleting rrset at 'HOLLY.hprs.local' A Apr 13 23:17:24 mail named: client 192.168.0.56#55449: updating zone 'hprs.local/IN': adding an RR at 'HOLLY.hprs.local' A Apr 13 23:18:44 mail dhcpd: isc-dhcpd-4.2.5-P1 Apr 13 23:19:04 mail dhcpd: DHCPINFORM from 192.168.0.57 via eth1 Apr 13 23:19:04 mail dhcpd: DHCPACK to 192.168.0.57 (c8:9c:dc:fe:e9:86) via eth1 Apr 13 23:19:29 mail dhcpd: DHCPINFORM from 192.168.0.58 via eth1 Apr 13 23:19:29 mail dhcpd: DHCPACK to 192.168.0.58 (2c:27:d7:2f:cf:7a) via eth1
The log-facility statement... and continues from there. These instructions are basically gobbledygook to me. What exactly settings do I need in dhcpd.conf, syslog.conf to get all dhcpd messages to go to the suggested /var/log/dhcpd.log? I don't really know what "log facilities" are and hope I don't need to get educated on that concept to simply log to a specific file.
This statement causes the DHCP server to do all of its logging on the specified log facility once the
dhcpd.conf file has been read. By default the DHCP server logs to the daemon facility. Possible log facili-
ties include auth, authpriv, cron, daemon, ftp, kern, lpr, mail, mark, news, ntp, security, syslog, user, uucp,
and local0 through local7. Not all of these facilities are available on all systems, and there may be other
facilities available on other systems.
In addition to setting this value, you may need to modify your syslog.conf file to configure logging of the
DHCP server. For example, you might add a line like this:
From novice to tech pro — start learning today.