Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
David Goulet
Tor
Commits
e7ac17fd
Commit
e7ac17fd
authored
Jan 31, 2007
by
Nick Mathewson
⛰
Browse files
r11613@catbus: nickm | 2007-01-30 19:58:03 -0500
Re-enable server side PTR-record cacheing. svn:r9468
parent
49b5e5cf
Changes
3
Show whitespace changes
Inline
Side-by-side
ChangeLog
View file @
e7ac17fd
...
...
@@ -85,6 +85,7 @@ Changes in version 0.1.2.7-alpha - 2007-??-??
ready yet. As part of the change, now assume we can use a
create_fast cell if we don't know anything about a router.
- Allow exit nodes to use nameservers running on ports other than 53.
- Servers now cache reverse DNS replies.
o Minor features (controller):
- Track reasons for OR connection failure; make these reasons
...
...
doc/TODO
View file @
e7ac17fd
...
...
@@ -71,7 +71,7 @@ N - DNS improvements
- Make evdns use windows strerror equivalents.
. Make sure patches get into libevent.
- Verify that it works well on windows
-
Debug and re-enable server-side reverse DNS caching
o
Debug and re-enable server-side reverse DNS caching
- Critical but minor bugs, backport candidates.
- support dir 503s better
...
...
src/or/dns.c
View file @
e7ac17fd
...
...
@@ -499,6 +499,7 @@ send_resolved_hostname_cell(edge_connection_t *conn, or_circuit_t *circ,
size_t
buflen
;
uint32_t
ttl
;
size_t
namelen
=
strlen
(
hostname
);
tor_assert
(
hostname
);
tor_assert
(
namelen
<
256
);
ttl
=
dns_clip_ttl
(
conn
->
address_ttl
);
...
...
@@ -902,11 +903,6 @@ add_answer_to_cache(const char *address, int is_reverse, uint32_t addr,
if
(
outcome
==
DNS_RESOLVE_FAILED_TRANSIENT
)
return
;
/* XXXX012 This is dumb, but it seems to workaround a bug I can't find. We
* should nail this so we can cache reverse DNS answers. -NM */
if
(
is_reverse
)
return
;
//log_notice(LD_EXIT, "Adding to cache: %s -> %s (%lx, %s), %d",
// address, is_reverse?"(reverse)":"", (unsigned long)addr,
// hostname?hostname:"NULL",(int)outcome);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment