From a942441615af65a5e80f2d8c1348a4feb7a2ff62 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Thu, 21 Sep 2006 21:48:06 +0000 Subject: r8872@Kushana: nickm | 2006-09-21 14:00:20 -0400 Implement server-side reverse DNS using eventdns. Add an option to routerdescs so we can tell which servers have eventdns enabled. svn:r8437 --- doc/TODO | 8 +++++--- doc/dir-spec.txt | 19 ++++++++++++++++++- 2 files changed, 23 insertions(+), 4 deletions(-) (limited to 'doc') diff --git a/doc/TODO b/doc/TODO index c65fd08d73..88708a0588 100644 --- a/doc/TODO +++ b/doc/TODO @@ -100,13 +100,15 @@ d - Autodetect whether DNS is broken in this way. d - Add option to use /etc/hosts? d - Special-case localhost? - Verify that it works on windows -N - Make reverse DNS work. - - Specify + . Make reverse DNS work. + o Specify X Implement with dnsworkers (There's no point doing this, since we will throw away dnsworkers once eventdns is confirmed to work everywhere.) o Implement in eventdns - - Connect to resolve cells, server-side. + o Connect to resolve cells, server-side. + o Add element to routerinfo to note routers that aren't using eventdns, + so we can avoid sending them reverse DNS etc. - Add client-side interface - Performance improvements diff --git a/doc/dir-spec.txt b/doc/dir-spec.txt index 8c2bf75311..a211ebc095 100644 --- a/doc/dir-spec.txt +++ b/doc/dir-spec.txt @@ -254,7 +254,22 @@ $Id$ [We didn't start parsing these lines until Tor 0.1.0.6-rc; they should be marked with "opt" until earlier versions of Tor are obsolete.] -2.1. Nonterminals in routerdescriptors + "eventdns" bool NL + + Declare whether this version of Tor is using the newer enhanced + dns logic. Versions of Tor without eventdns SHOULD not be used for + reverse hostname lookups. + + [All versions of Tor before 0.1.2.2-alpha should be assumed to have + this option set to 0 if it is not present. All Tor versions at + 0.1.2.2-alpha or later should be assumed to have this option set to + 1 if it is not present. Until 0.1.2.1-alpha-dev, this option was + not generated, even when eventdns was in use. Versions of Tor + before 0.1.2.1-alpha-dev did not parse this option, so it should be + marked "opt". With some future version, the old 'dnsworker' logic + will be removed, rendering this option of historical interest only.] + +2.1. Nonterminals in router descriptors nickname ::= between 1 and 19 alphanumeric characters, case-insensitive. @@ -270,6 +285,8 @@ $Id$ ip6 ::= an IPv6 address, surrounded by square brackets. num_ip6_bits ::= an integer between 0 and 128 + bool ::= "0" | "1" + Ports are required; if they are not included in the router line, they must appear in the "ports" lines. -- cgit v1.2.3-54-g00ecf