Revision [1758]
Last edited on 2008-06-06 08:14:43 by WikiAdminAdditions:
And remember to configure logrotate to rotate dhcpd.log
%%(text;logrotate.d/syslog-ng)
/var/log/dhcpd.log {
rotate 4
missingok
notifempty
weekly
compress
%%(text;logrotate.d/syslog-ng)
/var/log/dhcpd.log {
rotate 4
missingok
notifempty
weekly
compress
Revision [1757]
Edited on 2008-06-06 08:12:08 by WikiAdminAdditions:
and not facility(auth,authpriv,cron,daemon,mail,news)
Deletions:
Revision [1756]
Edited on 2008-06-06 08:11:43 by WikiAdminAdditions:
==Filtering dhcp log with syslog-ng==
Configure dhcpd to log to local7, then edit syslog-ng.conf:
# Add destination and filter.
destination df_dhcpd { file("/var/log/dhcpd.log"); };
filter f_dhcpd { match("dhcpd"); };
# Modify /var/log/messages to exclude dhcpd logs
filter f_messages {
level(info,notice,warn)
and not facility(auth,authpriv,cron,daemon,mail,news)
and not match("dhcpd");
# Finally define dhcpd log
log {
source(s_all);
filter(f_dhcpd);
destination(df_dhcpd);
Yea.. sometimes Linux stuff can be overly complicated.
Configure dhcpd to log to local7, then edit syslog-ng.conf:
# Add destination and filter.
destination df_dhcpd { file("/var/log/dhcpd.log"); };
filter f_dhcpd { match("dhcpd"); };
# Modify /var/log/messages to exclude dhcpd logs
filter f_messages {
level(info,notice,warn)
and not facility(auth,authpriv,cron,daemon,mail,news)
and not match("dhcpd");
# Finally define dhcpd log
log {
source(s_all);
filter(f_dhcpd);
destination(df_dhcpd);
Yea.. sometimes Linux stuff can be overly complicated.
Revision [1467]
Edited on 2008-03-04 20:56:27 by WikiAdminAdditions:
==Binding DHCPd to an interface==
If you want DHCPd to bind to a certain interface, edit /etc/sysconfig/dhcpd and set
DHCPDARGS=eth1
If you want DHCPd to bind to a certain interface, edit /etc/sysconfig/dhcpd and set
DHCPDARGS=eth1
Revision [1460]
Edited on 2008-03-04 07:02:46 by WikiAdminAdditions:
algorithm HMAC-MD5;
secret xxyy;
primary 127.0.0.1;
key DHCP_UPDATER;
primary 127.0.0.1;
key DHCP_UPDATER;
secret xxyy;
primary 127.0.0.1;
key DHCP_UPDATER;
primary 127.0.0.1;
key DHCP_UPDATER;
Deletions:
secret xxyy;
primary 127.0.0.1;
key DHCP_UPDATER;
primary 127.0.0.1;
key DHCP_UPDATER;
Revision [1459]
Edited on 2008-03-04 07:02:19 by WikiAdminAdditions:
ddns-update-style interim;
ignore client-updates;
key DHCP_UPDATER {
algorithm HMAC-MD5;
secret xxyy;
};
zone domain.com. {
primary 127.0.0.1;
key DHCP_UPDATER;
zone 1.168.192.in-addr.arpa. {
primary 127.0.0.1;
key DHCP_UPDATER;
ignore client-updates;
key DHCP_UPDATER {
algorithm HMAC-MD5;
secret xxyy;
};
zone domain.com. {
primary 127.0.0.1;
key DHCP_UPDATER;
zone 1.168.192.in-addr.arpa. {
primary 127.0.0.1;
key DHCP_UPDATER;
Deletions:
server-identifier server;
ddns-domainname "example.com.";
ddns-rev-domainname "in-addr.arpa.";
ddns-update-style interim;
ddns-updates on;
ignore client-updates;
zone example.com. {
primary 127.0.0.1;
key rndckey;
Revision [1458]
Edited on 2008-03-04 06:59:20 by WikiAdminAdditions:
{{parent page="Network"}}
Deletions:
Revision [1457]
Edited on 2008-03-04 06:58:48 by WikiAdminAdditions:
This is untested. Basically when an IP is assigned, it will update DNS.
Deletions:
Revision [1456]
Edited on 2008-03-04 06:58:38 by WikiAdminAdditions:
This us untested. Basically when an IP is assigned, it will update DNS.
authoritative;
include "/etc/rndc.key";
server-identifier server;
ddns-domainname "example.com.";
ddns-rev-domainname "in-addr.arpa.";
ddns-update-style interim;
ddns-updates on;
ignore client-updates;
zone example.com. {
primary 127.0.0.1;
key rndckey;
authoritative;
include "/etc/rndc.key";
server-identifier server;
ddns-domainname "example.com.";
ddns-rev-domainname "in-addr.arpa.";
ddns-update-style interim;
ddns-updates on;
ignore client-updates;
zone example.com. {
primary 127.0.0.1;
key rndckey;