summaryrefslogtreecommitdiff
path: root/doc/slapi-dnsnotify.8
blob: c75d1bf9b5668a24f0f36f165caf8e99d4f40388 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
.\" 
.\" Copyright (c) 2008, Stef Walter
.\" All rights reserved.
.\"
.\" Redistribution and use in source and binary forms, with or without 
.\" modification, are permitted provided that the following conditions 
.\" are met:
.\" 
.\"     * Redistributions of source code must retain the above 
.\"       copyright notice, this list of conditions and the 
.\"       following disclaimer.
.\"     * Redistributions in binary form must reproduce the 
.\"       above copyright notice, this list of conditions and 
.\"       the following disclaimer in the documentation and/or 
.\"       other materials provided with the distribution.
.\"     * The names of contributors to this software may not be 
.\"       used to endorse or promote products derived from this 
.\"       software without specific prior written permission.
.\" 
.\" THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 
.\" "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 
.\" LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 
.\" FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE 
.\" COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, 
.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
.\" BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS 
.\" OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 
.\" AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 
.\" OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF 
.\" THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH 
.\" DAMAGE.
.\" 
.\"
.\" CONTRIBUTORS
.\"  Stef Walter <stef@memberwebs.com>
.\"
.Dd June, 2008
.Dt slapi-dnsnotify
.Os slapi-dnsnotify 
.Sh NAME
.Nm slapi-dnsnotify
.Nd is a plugin for an LDAP based DNS server which notifies slave name 
servers when a zone is changed. 
.Sh DESCRIPTION
.Nm slapi-dnsnotify
is a plugin for OpenLDAP or other LDAP servers. It watches for changes in 
the serial number of a DNS zone stored in the LDAP server, and notifies DNS 
slave servers to refresh their copy of the zone. 
.Pp
It can also increment the serial number of a zone whenever changes in that 
zone are made.
.Sh DETAILS
This is a SLAPI 'postoperation' plugin. The entry point is 'plugin_init'. 
See below for an example of how to configure it. 
.Pp
An LDAP entry is assumed to be a zone if it has an 
.Em sOARecord
attribute. The exact name of the attribute can be controlled with the 
.Em soa-attribute
option. The information about the zone, such as name servers and zone name are 
retrieved from the same LDAP entry, that is the one with the SOA attribute 
on it.  
.Pp
Notification requests are handled by the 
.Xr notify-dns-slaves 5
tool. The notifications are not sent immediately, and multiple notifications 
that occur close together are combined into a single notification. See the 
.Em notify-delay
option.
.Pp
To increment the serial number of a zone automatically whenever something in 
the zone changes, use the 
.Em enable-auto-serial
option. All LDAP entries beneath the entry with the SOA attribute are assumed 
to be part of that zone for purposes of incrementing the serial number. 
.Sh OPTIONS
Options are specified one after another with spaces separating them. If an 
option requires a value, then separate the name and value with a equal sign.
eg: name=value
.Bl -tag -width Fl
.It Cd base-dn
The base DN in the LDAP tree where DNS zones are stored.
.Pp
[ Required ]
.It Cd disable-notify
Disable all notification of DNS slave servers.
.Pp
[ Optional ]
.It Cd enable-auto-serial
Automatically update the serial number in the DNS zones when any LDAP 
entries underneath the zone entry are modified.
.Pp
[ Optional ]
.It Cd notify-delay
The number of seconds to delay before sending notifications to DNS slave 
servers. This allows multiple notifications to be coalesced into one.
.Pp
[ Default:
.Em 5
]
.It Cd ns-attribute
The name of the LDAP attributeType that contains the DNS NS record for a zone.
.Pp
[ Default:
.Em nSRecord
]
.It Cd soa-attribute
The name of the LDAP attributeType that contains the DNS SOA record for a zone. 
.Pp
[ Default: 
.Em sOARecord
]
.It Cd zone-attribute
The name of the LDAP attributeType that contains the complete name of a zone.
.Pp
[ Default:
.Em associatedDomain
]
.El
.Sh EXAMPLES
Here is an example of how to configure this plugin with OpenLDAP, using an LDAP 
base DN of 
.Em dc=example,dc=com
and with automatic incrementing of the zone serial number and a notification 
delay of 10 seconds.
.Pp
The following would go into your 
.Xr slapd.conf 5
file: 
.Bd -literal -offset indent
plugin postoperation \\
	/usr/local/lib/slapi-dnsnotify.so plugin_init \\
	notify-delay=10 base-dn=ou=web,dc=ws,dc=local \\
	enable-auto-serial 
.Ed
.Pp
The above may all be specified on one line. The backslashes at the end make 
it more readable and maintainable.  
.Sh SEE ALSO
.Xr slapd.conf 5
.Xr notify-dns-slaves 1
.Sh AUTHOR
.An Stef Walter Aq stef@memberwebs.com