Skip to content

Commit 3e4a8ca

Browse files
committedJun 28, 2013
add dnsdist manpage!
1 parent b076b34 commit 3e4a8ca

File tree

2 files changed

+80
-1
lines changed

2 files changed

+80
-1
lines changed
 

‎pdns/dnsdist.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ void* tcpClientThread(void* p)
331331
ds->outstanding++;
332332
char query[qlen];
333333
readn2(ci.fd, query, qlen);
334-
334+
// FIXME: drop AXFR queries here, they confuse us
335335
retry:;
336336
if(!putMsgLen(dsock, qlen)) {
337337
infolog("Downstream connection to %s died on us, getting a new one!", ds->remote.toStringWithPort());

‎pdns/docs/dnsdist.1.txt

+79
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
DNSDIST(1)
2+
==========
3+
powerdns.documentation@powerdns.com
4+
5+
NAME
6+
----
7+
dnsdist - tool to balance DNS queries over downstream servers
8+
9+
SYNOPSIS
10+
--------
11+
'dnsdist' [--help] [--verbose] [--local address] downstream-address downstream-address
12+
13+
DESCRIPTION
14+
-----------
15+
dnsdist receives DNS queries and relays them to one or more downstream
16+
servers. It subsequently sends back responses to the original requestor.
17+
18+
dnsdist operates over TCP and UDP, and strives to deliver very high
19+
performance over both.
20+
21+
Currently, queries are sent to the downstream server with the least
22+
outstanding queries. This effectively implies load balancing, making sure
23+
that slower servers get less queries.
24+
25+
If a reply has not come in after a few seconds, it is removed from the
26+
queue, but in the short term, timeouts do cause a server to get less
27+
traffic.
28+
29+
IPv4 and IPv6 operation can be mixed and matched, in other words, queries
30+
coming in over IPv6 could be forwarded to IPv4 and vice versa.
31+
32+
SCOPE
33+
-----
34+
dnsdist does not 'think' about DNS, and does not perform any kind of
35+
caching, nor is it aware of the quality of the answers it is relaying.
36+
37+
dnsdist assumes that each query leads to exactly one response, which is true
38+
for all DNS except for AXFR, which is therefore not supported.
39+
40+
The goal for dnsdist is to remain simple. If more powerful loadbalancing is
41+
required, dedicated hardware or software is recommended. Linux Virtual
42+
Server for example is often mentioned.
43+
44+
OPTIONS
45+
-------
46+
47+
--verbose::
48+
Be wordy on what the program is doing
49+
50+
--local::
51+
Supply as many addresses to listen on as required. Specify IPv4 as
52+
0.0.0.0:53 and IPv6 as [::]:53.
53+
54+
--daemon::
55+
Daemonize and run in the background
56+
57+
--help::
58+
Provide a helpful message
59+
60+
Finally, supply as many downstream addresses as required. Remote port defaults to 53.
61+
62+
BUGS
63+
----
64+
Right now, the TCP support has some rather arbitrary limits.
65+
66+
AUTHOR
67+
------
68+
Written by PowerDNS.COM BV, powerdns.documentation@powerdns.com
69+
70+
RESOURCES
71+
---------
72+
Website: http://www.powerdns.com
73+
74+
COPYING
75+
-------
76+
Copyright (C) 2013 PowerDNS.COM BV. Free use of this software
77+
is granted under the terms of the GNU General Public License (GPL) version
78+
2.
79+

0 commit comments

Comments
 (0)
Please sign in to comment.