aboutsummaryrefslogtreecommitdiff
path: root/src/or/dns.c
Commit message (Collapse)AuthorAge
* r8607@Kushana: nickm | 2006-08-27 15:45:42 -0400Nick Mathewson2006-08-28
| | | | | | | Change configuration strategy for eventdns. Instead of elaborate option set, just allow the user to specify another resolv.conf to use. svn:r8254
* r8605@Kushana: nickm | 2006-08-27 14:01:11 -0400Nick Mathewson2006-08-28
| | | | | | | divide eventdns log messages into warn and info messages. svn:r8252
* i'm guessing nick meant to check the return value of dns_init.Roger Dingledine2006-08-27
| | | | | | | and revise some log severities to match the convention. svn:r8234
* fix typoRoger Dingledine2006-08-27
| | | | svn:r8233
* r8573@Kushana: nickm | 2006-08-25 16:55:19 -0400Nick Mathewson2006-08-25
| | | | | | | Resolve bug 321 when using dnsworkers: append a period to every address we resolve at the exit node, so that we do not accidentally pick up local addresses, and so that failing searches are retried in the resolver search domains. (This is already solved for eventdns.) svn:r8225
* r7405@Kushana: nickm | 2006-08-16 14:38:46 -0400Nick Mathewson2006-08-16
| | | | | | | Implement reverse DNS lookup in eventdns: add new entry point; rename old entry point; revise TODO a little; add facility for parsing dns names. svn:r7070
* dns.c:173: warning: control reaches end of non-void functionRoger Dingledine2006-08-16
| | | | svn:r7067
* r7397@Kushana: nickm | 2006-08-15 00:46:18 -0400Nick Mathewson2006-08-15
| | | | | | | Fix eventdns version of dns.c. Man, we need to get rid of this eventdns/dnsworker split. svn:r7064
* r7393@Kushana: nickm | 2006-08-14 23:51:07 -0400Nick Mathewson2006-08-15
| | | | | | | remove extraneous #endif svn:r7063
* r7046@Kushana: nickm | 2006-08-05 13:57:04 -0400Nick Mathewson2006-08-14
| | | | | | | Make it possible for dns_init() to fail; note failure of eventdns configuratoin. svn:r7059
* r7383@Kushana: nickm | 2006-08-14 16:16:03 -0400Nick Mathewson2006-08-14
| | | | | | | Stop walking entire dns cache for every request, now that we found our hash table bug. svn:r7057
* simplify compare_cached_resolves_by_expiry() to make it matchRoger Dingledine2006-08-14
| | | | | | | | the idioms of other compare functions. hopefully i didn't break it? svn:r7048
* fix typo, add explanatory commentRoger Dingledine2006-08-11
| | | | svn:r7026
* r7327@Kushana: nickm | 2006-08-11 00:00:36 -0700Nick Mathewson2006-08-11
| | | | | | | Fix a pedantic warning svn:r7023
* r7304@Kushana: nickm | 2006-08-10 01:58:05 -0700Nick Mathewson2006-08-10
| | | | | | | Fix verbose compilation errors; make sure transparent proxy fails when no method is configured. svn:r7012
* r7303@Kushana: nickm | 2006-08-10 01:52:19 -0700Nick Mathewson2006-08-10
| | | | | | | whitespace fixes svn:r7011
* make svn trunk link again. nick can fix this if it's wrong.Roger Dingledine2006-08-04
| | | | svn:r6982
* r7009@Kushana: nickm | 2006-08-03 10:44:58 -0700Nick Mathewson2006-08-04
| | | | | | | Add functions to eventdns to allow detecting whether we have any nameservers configured, and to change the list of nameservers after initial configuration. svn:r6976
* r7008@Kushana: nickm | 2006-08-03 10:03:39 -0700Nick Mathewson2006-08-04
| | | | | | | Oops. We shouldnt initialize eventdns when we are not being a server and not resolving anything. svn:r6975
* r7007@Kushana: nickm | 2006-08-03 09:58:30 -0700Nick Mathewson2006-08-04
| | | | | | | Export and use eventdns_config_windows_nameservers(); clean up some comments and log messages. svn:r6974
* fix a seg fault on exit for clients; and fix a comment.Roger Dingledine2006-08-03
| | | | svn:r6969
* more compile options mean more codepathsRoger Dingledine2006-07-31
| | | | svn:r6963
* r6982@Kushana: nickm | 2006-07-31 13:47:19 -0400Nick Mathewson2006-07-31
| | | | | | | documentation and naming tweaks in dns.c svn:r6961
* r6981@Kushana: nickm | 2006-07-31 13:23:26 -0400Nick Mathewson2006-07-31
| | | | | | | More asserts for cache correctness. svn:r6960
* r6977@Kushana: nickm | 2006-07-31 13:01:28 -0400Nick Mathewson2006-07-31
| | | | | | | Solve timing-out pending connections. Add pending resolves to expiry queue; when we find an answer, change the pending resolve to "done" and stick the actual answer in the expiry queue as a new entry. This uses a little more memory, but makes the code simpler than other solutions. svn:r6956
* svn:r6955Nick Mathewson2006-07-31
|
* r6959@Kushana: nickm | 2006-07-29 22:33:18 -0400Nick Mathewson2006-07-31
| | | | | | | start restructuring dns to use priority queues for expiring entries. svn:r6954
* a bit more debugging for phobosRoger Dingledine2006-07-30
| | | | svn:r6937
* resolve typoRoger Dingledine2006-07-27
| | | | svn:r6927
* More asserts in dns.c Nick Mathewson2006-07-27
| | | | svn:r6926
* Get better numbers out of HT_REP_OKNick Mathewson2006-07-27
| | | | svn:r6924
* Add more asserts in dns_found_answer. This may confirm my theory that ↵Nick Mathewson2006-07-27
| | | | | | dns_purge_resolve is the culprit. svn:r6922
* r6918@Kushana: nickm | 2006-07-26 15:22:28 -0400Nick Mathewson2006-07-26
| | | | | | | Fix compilation for eventdns dns.c with split structs. svn:r6908
* r6909@Kushana: nickm | 2006-07-26 13:05:58 -0400Nick Mathewson2006-07-26
| | | | | | | Clean up wide lines from last patch. svn:r6907
* r6908@Kushana: nickm | 2006-07-26 12:38:52 -0400Nick Mathewson2006-07-26
| | | | | | | Refactor connection_t into edge, or, dir, control, and base subtypes. This might save some RAM on busy exit servers, but really matters most in terms of correctness. svn:r6906
* Don't tell anybody, but we're going OO here. This patch splitsNick Mathewson2006-07-23
| | | | | | | | | | | | | | | circuit_t into origin_circuit_t and or_circuit_t. I fixed some segaults; there may be more. We still need to move more rendezvous stuff into subtypes. This is a trial run for splitting up connection_t; if the approach is insane, please say so soon so we can do something smarter. Also, this discards the old HALF_OPEN code, which nobody seems to want. svn:r6817
* These asserts will either cause spurious crashes or help debug the ↵Nick Mathewson2006-07-21
| | | | | | pend->conn->s == -1 issue. svn:r6803
* stick to nick's nul/null conventionRoger Dingledine2006-07-15
| | | | svn:r6763
* Add some debugging asserts to dns.c; these are too expensive to leave in ↵Nick Mathewson2006-07-11
| | | | | | permanently. svn:r6756
* Add a const; fix a (probably harmless) bug when storing a resolve we forgot ↵Nick Mathewson2006-07-10
| | | | | | we asked for. svn:r6751
* When using eventdns: suppress logging of addresses when SafeLogging is ↵Nick Mathewson2006-07-07
| | | | | | active, and make set of nameservers configurable from torrc. svn:r6744
* Clean up eventdns messages.Nick Mathewson2006-07-05
| | | | svn:r6730
* Add plausile logging support to eventdns; stop putting stuff onto stdout.Nick Mathewson2006-07-05
| | | | svn:r6728
* fix spacingRoger Dingledine2006-06-15
| | | | svn:r6628
* Finally solve the "closing wedged cpuworkers" bug. Woo.Roger Dingledine2006-06-12
| | | | | | | | | | | This happened when we got two create cells in a row from the same TLS connection. It would hand one to the cpuworker, and then immediately handle the second one -- after it had registered that the first one was busy, but before it had updated the timestamp that we use to decide how *long* it's been busy. svn:r6606
* We got an obscure report of an assert error on a windows Tor server withRoger Dingledine2006-06-06
| | | | | | | | | | connection_add being called with socket = -1. The only places I can see where that happen would be if our tor_socketpair succeeds but it hands back negative values for some of its file descriptors. Perhaps this will produce more useful assert errors next time. svn:r6550
* Try to log useful messages at info and debug about what we are resolving and ↵Nick Mathewson2006-06-05
| | | | | | what answers we are getting wrt eventdns. svn:r6547
* Hm. Where did we put that ntohl the last time we were juggling it? ↵Nick Mathewson2006-06-05
| | | | | | (hoop-lah). svn:r6534
* Add a new warning to our "warn a lot" list: unused parameters. This means ↵Nick Mathewson2006-06-04
| | | | | | we have to explicitly "use" unuseds, but it can catch bugs. (It caught two coding mistakes so far.) svn:r6532
* More DNS fixes. Send meaningful TTLs back to the client whenNick Mathewson2006-06-03
| | | | | | | | | | | possible. Cache at the server side independently from the TTL, to prevent attackers from probing the server to see who has been asking for what hostnames. (Hi, Dan Kaminski!) Also, clean some whitespace. svn:r6526