Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DNS monero address aliasing and seed node lookup #146

Closed
wants to merge 11 commits into from
Closed

DNS monero address aliasing and seed node lookup #146

wants to merge 11 commits into from

Conversation

tewinget
Copy link
Contributor

Note: these changes were originally made based on the upstream development branch. As such, they do incorporate some unmerged changes from development. This was kept to a bare minimum, but will need to be reconciled when development is to be merged into master.

Note 2: DNSSEC validation is not added yet, but the code that will care about a DNSSEC validity is in place for when it is implemented.

Note 3: as requested, DNS lookup will now first check the syntax of the string passed as a URL. For now, that check is simply for a '.' in the string, but is easily changed.

CMake config file written, but was unable to test/get it working
properly because of a bug in CMake with functions related to
find_package.  Simple "-lunbound" flag used in its stead for now.  May
not build on non-Linux systems, not sure yet.
IPv4 and IPv6 name resolution working.
Unit tests written (and passing).
net_node.{h,inl} code modified to use DNS seeds.
Also implemented rudimentary IPv6 support, but commented it out because
it's not widely supported by ISPs for now, and thus is not currently
supported by Monero.
Still need to deal with DNSSEC and optional fields in the TXT record.
Simplewallet should now do a DNS query on an address if it fails to
convert the given string to a binary representation of an address
(base58->binary).  It will prompt the user, telling of what the "url"
passed was, what monero address it translated to, and whether or not
DNSSEC validation was a success, and ask for a confirmation that these
are all acceptable.
As it turns out, some of CMake's built-in modules for detecting headers
and libraries don't work if you have certain compiler flags set, such as
-Werror=old-style-definition, as they do "int main()" rather than
"int main(void)".  Having CMake search for libs before compiler flags
are set alleviates this issue, and I believe the underlying issue will
be fixed in future releases of CMake.
For now, simply checks for '.' character, but that will be easy to
change in the future if necessary/desired.
@fluffypony
Copy link
Contributor

resubmitting with mingw

@fluffypony fluffypony closed this Sep 23, 2014
stoffu pushed a commit to stoffu/monero that referenced this pull request Sep 19, 2019
cmake: add protolib to zmq dependency libs /monero#5907
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants