]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Merge pull request #4871 from pieterlexis/docs-fixes
authorPieter Lexis <pieterlexis@users.noreply.github.com>
Tue, 24 Jan 2017 10:56:19 +0000 (11:56 +0100)
committerGitHub <noreply@github.com>
Tue, 24 Jan 2017 10:56:19 +0000 (11:56 +0100)
Documentation improvements

docs/markdown/authoritative/backend-ldap.md
docs/markdown/changelog.raw.md
docs/markdown/end-of-life.md
docs/process-md.sh

index bb1d74c9f848902d74897a03975024cb17d4cf78..a875e614df6d57497cb8d7d698e6f0a348bc0eb7 100644 (file)
@@ -1,5 +1,4 @@
-# LDAP backend
-
+# LDAP backend
 As of PowerDNS Authoritative Server 4.0.0, the LDAP backend is fully supported.
 
 **Warning**: Grégory Oestreicher has forked the LDAP backend shortly before our 3.2 release, after which a lot of development happened in a short time. We are working to upstream this work.
@@ -16,490 +15,346 @@ The original author for this module is Norbert Sendetzky. This page is based on
 |Superslave|No|
 |Autoserial|No|
 |DNSSEC|No|
-
-
-
+|Disabled data|No|
+|Comments|No|
+|Module name|`ldap`|
+|Launch name|`ldap`|
 
 # Introduction
 
-Rationale
----------
+## Rationale
+The LDAP backend enables PowerDNS to retrieve DNS information from any standard compliant LDAP server.
+This is extremely handy if information about hosts is already stored in an LDAP tree.
 
-This HOWTO documents the steps necessary to build and use the LDAP DNS
-backend I've written for PowerDNS, an extremely versatile name server.
-This backend enables PowerDNS to retrieve DNS information from any
-standard compliant LDAP server. This is extremely handy if you have
-already stored information about your hosts in your LDAP tree.
+## Schemas
 
-Schemas
--------
-
-The schema is based on the 'uninett' dnszone schema, with a few types
-added by number as designed in that schema.
+The schema is based on the 'uninett' dnszone schema, with a few types added by number as designed in that schema:
 
 ```
 !!include=../modules/ldapbackend/dnsdomain2.schema
 ```
 
-The LDAP dnsdomain2 schema contains the additional object descriptions
-which are required by the LDAP server to check the validity of entries
-when they are added. Please consult the documentation of your LDAP
-server to find out how to add this schema to the server.
-
+The LDAP dnsdomain2 schema contains the additional object descriptions which are required by the LDAP server to check the validity of entries when they are added.
+Please consult the documentation of the LDAP server to find out how to add this schema to the server.
 
 # Installation
+The LDAP backend can be compiled by adding `ldap` to either the `--with-modules` or `--with-dynmodules` `configure` options.
 
-Configuration options
----------------------
+When using packages, the `pdns-backend-ldap` package should be installed.
 
-There are a few options through the LDAP DNS backend can be configured
-for your environment. Add them to the pdns.conf file located in
-/etc/powerdns or /usr/local/etc/ (depends on your configuration while
-compiling):
+# Configuration options
+There are a few options through the LDAP DNS backend can be configured.
+Add them to the `pdns.conf` file.
 
-`launch=ldap`
+To launch the ldap backend:
 
-You'll have to add the LDAP DNS backend to the PowerDNS backends first
-by altering the `launch` declaration in the pdns.conf file. Otherwise the
-options below won't have any effect.
+```
+launch=ldap
+```
 
-ldap-host (default "ldap://127.0.0.1:389/") : The values assigned to this parameter can be LDAP URIs (e.g. <ldap://127.0.0.1/> or <ldaps://127.0.0.1/>) describing the connection to the LDAP server. There can be multiple LDAP URIs specified for load balancing and high availability if they are separated by spaces. In case the used LDAP client library doesn't support LDAP URIs as connection parameter, use plain host names or IP addresses instead (both may optionally be followed by a colon and the port).
+## `ldap-host`
+(default "ldap://127.0.0.1:389/") : The values assigned to this parameter can be LDAP URIs (e.g. `ldap://127.0.0.1/` or `ldaps://127.0.0.1/`) describing the connection to the LDAP server.
+There can be multiple LDAP URIs specified for load balancing and high availability if they are separated by spaces.
+In case the used LDAP client library doesn't support LDAP URIs as connection parameter, use plain host names or IP addresses instead (both may optionally be followed by a colon and the port).
 
 ## `ldap-starttls`
-(default "no") : Use TLS encrypted connections to the LDAP server. This is only allowed if ldap-host is a <ldap://> URI or a host name / IP address.
-
+(default "no") : Use TLS encrypted connections to the LDAP server.
+This is only allowed if `ldap-host` is a `ldap://` URI or a host name / IP address.
 
 ## `ldap-basedn`
-(default "") : The PowerDNS LDAP DNS backend searches below this path for objects containing the specified DNS information. The retrieval of attributes is limited to this subtree. This option must be set to the path according to the layout of your LDAP tree, e.g. ou=hosts,o=linuxnetworks,c=de is the DN to my objects containing the DNS information.
+(default "") : The PowerDNS LDAP DNS backend searches below this path for objects containing the specified DNS information.
+The retrieval of attributes is limited to this subtree.
+This option must be set to the path according to the layout of the LDAP tree, e.g. `ou=hosts,o=example,c=net` is the DN to my objects containing the DNS information.
 
 ## `ldap-binddn`
-(default "") : Path to the object to authenticate against. Should only be used, if the LDAP server doesn't support anonymous binds.
+(default "") : Path to the object to authenticate against.
+Should only be used if the LDAP server doesn't support anonymous binds.
 
 ## `ldap-secret`
-(default "") : Password for authentication against the object specified by ldap-binddn
+(default "") : Password for authentication against the object specified by `ldap-binddn`.
 
 ## `ldap-method`
 (default "simple") :
 
--   `simple`: Search the requested domain by comparing the associatedDomain
-    attributes with the domain string in the question.
-
--   `tree`: Search entires by translating the domain string into a LDAP dn. Your
-    LDAP tree must be designed in the same way as your DNS LDAP tree.
-    The question for "myhost.linuxnetworks.de" would translate into
-    "dc=myhost,dc=linuxnetworks,dc=de,ou=hosts=..." and the entry where
-    this dn points to would be evaluated for dns records.
-
--   `strict`: Like simple, but generates PTR records from aRecords or aAAARecords.
-    Using "strict", you won't be able to do zone transfers for
-    reverse zones.
+ - `simple`: Search the requested domain by comparing the associatedDomain attributes with the domain string in the question.
+ - `tree`: Search entires by translating the domain string into a LDAP dn. Your LDAP tree must be designed in the same way as the DNS LDAP tree. The question for "myhost.linuxnetworks.de" would translate into "dc=myhost,dc=linuxnetworks,dc=de,ou=hosts=..." and the entry where this dn points to would be evaluated for dns records.
+ - `strict`: Like simple, but generates PTR records from aRecords or aAAARecords. Using "strict", zone transfers for reverse zones are not possible.
 
 ## `ldap-filter-axfr`
 (default "(:target:)" ) : LDAP filter for limiting AXFR results (zone transfers), e.g. (&(:target:)(active=yes)) for returning only entries whose attribute "active" is set to "yes".
 
-<!-- -->
-
 ## `ldap-filter-lookup`
 (default "(:target:)" ) : LDAP filter for limiting IP or name lookups, e.g. (&(:target:)(active=yes)) for returning only entries whose attribute "active" is set to "yes".
 
 # Example
+## Tree design
+The DNS LDAP tree should be designed carefully to prevent mistakes, which are hard to correct afterwards.
+The best solution is to create a subtree for all host entries which will contain the DNS records.
+This can be done the simple way or in a tree style.
 
-Tree design
------------
-
-The DNS LDAP tree should be designed carefully to prevent mistakes,
-which are hard to correct afterwards. The best solution is to create a
-subtree for all host entries which will contain the DNS records. You can
-do this the simple way or in a tree style.
+DN of a simple style example record (e.g. myhost.example.com):
 
-DN of a simple style example record (e.g. myhost.linuxnetworks.de):
+`dn:dc=myhost,dc=example,ou=hosts,...`
 
-`dn: dc=myhost,dc=linuxnetworks,ou=hosts,...`
+DN of a tree style example record (e.g. myhost.test.example.com):
 
-DN of a tree style example record (e.g. myhost.test.linuxnetworks.de):
+`dn:dc=myhost,dc=test,dc=example,dc=com,ou=hosts,...`
 
-`dn: dc=myhost,dc=test,dc=linuxnetworks,dc=de,ou=hosts,...`
-
-Basic objects
--------------
-
-Each domain (or zone for BIND users) must include one object containing
-a SOA (Start Of Authority) record. This object can also contain the
-attribute for a MX (Mail eXchange) and a NS (Name Server) record. These
-attributes allow one or more values, e.g. for a backup mail or name
-server:
+## Basic objects
+Each domain (or zone for BIND users) must include one object containing a SOA (Start Of Authority) record.
+This object can also contain the attribute for a MX (Mail eXchange) and one or more NS (Name Server) records.
+These attributes allow one or more values, e.g. for a backup mail or name server:
 
 ```
-dn: dc=linuxnetworks,ou=hosts,o=linuxnetworks,c=de
-objectclass: top
-objectclass: dcobject
-objectclass: dnsdomain
-objectclass: domainrelatedobject
-dc: linuxnetworks
-soarecord: ns.linuxnetworks.de me@linuxnetworks.de 1 1800 3600 86400 7200
-nsrecord: ns.linuxnetworks.de
-mxrecord: 10 mail.linuxnetworks.de
-mxrecord: 20 mail2.linuxnetworks.de
-associateddomain: linuxnetworks.de
+dn:dc=example,ou=hosts,o=example,c=com
+objectclass:top
+objectclass:dcobject
+objectclass:dnsdomain
+objectclass:domainrelatedobject
+dc:example
+soarecord:ns.example.com me@example.com 1 1800 3600 86400 7200
+nsrecord:ns.example.com
+mxrecord:10 mail.example.com
+mxrecord:20 mail2.example.com
+associateddomain:example.com
 ```
 
-A simple mapping between name and IP address can be specified by an
-object containing an arecord and an associateddomain. You don't have to
-bother about a reverse mapping (ip address to name) if you don't want
-to, because this can be done automagically by the LDAP DNS backend if
-you set ldap-method=strict in pdns.conf.
+A simple mapping between name and IP address can be specified by an object containing an `arecord` and an `associateddomain`.
+There is no need to add reverse records to the (PTR records from the IP to the name), as this can be done automagically by the LDAP backend if `ldap-method=strict` is set in `pdns.conf`.
 
 ```
-dn: dc=server,dc=linuxnetworks,ou=hosts,o=linuxnetworks,c=de
-objectclass: top
-objectclass: dnsdomain
-objectclass: domainrelatedobject
-dc: server
-arecord: 10.1.0.1
-arecord: 192.168.0.1
-associateddomain: server.linuxnetworks.de
+dn:dc=server,dc=example,ou=hosts,o=example,c=de
+objectclass:top
+objectclass:dnsdomain
+objectclass:domainrelatedobject
+dc:server
+arecord:10.1.0.1
+arecord:192.168.0.1
+associateddomain:server.example.com
 ```
 
-Be aware of the fact that these examples work if ldap-method is simple
-or strict. For tree mode you have to modify all DNs according to the
-algorithm described in the section above.
+Be aware of the fact that these examples work if `ldap-method` is `simple` or `strict`.
+For tree mode, all DNs will have to be modified according to the algorithm described in the section above.
 
-Wildcards
----------
+## Wildcards
+Wild-card domains are possible by using the asterisk in the `associatedDomain` value like it is used in the bind zone files.
+The "dc" attribute can be set to any value in simple or strict mode - this doesn't matter.
 
-Wild-card domains are possible by using the asterisk in the
-associatedDomain value like it is used in the bind zone files. The "dc"
-attribute can be set to any value in simple or strict mode - this
-doesn't matter.
-
-dn: dc=any,dc=linuxnetworks,ou=hosts,o=linuxnetworks,c=de
-objectclass: top
-objectclass: dnsdomain
-objectclass: domainrelatedobject
-dc: any
-arecord: 192.168.0.1
-associateddomain: *.linuxnetworks.de
+```
+dn:dc=any,dc=example,ou=hosts,o=example,c=de
+objectclass:top
+objectclass:dnsdomain
+objectclass:domainrelatedobject
+dc:any
+arecord:192.168.0.1
+associateddomain:*.example.com
+```
 
 In tree mode wild-card entries has to look like this instead:
 
 ```
-dn: dc=*,dc=linuxnetworks,dc=de,ou=hosts,o=linuxnetworks,c=de
-objectclass: top
-objectclass: dnsdomain
-objectclass: domainrelatedobject
-dc: *
-arecord: 192.168.0.1
-associateddomain: *.linuxnetworks.de
+dn:dc=*,dc=example,dc=de,ou=hosts,o=example,c=de
+objectclass:top
+objectclass:dnsdomain
+objectclass:domainrelatedobject
+dc:*
+arecord:192.168.0.1
+associateddomain:*.example.com
 ```
 
-Aliases
--------
-
-Aliases for an existing DNS object have to be defined in a separate LDAP
-object. You can create one object per alias (this is a must in tree
-mode) or add all aliases (as values of associateddomain) to one object.
-The only thing which is not allowed is to create loops by using the same
-name in associateddomain and in cnamerecord
+## Aliases
+Aliases for an existing DNS object have to be defined in a separate LDAP object.
+One object should be create per alias (this is a must in tree mode) or add all aliases (as values of `associateddomain`) to one object.
+The only thing which is not allowed is to create loops by using the same name in `associateddomain` and in `cnamerecord`.
 
 ```
-dn: dc=server-aliases,dc=linuxnetworks,ou=hosts,o=linuxnetworks,c=de
-objectclass: top
-objectclass: dnsdomain
-objectclass: domainrelatedobject
-dc: server-aliases
-cnamerecord: server.linuxnetworks.de
-associateddomain: proxy.linuxnetworks.de
-associateddomain: mail2.linuxnetworks.de
-associateddomain: ns.linuxnetworks.de
+dn:dc=server-aliases,dc=example,ou=hosts,o=example,c=de
+objectclass:top
+objectclass:dnsdomain
+objectclass:domainrelatedobject
+dc:server-aliases
+cnamerecord:server.example.com
+associateddomain:proxy.example.com
+associateddomain:mail2.example.com
+associateddomain:ns.example.com
 ```
 
-Aliases are optional. You can also add all alias domains to the
-associateddomain attribute. The only difference is that these additional
-domains aren't recognized as aliases anymore, but instead as a normal
-arecord:
+Aliases are optional.
+All alias domains can also be added to the associateddomain attribute.
+The only difference is that these additional domains aren't recognized as aliases anymore, but instead as a normal `arecord`:
 
 ```
-dn: dc=server,dc=linuxnetworks,ou=hosts,o=linuxnetworks,c=de
-objectclass: top
-objectclass: dnsdomain
-objectclass: domainrelatedobject
-dc: server
-arecord: 10.1.0.1
-associateddomain: server.linuxnetworks.de
-associateddomain: proxy.linuxnetworks.de
-associateddomain: mail2.linuxnetworks.de
-associateddomain: ns.linuxnetworks.de
+dn:dc=server,dc=example,ou=hosts,o=example,c=de
+objectclass:top
+objectclass:dnsdomain
+objectclass:domainrelatedobject
+dc:server
+arecord:10.1.0.1
+associateddomain:server.example.com
+associateddomain:proxy.example.com
+associateddomain:mail2.example.com
+associateddomain:ns.example.com
 ```
 
-Reverse lookups
----------------
-
-Currently you have two options: Either reverse lookups handled by the
-code automagically or you have to add PTR records to your LDAP
-directory. If you want to derive PTR records from A records, you have
-set "ldap-method" to "strict". Otherwise add objects like below to your
-directory:
+## Reverse lookups
+Currently there are two options: Either reverse lookups handled by the code automatically or PTR records need to be added to the LDAP directory.
+To derive PTR records from A and AAAA records, set `ldap-method` to `strict`.
+Otherwise add objects like below to the directory:
 
 ```
-dn: dc=1.10.in-addr.arpa,ou=hosts,o=linuxnetworks,c=de
-objectclass: top
-objectclass: dnsdomain2
-objectclass: domainrelatedobject
-dc: 1.10.in-addr.arpa
-soarecord: ns.linuxnetworks.de me@linuxnetworks.de 1 1800 3600 86400 7200
-nsrecord: ns.linuxnetworks.de
-associateddomain: 1.10.in-addr.arpa
+dn:dc=1.10.in-addr.arpa,ou=hosts,o=example,c=de
+objectclass:top
+objectclass:dnsdomain2
+objectclass:domainrelatedobject
+dc:1.10.in-addr.arpa
+soarecord:ns.example.com me@example.com 1 1800 3600 86400 7200
+nsrecord:ns.example.com
+associateddomain:1.10.in-addr.arpa
 ```
 
 ```
-dn: dc=1.0,dc=1.10.in-addr.arpa,ou=hosts,o=linuxnetworks,c=de
-objectclass: top
-objectclass: dnsdomain2
-objectclass: domainrelatedobject
-dc: 1.0
-ptrrecord: server.linuxnetworks.de
-associateddomain: 1.0.1.10.in-addr.arpa
+dn:dc=1.0,dc=1.10.in-addr.arpa,ou=hosts,o=example,c=de
+objectclass:top
+objectclass:dnsdomain2
+objectclass:domainrelatedobject
+dc:1.0
+ptrrecord:server.example.com
+associateddomain:1.0.1.10.in-addr.arpa
 ```
 
 Tree mode requires each component to be a dc element of its own:
 
 ```
-dn: dc=1,dc=0,dc=1,dc=10,dc=in-addr,dc=arpa,ou=hosts,o=linuxnetworks,c=de
-objectclass: top
-objectclass: dnsdomain2
-objectclass: domainrelatedobject
-dc: 1
-ptrrecord: server.linuxnetworks.de
-associateddomain: 1.0.1.10.in-addr.arpa
+dn:dc=1,dc=0,dc=1,dc=10,dc=in-addr,dc=arpa,ou=hosts,o=example,c=de
+objectclass:top
+objectclass:dnsdomain2
+objectclass:domainrelatedobject
+dc:1
+ptrrecord:server.example.com
+associateddomain:1.0.1.10.in-addr.arpa
 ```
 
-To use this kind of record, you also have to add the dnsdomain2 schema
-to the configuration of your LDAP server.
+To use this kind of record, add the dnsdomain2 schema to the configuration of ther LDAP server.
 
-**CAUTION:**
-
-You can't use "ldap-method=strict" if you need zone transfers (AXFR) to
-other name servers. Distributing zones can only be done directly via
-LDAP replication in this case, because for a full zone transfer the
-reverse records are missing
+**CAUTION:** `ldap-method=strict` can not be used if zone transfers (AXFR) are needed to other name servers.
+Distributing zones can only be done directly via LDAP replication in this case, because for a full zone transfer the reverse records are missing.
 
 # Migration
-
-BIND zone files
----------------
-
-There is a small utility in the PowerDNS distribution available called
-"zone2ldap", which can convert zone files used by BIND to the ldif
-format. Ldif is a text file format containing information about LDAP
-objects and can be read by every standard compliant LDAP server.
-Zone2ldap needs the BIND named.conf (usually located in /etc) as input
-and writes the dns record entries in ldif format to stdout:
-
-Usage:
+## BIND zone files
+There is a small utility in the PowerDNS distribution available called [`zone2ldap`](../manpages/zone2ldap.1.md), which can convert zone files used by BIND to the ldif format.
+Ldif is a text file format containing information about LDAP objects and can be read by every standard compliant LDAP server.
+`zone2ldap` needs the BIND `named.conf` (usually located in /etc) as input and writes the dns record entries in ldif format to stdout:
 
 ```
 zone2ldap
-   --basedn=`<your-basedn
-   --named-conf=`<file
-   --resume
-   > zones.ldif
+   --basedn=YOUR_BASE_DN \
+   --named-conf=PATH_TO_NAMED_CONF \
+   --resume > zones.ldif
 ```
 
-Alternatively zone2ldap can be used to convert only single zone files
-instead all zones:
-
-Usage:
+Alternatively zone2ldap can be used to convert only single zone files instead all zones:
 
 ```
 zone2ldap
-   --basedn=`<your-basedn
-   --zone-file=`<file
-   --zone-name=`<file
-   --resume
-   > zone.ldif
+   --basedn=YOUR_BASE_DN \
+   --zone-file=PATH_TO_ZONE_FILE \
+   --zone-name=NAME_OF_ZONE \
+   --resume > zone.ldif
 ```
 
 See [its manpage](../manpages/zone2ldap.1.md) for a complete list of options.
 
-Bind LDAP backend
------------------
-
-If you are using the [Bind LDAP sdb
-backend](http://bind9-ldap.bayour.com/), you can keep the records in the
-LDAP tree also for the PowerDNS LDAP backend. The schemas both backends
-utilize is almost the same except for one important thing: Domains for
-PowerDNS are stored in the attribute "associatedDomain" whereas Bind
-stores them split in "relativeDomainName" and "zoneName".
+## Bind LDAP backend
+When coming from the [Bind LDAP sdb backend](http://bind9-ldap.bayour.com/), the records can be kept in the LDAP tree also for the PowerDNS LDAP backend.
+The schemas both backends utilize is almost the same except for one important thing:
+Domains for PowerDNS are stored in the attribute "associatedDomain" whereas Bind stores them split in "relativeDomainName" and "zoneName".
 
-There is a [migration
-script](http://www.linuxnetworks.de/pdnsldap/bind2pdns-ldap) which
-creates a file in LDIF format with the necessary LDAP updates including
-the "associatedDomain" and "dc" attributes. The utility is executed on
-the command line by:
+There is a [migration script](http://www.linuxnetworks.de/pdnsldap/bind2pdns-ldap) which creates a file in LDIF format with the necessary LDAP updates including the "associatedDomain" and "dc" attributes.
+The utility is executed on the command line by:
 
 ```
 ./bind2pdns-ldap
- --host=<host name or IP>
- --basedn=<subtree dn>
- --binddn=<admin dn>
- > update.ldif
+   --host=HOSTNAME_OR_IP \
+   --basedn=YOUR_BASE_DN \
+   --binddn=ADMIN_DN > update.ldif
 ```
 
 The parameter "host" and "basedn" are mandatory, "binddn" is optional.
-If "binddn" is given, you will be asked for a password, otherwise an
-anonymous bind is executed. The updates in LDIF format are written to
-stdout and can be redirected to a file.
-
-The script requires Perl and the Perl Net::LDAP module and can be
-downloaded from
-[/pdnsldap/bind2pdns-ldap](http://www.linuxnetworks.de/pdnsldap/bind2pdns-ldap).
-
-Updating the entries in the LDAP tree requires to make the dnsdomain2
-schema known to the LDAP server. Unfortunately, both schemas (dnsdomain2
-and dnszone) share the same record types and use the same OIDs so the
-LDAP server can't use both schemas at the same time. The solution is to
-add the [dnsdomain2
-schema](http://www.linuxnetworks.de/pdnsldap/dnsdomain2.schema) and
-replace the dnszone schema by the [dnszone-migrate
-schema](http://www.linuxnetworks.de/pdnsldap/dnszone-migrate.schema).
-After restarting the LDAP server you can use attributes from both
-schemas and updating the objects in the LDAP tree using the LDIF file
-generated from bind2pdns-ldap will work without errors.
-
-Other name server
------------------
-
-The easiest way for migrating DNS records is to use the output of a zone
-transfer (AXFR). Save the output of the "dig" program provided by bind
-into a file and call zone2ldap with the file name as option to the
---zone-file parameter. This will generate you an appropriate ldif file,
-which you can import into your LDAP tree. The bash script except below
-automates this for you.
+If "binddn" is given, the script will prompt for a password, otherwise an anonymous bind is executed.
+The updates in LDIF format are written to stdout and can be redirected to a file.
+
+The script requires Perl and the Perl Net::LDAP module and can be downloaded [here](http://www.linuxnetworks.de/pdnsldap/bind2pdns-ldap).
+
+Updating the entries in the LDAP tree requires to make the dnsdomain2 schema known to the LDAP server.
+Unfortunately, both schemas (dnsdomain2 and dnszone) share the same record types and use the same OIDs so the LDAP server can't use both schemas at the same time.
+The solution is to add the [dnsdomain2 schema](http://www.linuxnetworks.de/pdnsldap/dnsdomain2.schema) and replace the dnszone schema by the [dnszone-migrate schema](http://www.linuxnetworks.de/pdnsldap/dnszone-migrate.schema).
+After restarting the LDAP server attributes from both schemas can be used and updating the objects in the LDAP tree using the LDIF file generated from `bind2pdns-ldap` will work without errors.
+
+## Other name server
+The easiest way for migrating DNS records is to use the output of a zone transfer (AXFR).
+Save the output of the `dig` program provided by bind into a file and call `zone2ldap` with the file name as option to the `--zone-file` parameter.
+This will generate the appropriate ldif file, which can be imported into the LDAP tree.
+The bash script except below automates this:
 
 ```
 DNSSERVER=127.0.0.1
-DOMAINS="linuxnetworks.de 10.10.in-addr.arpa"
+DOMAINS="example.com 10.10.in-addr.arpa"
 
-for DOMAIN in $DOMAINS; do
-   dig @$DNSSERVER $DOMAIN AXFR> $DOMAIN.zone;
-   zone2ldap --zone-name=$DOMAIN --zone-file=$DOMAIN.zone> $DOMAIN.ldif;
+for DOMAIN in $DOMAINS; do
+  dig @$DNSSERVER $DOMAIN AXFR> $DOMAIN.zone;
+  zone2ldap --zone-name=$DOMAIN --zone-file=$DOMAIN.zone> $DOMAIN.ldif;
 done
 ```
 
 # Optimization
+## LDAP indices
+To improve performance, the LDAP server can maintain indices on certain attributes.
+This leads to much faster searches for these type of attributes.
 
-LDAP indices
-------------
-
-To improve performance, you can tell the LDAP server to maintain indices
-on certain attributes. This leads to much faster searches for these type
-of attributes.
-
-The LDAP DNS backend mainly searches for values in associatedDomain, so
-maintaining an index (pres,eq,sub) on this attribute is a big
-performance improvement:
-
-`index associatedDomain pres,eq,sub`
-
-Furthermore if you set ldap-method=strict, it uses the aRecord and
-aAAARecord attribute for reverse mapping of IP addresses to names. To
-maintain an index (pres,eq) on these attributes also improves
-performance of the LDAP server:
+The LDAP DNS backend mainly searches for values in `associatedDomain`, so maintaining an index (pres,eq,sub) on this attribute is a big performance improvement:
 
 ```
-index aAAARecord pres,eq
-index aRecord pres,eq
+indexassociatedDomain pres,eq,sub
 ```
 
-All other attributes than associatedDomain, aRecord or aAAARecord are
-only read if the object matches the specified criteria. Thus,
-maintaining an index on these attributes is useless.
+Furthermore, if `ldap-method=strict` is set, it uses the aRecord and aAAARecord attribute for reverse mapping of IP addresses to names.
+To maintain an index (pres,eq) on these attributes also improves performance of the LDAP server:
 
-If you've inserted your entries before adding these statements to your
-slapd.conf, you have to stop your LDAP server and call slapindex on the
-command line. This will generate the indices for already existing
-attributes
+```
+indexaAAARecord pres,eq
+indexaRecord pres,eq
+```
 
-dNSTTL attribute
-----------------
+All other attributes than associatedDomain, aRecord or aAAARecord are only read if the object matches the specified criteria.
+Thus, maintaining an index on these attributes is useless.
 
-Converting the string in the dNSTTL attribute to an integer is a time
-consuming task. If you don't use a separate TTL value for each entry and
-use the default-ttl parameter in pdns.conf instead, you will gain a
-approx. 7% better performance for entries that aren't cached. You can
-still add a dNSTTL attribute to entries that should have a different TTL
-than the default TTL
+If the DNS-entries were added before adding these statements to `slapd.conf`, the LDAP server will have to be stopped and `slapindex` should be used on the command line.
+This will generate the indices for already existing attributes.
 
-Access method
--------------
+## dNSTTL attribute
+Converting the string in the dNSTTL attribute to an integer is a time consuming task.
+If no separate TTL value for each entry is requires, use the [`default-ttl`](settings.md#default-ttl) parameter in `pdns.conf` instead.
+This will gain a 7% improvement in performance for entries that aren't cached.
+A dNSTTL attribute can still be added to entries that should have a different TTL than the default TTL
 
-The method of accessing the entries in the directory affects the
-performance too. By default, the "simple" method is used search for
-entries by using their associatedDomain attribute. Alternatively you can
-choose the "tree" method, whereby the search is done along the directory
-tree, e.g. "host.example.dom" is translated into
-"dc=host,dc=example,dc=dom,...". This requires your LDAP DNS subtree
-layout to be 1:1 to the DNS tree, but then you will gain additional 7%
-better performance values.
+## Access method
+The method of accessing the entries in the directory affects the performance too.
+By default, the "simple" method is used search for entries by using their associatedDomain attribute.
+Alternatively, the "tree" method can be used, whereby the search is done along the directory tree, e.g. "host.example.com" is translated into "dc=host,dc=example,dc=com,...".
+This requires the LDAP DNS subtree layout to be 1:1 to the DNS tree, this will gain an additional 7% performance improvement.
 
 # Troubleshooting
+## No reverse zone transfer
+The LDAP tree must contain a separate subtree of PTR records (e.g. for 1.1.10.10.in-addr.arpa) and `ldap-method` can't be set to "strict".
 
-No reverse zone transfer
-------------------------
-
-Your LDAP tree must contain a separate subtree of PTR records (e.g. for
-1.1.10.10.in-addr.arpa) and you can't set "ldap-method" to "strict".
-
-IPv6 reverse lookup doesn't work in strict mode
------------------------------------------------
-
-For automatically generated reverse IPv6 records your aAAARecord entries
-must follow two restrictions: They have to be fully expanded ("FFFF::1"
-is not allowed and it must be "FFFF:0:0:0:0:0:0:1" instead) and they
-must not contain leading zeros, e.g. an entry containing "002A" is
-incorrect - use "2A" without zeros instead. These restrictions are due
-to the fact that LDAP DNS AAAA entries are pure text and doesn't allow
-searching by wild-cards.
-
-Bad search filter
------------------
-
-The release of PowerDNS 2.9.20 contains a bug in
-ldap-filter-{axfr,lookup}. A user provided string with ":target:" is
-replaced with "(associatedDomain=QUERYDATA)" and braces ARE added. So if
-you create some filter like
-
-`ldap-filter-lookup=(&(:target:)(active=yes))`
-
-it will result as
-
-`ldap-filter-lookup=(&((associatedDomain=QUERYDATA))(active=yes))`
-
-which results with bad search filter. To circumvent the bug temporarily
-you can add instead
-
-`ldap-filter-lookup=(&:target:(active=yes))`
-
-The bug will be fixed in version 2.9.21 and later versions.
-
-------------------------------------------------------------------------
-
-**Feel free to add your own tips**
+## IPv6 reverse lookup doesn't work in strict mode
+For automatically generated reverse IPv6 records the aAAARecord entries must follow two restrictions:
+They have to be fully expanded ("FFFF::1" is not allowed and it must be "FFFF:0:0:0:0:0:0:1" instead) and they must not contain leading zeros, e.g. an entry containing "002A" is incorrect - use "2A" without zeros instead.
+These restrictions are due to the fact that LDAP DNS AAAA entries are pure text and doesn't allow searching by wild-cards.
 
 # Future
+## DNS notification support
+As soon as the LDAP server implementations begin to provide the features of the LDAP client update protocol (LCUP, [RFC3928](http://www.ietf.org/rfc/rfc3928.txt)), it will be possible to support the DNS notification feature for the LDAP DNS backend in case a record in the LDAP directory was changed.
 
-DNS notification support
-------------------------
-
-As soon as the LDAP server implementations begin to provide the features
-of the LDAP client update protocol (LCUP, [RFC
-3928](http://www.ietf.org/rfc/rfc3928.txt)), it will be possible to
-support the DNS notification feature for the [LDAP DNS
-backend](PowerDNS_LDAP_Backend "wikilink") in case a record in the LDAP
-directory was changed.
-
-SASL support
-------------
-
-Support for more authentication methods would be handy. Anyone
-interested and willing to contribute?
+## SASL support
+Support for more authentication methods would be handy. Anyone interested may [contribute](https://github.com/PowerDNS/pdns).?
index bb10eefc90a7f2ad4cf69e93fa4fba19498f6f8d..ef4679cfe2c71ceb4d3ef7537d937f6a9391eecc 100644 (file)
@@ -337,7 +337,7 @@ This release features many low-level performance fixes. Other notable changes si
 ### Improvements
 
 - [#3435](https://github.com/PowerDNS/pdns/pull/3435) Add `toStringNoDot` and `chopOff` functions to Lua
-- [#3437](https://github.com/PowerDNS/pdns/pull/3352) Add `pdns.now` timeval struct to recursor Lua
+- [#3437](https://github.com/PowerDNS/pdns/pull/3437) Add `pdns.now` timeval struct to recursor Lua
 - [#3352](https://github.com/PowerDNS/pdns/pull/3352) Cache improvements
 - [#3502](https://github.com/PowerDNS/pdns/pull/3502) Make second argument to pdnslog optional (Thiago Farina)
 - [#3520](https://github.com/PowerDNS/pdns/pull/3520) Reduce log level of periodic statistics to notice (Jan Broers)
@@ -460,9 +460,9 @@ Released May 11th 2016
 Notable changes since 4.0.0-alpha2
 
 - [#3415](https://github.com/PowerDNS/pdns/pull/3415) pdnsutil: add clear-zone command
-- [#3586](https://github.com/PowerDNS/pdns/pull/3415) Remove send-root-referral option
-- [#3578](https://github.com/PowerDNS/pdns/pull/3415) Add disable-syslog option
-- [#3733](https://github.com/PowerDNS/pdns/pull/3415) ALIAS improvements: DNSSEC and optional on-AXFR expansion of records
+- [#3586](https://github.com/PowerDNS/pdns/pull/3586) Remove send-root-referral option
+- [#3578](https://github.com/PowerDNS/pdns/pull/3578) Add disable-syslog option
+- [#3733](https://github.com/PowerDNS/pdns/pull/3733) ALIAS improvements: DNSSEC and optional on-AXFR expansion of records
 - [#3764](https://github.com/PowerDNS/pdns/pull/3764) Notify support for systemd
 - [#3807](https://github.com/PowerDNS/pdns/pull/3807) Add TTL settings for DNSSECKeeper's caches
 
@@ -484,7 +484,7 @@ Notable changes since 4.0.0-alpha2
 - [#3637](https://github.com/PowerDNS/pdns/pull/3637), [#3678](https://github.com/PowerDNS/pdns/pull/3678), [#3740](https://github.com/PowerDNS/pdns/pull/3740) Correct root-zone slaving and serving (Kees Monshouwer and others)
 - [#3495](https://github.com/PowerDNS/pdns/pull/3495) API: Add discovery endpoint (Christian Hofstaedtler)
 - [#3389](https://github.com/PowerDNS/pdns/pull/3389) pdnsutil: support chroot
-- [#3596](https://github.com/PowerDNS/pdns/pull/3396) Remove botan-based ecdsa and rsa signers (Kees Monshouwer)
+- [#3596](https://github.com/PowerDNS/pdns/pull/3596) Remove botan-based ecdsa and rsa signers (Kees Monshouwer)
 - [#3478](https://github.com/PowerDNS/pdns/pull/3478), [#3603](https://github.com/PowerDNS/pdns/pull/3603), [#3628](https://github.com/PowerDNS/pdns/pull/3628) Various build system improvements (Ruben Kerkhof)
 - [#3621](https://github.com/PowerDNS/pdns/pull/3621) Always lowercase when inserting into the database
 - [#3651](https://github.com/PowerDNS/pdns/pull/3651) Rename PUBLISH\_\* to PUBLISH-\* domainmetadata
@@ -494,7 +494,7 @@ Notable changes since 4.0.0-alpha2
 - [#3720](https://github.com/PowerDNS/pdns/pull/3720) Many fixes for dnswasher (Robert Edmonds)
 - [#3707](https://github.com/PowerDNS/pdns/pull/3707), [#3788](https://github.com/PowerDNS/pdns/pull/3788) Make MySQL timeout configurable (Kees Monshouwer and Brynjar Eide)
 - [#3806](https://github.com/PowerDNS/pdns/pull/3806) Move key validity check out of `fromISCMap()`, improves DNSSEC performance
-- [#3820](https://github.com/PowerDNS/pdns/pull/3806) pdnsutil load-zone: ignore double SOA
+- [#3820](https://github.com/PowerDNS/pdns/pull/3820) pdnsutil load-zone: ignore double SOA
 
 ## PowerDNS Authoritative Server 4.0.0-alpha2
 Released February 25th 2016
index 689c2a83be69e0b93097d818056275cf68b40ec4..9f7a3c6293545a42c52a02917052f9e4a76340b5 100644 (file)
@@ -1,34 +1,34 @@
 # End of life statements
-The currently supported release train of PowerDNS is 3.x. The development train is 4.x.  
-2.x is end of life.
+The currently supported release train of PowerDNS, for both the Authoritative Server and the Recursor is 4.x.
 
-## PowerDNS Authoritative Server 2.x
-21st of May 2015
+PowerDNS Authoritative Server 3.4 is considered legacy and will only receive critical bug fixes and security fixes.
+
+PowerDNS Authoritative Server 3.3 will only receive security fixes.
+
+PowerDNS Recursor 3.7 is considered legacy and will only receive critical bug fixes and security fixes.
 
-PowerDNS Authoritative Server 2.9.22 was released more than 6 years ago, in
-January 2009.  Because of its immense and durable popularity, some patch
-releases have been provided, the last one of which (2.9.22.6) was made
-available over three years ago in January 2012.
+PowerDNS Recursor 3.6 will only receive security fixes.
+
+PowerDNS Authoritative Server and Recursor 2.x are end of life.
+
+## PowerDNS Authoritative Server 2.x
+21st of May 2015 (updated January 2017)
 
-The 2.9.22.x series contains a number of probable and actual violations of
-the DNS standards.  In addition, some behaviours of 2.9.22.x are standards
-conforming but cause interoperability problems in 2015.  Finally, 2.9.22.4
-and earlier are impacted by [PowerDNS Security Advisory 2012-01](https://doc.powerdns.com/md/security/powerdns-advisory-2012-01/), which means
-PowerDNS can be used in a Denial of Service attack.
+PowerDNS Authoritative Server 2.9.22 was released in January 2009.
+Because of its immense and durable popularity, some patch releases have been provided, the last one of which (2.9.22.6) was made available in January 2012.
 
-Although we have long been telling users that we can no longer support the
-use of 2.x, and urging upgrades to 3.x, with this statement we formally
-declare 2.x end of life.
+The 2.9.22.x series contains a number of probable and actual violations of the DNS standards.
+In addition, some behaviours of 2.9.22.x are standards conforming but cause interoperability problems today.
+Finally, 2.9.22.4 and earlier are impacted by [PowerDNS Security Advisory 2012-01](https://doc.powerdns.com/md/security/powerdns-advisory-2012-01/), which means PowerDNS can be used in a Denial of Service attack.
 
-This means that any 2.x issues will not be addressed. This has been the case
-for a long time, but with this statement we make it formal.
+Although we have long been telling users that we can no longer support the use of 2.x, and urging upgrading, with this statement we formally declare 2.x end of life.
 
-To upgrade to 3.x, please consult the [instructions on how to upgrade the
-database](https://doc.powerdns.com/md/authoritative/upgrading/#29x-to-30).  If you need help with upgrading, we provide [migration services](https://www.powerdns.com/support-services-consulting.html) to
-our supported users.  If you are currently running 2.9.22 and need help to
-tide you over, we can also provide that as part of a [support agreement](https://www.powerdns.com/support-services-consulting.html).
+This means that any 2.x issues will not be addressed.
+This has been the case for a long time, but with this statement we make it formal.
 
-But we urge everyone to move on to PowerDNS Authoritative Server 3.4 or
-later - it is a faster, more standards conforming and more powerful
-nameserver!
+To upgrade to 3.x, please consult the [instructions on how to upgrade the database](https://doc.powerdns.com/3/authoritative/upgrading/#29x-to-30).
+To upgrade from 3.x to 4.x, [follow these instructions](authoritative/upgrading.md).
+If you need help with upgrading, we provide [migration services](https://www.powerdns.com/support-services-consulting.html) to our supported users.
+If you are currently running 2.9.22 and need help to tide you over, we can also provide that as part of a [support agreement](https://www.powerdns.com/support-services-consulting.html).
 
+But we urge everyone to move on to PowerDNS Authoritative Server 4.0 or later - it is a faster, more standards conforming and more powerful nameserver!
index ce69c9188b482367a9bb603c25f2293f6663e926..188dee28dddc28e451d210bd5af1bbb3474686e8 100755 (executable)
@@ -1,6 +1,13 @@
 #!/bin/sh -e
 
 pre() {
+  # Test if there are wrong PR links in the changelog
+  CL_PR_LINKS="$(grep -E '\[#([0-9]+)\]\(.*[0-9]+\)' markdown/changelog.raw.md | grep -v -E '\[#([0-9]+)\]\(.*\1\)' || true)"
+  if [ -n "${CL_PR_LINKS}" ]; then
+    echo "Broken PR links in the changelog:" >&2
+    echo "${CL_PR_LINKS}" >&2
+    exit 1
+  fi
   for file in `find doc-build -name '*.md' -type f -print`; do
     # Remove lines starting with '%' from manpages
     if echo "$file" | grep -q -e '\.1\.md$'; then