This repository was archived by the owner on Dec 9, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDNSHOWTO
More file actions
56 lines (37 loc) · 1.23 KB
/
DNSHOWTO
File metadata and controls
56 lines (37 loc) · 1.23 KB
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
Introduction
------------
This will aim to document how to provide access to the internal data structure of the metaserver via simple dns queries.
The Goal
--------
Forward Searching (searches by attribute 'name'):
dig -t A foobar @dns.server
foobar A 1.2.3.4
Reverse Searching (searches by attribute 'ip'):
dig -t PTR 1.2.3.4 @dns.server
foobar A 1.2.3.4
Where:
m_serverData = {
'1.2.3.4' => {
'ip' => '1.2.3.4',
'expiry' => 'boost datetime string',
'port' => '1234',
'ip_int' => '123456',
'name' => 'foobar'
}
}
Reference
---------
The PDNS backend for the metaserver was implemented via the PipeBackend for PDNS. The full list of references used are:
http://doc.powerdns.com/backend-writers-guide.html
http://doc.powerdns.com/pipebackend-dynamic-resolution.html
http://doc.powerdns.com/backends-detail.html#pipebackend
http://doc.powerdns.com/backends-detail.html#pipebackend-protocol
PDNS Configuration
------------------
pipebackend-abi-version=1
pipe-command=/home/sryan/wf/metaserver-ng/src/pdnspipe
pipe-timeout=2000
NOTES
-----
- this is known to not function correctly, as pdns is attempting to axfr and recurse in an unexpected fashion. This needs to be investigated.
-- Sean Ryan <sryan@evercrack.com>