Revision [1758]

Last edited on 2008-06-06 08:14:43 by WikiAdmin
Additions:
And remember to configure logrotate to rotate dhcpd.log
%%(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 WikiAdmin
Additions:
and not facility(auth,authpriv,cron,daemon,mail,news)
Deletions:
and not facility(auth,authpriv,cron,daemon,mail,news)


Revision [1756]

Edited on 2008-06-06 08:11:43 by WikiAdmin
Additions:
==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.


Revision [1467]

Edited on 2008-03-04 20:56:27 by WikiAdmin
Additions:
==Binding DHCPd to an interface==
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 WikiAdmin
Additions:
algorithm HMAC-MD5;
secret xxyy;
primary 127.0.0.1;
key DHCP_UPDATER;
primary 127.0.0.1;
key DHCP_UPDATER;
Deletions:
  algorithm HMAC-MD5;
  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 WikiAdmin
Additions:
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;
Deletions:
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;


Revision [1458]

Edited on 2008-03-04 06:59:20 by WikiAdmin
Additions:
{{parent page="Network"}}
Deletions:
{{prent page="Network"}}


Revision [1457]

Edited on 2008-03-04 06:58:48 by WikiAdmin
Additions:
This is untested. Basically when an IP is assigned, it will update DNS.
Deletions:
This us untested. Basically when an IP is assigned, it will update DNS.


Revision [1456]

Edited on 2008-03-04 06:58:38 by WikiAdmin
Additions:
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;


Revision [1455]

The oldest known version of this page was created on 2008-03-04 06:55:58 by WikiAdmin
Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki