Author

Topic: [PULL] dns lookups for -addnode and -connect (Read 1350 times)

member
Activity: 98
Merit: 13
Pulled into upstream.
legendary
Activity: 1072
Merit: 1189
Updated.
administrator
Activity: 5222
Merit: 13032
DNS would be very nice. Maybe it can be extended to IP transactions, too.
member
Activity: 98
Merit: 13
See comments at the pull request.

User interface is OK (-dns, changing -addnode and -connect behavior, etc.), but the code needs to be turned "inside out."  DNS produces multiple addresses, and thus has a one-to-many relationship between DNS name and CAddress...  but the DNS lookup is stuffed inside a CAddress object.

The code should instead have a helper that produces a vector of CAddress, from a DNS lookup, or a helper that creates and pushes multiple CAddress objects into AddAddress()

hero member
Activity: 489
Merit: 505
All command-line options (except for -datadir and -conf) can be specified in the config file.
And there I was thinking that I figured out everything ^^ Thanks for the correction.
legendary
Activity: 1652
Merit: 2311
Chief Scientist
I actually think it is useful. It would be even more useful to allow most of these options configurable through the config file.

All command-line options (except for -datadir and -conf) can be specified in the config file.
hero member
Activity: 489
Merit: 505
I actually think it is useful. It would be even more useful to allow most of these options configurable through the config file.

+1

Edit: as for security reasons: we do trust peers exchanged from others, so there are easier ways to inject and propagate malicious contacts.
staff
Activity: 4270
Merit: 1209
I support freedom of choice
Can you add an option? ( like upnp )
legendary
Activity: 1072
Merit: 1189
Hello,

I've created a pull request that adds support for DNS lookups in -addnode and -connect, as I think it's a very useful feature.

Apparently it is considered a security issue by some (including satoshi, I've been told), so by default it is disabled, and the command line option -dns needs to be passed to enable it (as suggested by jgarzic)

See https://github.com/bitcoin/bitcoin/pull/192
Jump to: