Преглед на файлове

Specify reverse DNS

svn:r3724
Nick Mathewson преди 20 години
родител
ревизия
06a574b0c9
променени са 1 файла, в които са добавени 5 реда и са изтрити 3 реда
  1. 5 3
      doc/tor-spec.txt

+ 5 - 3
doc/tor-spec.txt

@@ -514,14 +514,16 @@ TODO: (very soon)
 5.4. Remote hostname lookup
 5.4. Remote hostname lookup
 
 
    To find the address associated with a hostname, the OP sends a
    To find the address associated with a hostname, the OP sends a
-   RELAY_RESOLVE cell containing the hostname to be resolved.  The OR
+   RELAY_RESOLVE cell containing the hostname to be resolved.  (For a reverse
-   replies with a RELAY_RESOLVED cell containing a status byte, and any
+   lookup, the OP sends a RELAY_RESOLVE cell containing an in-addr.arpa
-   number of answers.  Each answer is of the form:
+   address.)  The OR replies with a RELAY_RESOLVED cell containing a status
+   byte, and any number of answers.  Each answer is of the form:
        Type   (1 octet)
        Type   (1 octet)
        Length (1 octet)
        Length (1 octet)
        Value  (variable-width)
        Value  (variable-width)
    "Length" is the length of the Value field.
    "Length" is the length of the Value field.
    "Type" is one of:
    "Type" is one of:
+      0x00 -- Hostname
       0x04 -- IPv4 address
       0x04 -- IPv4 address
       0x06 -- IPv6 address
       0x06 -- IPv6 address
       0xF0 -- Error, transient
       0xF0 -- Error, transient