-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathREADME.wildcard
30 lines (22 loc) · 988 Bytes
/
README.wildcard
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
The way to use it is to add an LDAP entry with a relativeDomainName
containing a tilde (~). That will be pulled if a search for `name'
doesn't return a result. In other words, looking up host.x.com will
first search for `relativeDomainName=host' and if that returns no
results, a search for `relativeDomainName=~' will be performed.
During AXFR, labels containing a tilde (~) are translated back to
asterisk (*).
This is an example LDIF on what this can look like:
dn: relativeDomainName=~,dc=domain,dc=tld
objectClass: dNSZone
relativeDomainName: ~
zoneName: domain.tld
dNSTTL: 1800
dNSClass: IN
cNAMERecord: host.domain.tld.
To enable this functionality, you will have to put a special option
in the database configuration line in the named.conf file like this:
zone "example.com" {
type master;
database "ldap ldap://127.0.0.1/dc=com????!x-wildcard=true 172800";
}
Turbo Fredriksson <[email protected]> 2008-07-19