aboutsummaryrefslogtreecommitdiff
path: root/src/common/dns_utils.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Establish Monzero Phase 0 and inactive assets baselinemonzero-phase0-assets-prototype-20260815Monzero Build System5 hours1-20/+4
|
* Merge pull request #8683luigi11112023-01-111-0/+2
|\ | | | | | | cbc297a common: add missing includes (selsta)
| * common: add missing includesselsta2022-12-181-0/+2
| |
* | DNSResolver: fix not handling hostnames without dot characters [release]Jeffrey Ryan2022-11-211-15/+0
|/ | | | Unrelated, but similar code-wise to #8643. There is a check in `DNSResolver` which automatically fails to resolve hostnames which do not contain the `.` character. This PR removes that check.
* Second thread pool for IOSChernykh2022-09-201-1/+1
|
* Copyright: Update to 2022mj-xmr2022-03-041-1/+1
|
* Merge pull request #7088luigi11112021-03-291-2/+27
|\ | | | | | | 386ef03 Add TLSA support to DNSSEC fetching (Lee Clagett)
| * Add TLSA support to DNSSEC fetchingLee Clagett2020-10-071-2/+27
| |
* | add more updates domains and make the voting generic, not just 2/3moneromooo-monero2020-10-151-41/+21
|/
* threadpool: guard against exceptions in jobs, and armour platingmoneromooo-monero2020-09-011-2/+2
| | | | | Those would, if uncaught, exit run and leave the waiter to wait indefinitely for the number of active jobs to reach 0
* Update copyright year to 2020SomaticFanatic2020-05-061-1/+1
| | | | Update copyright year to 2020
* Remove Xiala.net from the list of dns resolverstobtoht2019-06-211-1/+0
| | | | It is down permanently. See: https://xiala.net/ "Ende November 2018 werden alle Dienste von xiala.net abgeschaltet."
* crypto: replace rand<T>()%N idiom with unbiased rand_idx(N)stoffu2019-04-041-5/+2
|
* Merge pull request #5306Riccardo Spagni2019-04-011-5/+5
|\ | | | | | | 8a97563a Use threadpool instead of new threads for DNS queries (Howard Chu)
| * Use threadpool instead of new threads for DNS queriesHoward Chu2019-03-171-5/+5
| |
* | dns_utils: really add default DNSSEC servers on failuremoneromooo-monero2019-03-201-3/+2
| | | | | | | | Coverity 196597
* | Merge pull request #5198Riccardo Spagni2019-03-191-6/+34
|\ \ | | | | | | | | | 9c4d403a dns_utils: use fallback if the default resolver does not support DNSSEC (moneromooo-monero)
| * | dns_utils: use fallback if the default resolver does not support DNSSECmoneromooo-monero2019-02-271-6/+34
| |/
* | Merge pull request #5179Riccardo Spagni2019-03-171-4/+4
|\ \ | | | | | | | | | 7c09882a dns_utils: remove MoneroPulse/checkpoints mention in TXT record code (moneromooo-monero)
| * | dns_utils: remove MoneroPulse/checkpoints mention in TXT record codemoneromooo-monero2019-02-211-4/+4
| |/ | | | | | | This code is used for more than just these
* / Update 2019 copyrightbinaryFate2019-03-051-1/+1
|/
* Merge pull request #4894Riccardo Spagni2018-12-041-1/+1
|\ | | | | | | | | | | | | | | | | | | aee7a4e3 wallet_rpc_server: do not use RPC data if the call failed (moneromooo-monero) 1a0733e5 windows_service: fix memory leak (moneromooo-monero) 0dac3c64 unit_tests: do not rethrow a copy of an exception (moneromooo-monero) 5d9915ab cryptonote: fix get_unit for non default settings (moneromooo-monero) d4f50cb1 remove some unused code (moneromooo-monero) 61163971 a few minor (but easy) performance tweaks (moneromooo-monero) 30023074 tests: slow_memmem now returns size_t (moneromooo-monero)
| * remove some unused codemoneromooo-monero2018-11-231-1/+1
| | | | | | | | Found by codacy.com
* | Merge pull request #4854Riccardo Spagni2018-12-041-2/+0
|\ \ | |/ |/| | | bd98e99c Removed a lot of unnecessary includes (Martijn Otto)
| * Removed a lot of unnecessary includesMartijn Otto2018-11-151-2/+0
| |
* | dns_utils: do not exit if DNS records are corruptmoneromooo-monero2018-11-011-7/+34
|/
* dns_utils: refresh list of usable DNSSEC serversmoneromooo-monero2018-09-281-3/+4
| | | | A few of them are now returning invalid replies.
* dns_util: add new DNSSEC trust anchor for rollovermoneromooo-monero2018-08-281-4/+14
| | | | | | | | It should be useful from the 11th of october 2018. The old key is still trusted for now. https://www.icann.org/resources/pages/ksk-rollover
* common: make this build with unbound 1.4.20moneromooo-monero2018-04-101-1/+1
| | | | Common on currently used distros
* dns: change default DNS to a worldwide selectionmoneromooo-monero2018-02-081-9/+19
| | | | DNSSEC aware servers picked from https://wiki.ipfire.org/dns/public-servers
* Update 2018 copyrightxmr-eric2018-01-261-1/+1
|
* move includes around to lessen overall loadmoneromooo-monero2017-12-161-0/+2
|
* dns_utils: allow an optional DNS server IP in DNS_PUBLICmoneromooo-monero2017-10-101-6/+39
| | | | tcp://a.b.c.d
* Merge pull request #2504Riccardo Spagni2017-10-021-6/+15
|\ | | | | | | f182acdd dns_utils: query DNS records in parallel (moneromooo-monero)
| * dns_utils: query DNS records in parallelmoneromooo-monero2017-09-211-6/+15
| |
* | dns_utils: remove a few obsolete thingsmoneromooo-monero2017-09-041-4/+0
|/
* Merge pull request #2210Riccardo Spagni2017-08-071-43/+3
|\ | | | | | | cb0b5594 Move OpenAlias console input back from libs (moneromooo-monero)
| * Move OpenAlias console input back from libsmoneromooo-monero2017-07-271-43/+3
| | | | | | | | | | | | | | Library code should definitely not ask for console input unless it's clearly an input function. Delegating the user interaction part to the caller means it can now be used by a GUI, or have a decision algorithm better adapted to a particular caller.
* | Ensure DNSResolver destructor runs on exitHoward Chu2017-06-281-6/+2
|/ | | | Plugs a noisy but benign memory leak
* wallet-rpc: enable openaliasstoffu2017-03-171-3/+5
|
* update copyright year, fix occasional lack of newline at line endRiccardo Spagni2017-02-211-1/+1
|
* dns_utils: fix infinite recursion when distributing empty dns_urlsanonimal2017-02-211-0/+3
| | | | | | load_txt_records_from_dns attempts to distribute `a = 0, b = -1` where (b = dns_urls.size() - 1) and IntType is signed integer. This results in an infinite recursion which leads to SIGSEGV.
* dns_utils: fix first checked DNS entry being ignoredmoneromooo-monero2017-02-201-1/+0
|
* dns_utils: factor TXT record loading code from checkpoint codemoneromooo-monero2017-02-201-0/+103
|
* extract some basic code from libcryptonote_core into libcryptonote_basickenshi842017-02-081-1/+1
|
* moved get_account_address_from_str_or_url from libcommon to libcryptonote_corekenshi842017-01-241-16/+0
|
* Change logging to easylogging++moneromooo-monero2017-01-161-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This replaces the epee and data_loggers logging systems with a single one, and also adds filename:line and explicit severity levels. Categories may be defined, and logging severity set by category (or set of categories). epee style 0-4 log level maps to a sensible severity configuration. Log files now also rotate when reaching 100 MB. To select which logs to output, use the MONERO_LOGS environment variable, with a comma separated list of categories (globs are supported), with their requested severity level after a colon. If a log matches more than one such setting, the last one in the configuration string applies. A few examples: This one is (mostly) silent, only outputting fatal errors: MONERO_LOGS=*:FATAL This one is very verbose: MONERO_LOGS=*:TRACE This one is totally silent (logwise): MONERO_LOGS="" This one outputs all errors and warnings, except for the "verify" category, which prints just fatal errors (the verify category is used for logs about incoming transactions and blocks, and it is expected that some/many will fail to verify, hence we don't want the spam): MONERO_LOGS=*:WARNING,verify:FATAL Log levels are, in decreasing order of priority: FATAL, ERROR, WARNING, INFO, DEBUG, TRACE Subcategories may be added using prefixes and globs. This example will output net.p2p logs at the TRACE level, but all other net* logs only at INFO: MONERO_LOGS=*:ERROR,net*:INFO,net.p2p:TRACE Logs which are intended for the user (which Monero was using a lot through epee, but really isn't a nice way to go things) should use the "global" category. There are a few helper macros for using this category, eg: MGINFO("this shows up by default") or MGINFO_RED("this is red"), to try to keep a similar look and feel for now. Existing epee log macros still exist, and map to the new log levels, but since they're used as a "user facing" UI element as much as a logging system, they often don't map well to log severities (ie, a log level 0 log may be an error, or may be something we want the user to see, such as an important info). In those cases, I tried to use the new macros. In other cases, I left the existing macros in. When modifying logs, it is probably best to switch to the new macros with explicit levels. The --log-level options and set_log commands now also accept category settings, in addition to the epee style log levels.
* make openalias also available for solo miner; introduce namespace ↵kenshi842016-12-211-0/+143
| | | | tools::dns_utils; support integrated address with dns lookup
* dns_utils: const compatibility with older libunboundmoneromooo-monero2016-02-231-22/+16
| | | | https://www.nlnetlabs.nl/bugs-script/show_bug.cgi?id=515
* std::condvar is broken on Win32 with gcc/g++ 4.8 tooHoward Chu2016-02-181-2/+2
| | | | Use boost...