Commit graph

153 commits

Author SHA1 Message Date
Pieter Wuille
c52f3dbcc8
Merge #84: Add --address, bind to specific address
bf40486011 Add --address, bind to specific address (uhliksk)

Pull request description:

  - Fix #83 (will reply from same address as provided)
  - Fix #59 (will work if you bind to specific IPv4 address)
  - Fix #51 (will work with systemd-resolved service if you bind to specific address)

ACKs for top commit:
  sipa:
    ACK bf40486011

Tree-SHA512: 1924533a31f4e1b1149e1863454c28b5860eea6bd90e4d54fea761b608ad47ad8e15e6e2a745c91717658466cdd6c2cdc221f2587968f94c798d09774e4ddca0
2020-12-17 10:58:03 -08:00
Pieter Wuille
c80dfca92d
Merge #88: Add setcap hint to readme
5586af8ff2 Add setcap hint to readme (Jonas Schnelli)

Pull request description:

ACKs for top commit:
  sipa:
    ACK 5586af8ff2

Tree-SHA512: 1449ba2419bfb4a14b6dfff1683e13b0a6f469d69c8ebf9026ae9b51bba684538e3e89ed714163b83becdf13572174826579dcec2ac2abfc84ce94693935461f
2020-12-17 10:52:02 -08:00
Jonas Schnelli
5586af8ff2 Add setcap hint to readme 2020-12-16 20:25:09 +01:00
Pieter Wuille
b1cf356ff2 Fix stack overflow in write_record_aaaa 2020-10-19 16:32:08 -07:00
Pieter Wuille
63ff7e40c9 Don't merge in re-rumours' nServices 2020-10-10 10:20:26 -07:00
Pieter Wuille
24e1cac582 Avoid strncpy for commands 2020-10-09 19:51:19 -07:00
Pieter Wuille
89929dab5c Use distinct read and except sets in select() 2020-10-09 19:44:29 -07:00
Pieter Wuille
a1e9394284 Overwrite db services with version message results 2020-10-09 19:37:28 -07:00
uhliksk
bf40486011
Add --address, bind to specific address 2020-08-06 03:29:56 +02:00
Pieter Wuille
529a667f30 Convert dns.c to C++ 2019-12-02 15:16:26 -08:00
Pieter Wuille
d098ad9a1f Add support for NODE_COMPACT_FILTERS by default 2019-08-09 17:04:12 -07:00
Pieter Wuille
36bd7f9a0f Send BIP37 fRelay as false 2019-08-09 16:56:23 -07:00
Pieter Wuille
180eb62bd2 Delete unused TestUint256AdHoc 2019-08-09 16:53:30 -07:00
Pieter Wuille
002bc0bbd5 Support NODE_NETWORK_LIMITED by default 2019-08-09 16:52:18 -07:00
Pieter Wuille
d54f39a1ee
Merge #42: thisflag should be declared as FlagSpecificData reference
9e4e634 thisflag should be declared as FlagSpecificData reference (Andrea Suisani)
2017-01-12 21:06:13 -08:00
Andrea Suisani
9e4e6342b7
thisflag should be declared as FlagSpecificData reference
With the current code there's now way that the seeder
returns peers addresses upon dns requests.

Thanks to @gandrewstone for good catch.
2017-01-13 00:04:09 +01:00
Pieter Wuille
d5764c9149 Fix per-flag-cache size tracking 2016-10-29 12:15:18 -07:00
Pieter Wuille
0ec6e14c17
Merge #41: Fix -w option
0984cac Fix -w option (Peter Todd)
2016-06-23 21:51:38 +02:00
Peter Todd
0984caca2a
Fix -w option 2016-06-14 23:53:20 -04:00
Pieter Wuille
43388c3c3e
Merge #40: Improve filter whitelist
fa2aa34 Improve filter whitelist (Pieter Wuille)
2016-06-07 18:58:45 +02:00
Pieter Wuille
fa2aa348c8 Improve filter whitelist 2016-06-07 18:55:16 +02:00
Pieter Wuille
ab0ac73e5f
Merge #36: Add support to filter nodes by node flags
c9679dc Add whitelist for service filter, use a map for cacheTime (Jonas Schnelli)
5c8b9e3 IP-Query: Use a vector instead a set and random pick an IP (Jonas Schnelli)
839db15 Add support to filter nodes by node flags (Jonas Schnelli)
2016-06-07 17:57:12 +02:00
Jonas Schnelli
c9679dc98e
Add whitelist for service filter, use a map for cacheTime 2016-06-03 17:53:03 +02:00
Pieter Wuille
9c32351efd
Merge #38: Wait for more than a single addr to come back
e27d6c5 Adjust protocol timeouts (Pieter Wuille)
a9e960a Wait until we have more than a single addr response (Pieter Wuille)
2016-06-01 12:43:54 +02:00
Pieter Wuille
e27d6c5b3d Adjust protocol timeouts 2016-05-31 22:07:07 +02:00
Pieter Wuille
a9e960a4dd Wait until we have more than a single addr response 2016-05-31 22:06:58 +02:00
Jonas Schnelli
5c8b9e392b
IP-Query: Use a vector instead a set and random pick an IP 2016-05-31 10:40:44 +02:00
Jonas Schnelli
839db157f9
Add support to filter nodes by node flags 2016-05-27 16:22:42 +02:00
Pieter Wuille
c36ed80739
Merge #35: fix typos
3efbe20 fix typos (Carsten Otto)
2016-05-26 15:52:30 +02:00
Pieter Wuille
e7ab039041
Merge #31: Longer TTL
1763253 Longer TTL (Pieter Wuille)
2016-05-26 15:51:27 +02:00
Carsten Otto
3efbe20217 fix typos 2016-02-06 22:32:40 +01:00
Pieter Wuille
1a33b78801
Merge pull request #33
f0c8b87 require e-mail address if dns is enabled (Pavel Vasin)
2015-08-04 18:57:05 +02:00
Pavel Vasin
f0c8b87a07 require e-mail address if dns is enabled
Writing SOA record will cause nullptr dereference if it's not specified.
2015-08-03 22:04:20 +03:00
Pieter Wuille
a59329d936
Merge pull request #19
bb53306 dns: listen on ipv6 (Pavel Vasin)
34fd288 remove option to build without ipv6 support (Pavel Vasin)
2015-07-29 15:55:49 +02:00
Pieter Wuille
69436e5f4b
Merge pull request #32
5be5b37 Fixup (Pieter Wuille)
2015-07-29 15:35:35 +02:00
Pieter Wuille
5be5b37a83 Fixup 2015-07-29 15:34:23 +02:00
Pieter Wuille
17632535ca Longer TTL 2015-07-29 15:19:21 +02:00
Pieter Wuille
5b5a942b1f
Merge pull request #30
98f98c2 Update version/height requirements (Pieter Wuille)
2015-07-29 15:17:46 +02:00
Pieter Wuille
98f98c2a3a Update version/height requirements 2015-07-29 15:16:26 +02:00
Pieter Wuille
75f2662406
Merge pull request #13
c11d7ed Add size specifier to BITCOIN_SEED_NONCE (Wladimir J. van der Laan)
2015-07-29 15:09:51 +02:00
Pieter Wuille
8ca655cd78
Merge pull request #23
9b49b9f Add compilation instructions. (Eric Martindale)
2015-07-29 14:58:06 +02:00
Pieter Wuille
5b36c248f5
Merge pull request #27
5eca8e2 Fix negative responses (Peter Todd)
2015-07-29 14:57:11 +02:00
Pieter Wuille
589fcd6ee2
Merge pull request #29
23aa36a indicate that IPv4/IPv6 proxy use SOCKS5 protocol (Jonas Schnelli)
134a393 add support for IPV6 proxy (Jonas Schnelli)
1d9d182 add support for IPV4 proxy (Jonas Schnelli)
6e5a391 avoid connecting to non valid ipv4 ranges (>=240.0.0.0) (Jonas Schnelli)
2015-07-29 14:54:37 +02:00
Jonas Schnelli
23aa36ad40 indicate that IPv4/IPv6 proxy use SOCKS5 protocol 2015-07-27 11:49:51 +02:00
Jonas Schnelli
134a393d1d add support for IPV6 proxy 2015-07-26 17:32:05 +02:00
Jonas Schnelli
1d9d182b2b add support for IPV4 proxy
- this will allow crawling over TOR
2015-07-20 13:55:21 +02:00
Jonas Schnelli
6e5a39185e avoid connecting to non valid ipv4 ranges (>=240.0.0.0) 2015-07-18 20:43:24 +02:00
Peter Todd
5eca8e269a
Fix negative responses
Previously if the resolver was asked for a record it didn't have, it would
return a response with a NS record in the authority section.  This is
incorrect, as the lack of answer indicates to the resolver that it should try
that NS record as the next step, resulting in a loop:

    $ dig @8.8.8.8 rbf-seed.btc.petertodd.org TXT +trace

    <snip>

    rbf-seed.btc.petertodd.org. 300 IN      NS      rbf-seed-ns1.btc.petertodd.org.
    rbf-seed.btc.petertodd.org. 300 IN      NS      rbf-seed-ns2.btc.petertodd.org.
    ;; Received 141 bytes from 205.251.193.174#53(ns-430.awsdns-53.com) in 426 ms

    rbf-seed.btc.petertodd.org. 40000 IN    NS      rbf-seed-ns2.btc.petertodd.org.
    ;; BAD (HORIZONTAL) REFERRAL
    ;; Received 88 bytes from 185.52.1.173#53(rbf-seed-ns2.btc.petertodd.org) in 108 ms

    rbf-seed.btc.petertodd.org. 40000 IN    NS      rbf-seed-ns2.btc.petertodd.org.
    ;; BAD (HORIZONTAL) REFERRAL
    ;; Received 88 bytes from 185.52.1.173#53(rbf-seed-ns2.btc.petertodd.org) in 108 ms

    <snip>

    rbf-seed.btc.petertodd.org. 40000 IN    NS      rbf-seed-ns2.btc.petertodd.org.
    ;; BAD (HORIZONTAL) REFERRAL
    dig: too many lookups

The correct response in the authority section of a negative response is a SOA
record, which indicates that the answer is authoritative and the resolver can
consider the record missing and stop looking for it:

    $ dig @8.8.8.8 rbf-seed.btc.petertodd.org TXT +trace

    <snip>

    rbf-seed.btc.petertodd.org. 300 IN      NS      rbf-seed-ns1.btc.petertodd.org.
    rbf-seed.btc.petertodd.org. 300 IN      NS      rbf-seed-ns2.btc.petertodd.org.
    ;; Received 141 bytes from 205.251.196.185#53(ns-1209.awsdns-23.org) in 740 ms

    rbf-seed.btc.petertodd.org. 40000 IN    SOA     rbf-seed-ns1.btc.petertodd.org. pete.petertodd.org. 1435846201 604800 86400 2592000 604800
    ;; Received 128 bytes from 104.236.95.174#53(rbf-seed-ns1.btc.petertodd.org) in 31 ms

There have been a few reports of problems resolving seed domains on some
ISPs - hopefully this was the root cause.
2015-07-02 09:58:14 -04:00
Pieter Wuille
85fb114ed5
Merge pull request #25
7a79dca Add dependencies to README (Peter Todd)
2015-06-21 15:12:55 +02:00
Pieter Wuille
98557c252b
Merge pull request #26
01c6b4e Update list of testnet seeds (Peter Todd)
2015-06-21 15:12:24 +02:00