diff options
author | Thomas Winget <tewinget@gmail.com> | 2014-09-17 17:26:51 -0400 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2014-09-23 22:58:21 +0200 |
commit | a5757a628f0da0affae66345a5f3209a44613d56 (patch) | |
tree | 6ece4938a2c6346803346587ec2ea792cbd34ab2 /src/common/dns_utils.h | |
parent | seed node DNS code updated to use DNSResolver (diff) | |
download | monero-a5757a628f0da0affae66345a5f3209a44613d56.tar.xz |
Monero addres from DNS TXT record implemented, tests pass
Still need to deal with DNSSEC and optional fields in the TXT record.
Diffstat (limited to 'src/common/dns_utils.h')
-rw-r--r-- | src/common/dns_utils.h | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/common/dns_utils.h b/src/common/dns_utils.h index 6697d8fff..ff54c1e07 100644 --- a/src/common/dns_utils.h +++ b/src/common/dns_utils.h @@ -82,17 +82,15 @@ public: std::vector<std::string> get_ipv6(const std::string& url); /** - * @brief gets a monero address from the TXT record of the DNS query response - * - * returns a monero address string from the TXT record associated with URL - * if no TXT record present, or no valid monero address in TXT, - * returns an empty string. + * @brief gets a TXT record from a DNS query for the supplied URL; + * if no TXT record present returns an empty string. * * @param url A string containing a URL to query for * - * @return + * @return A string containing a TXT record; or an empty string */ - std::string get_payment_address(const std::string& url); + // TODO: modify this to accomodate DNSSEC + std::string get_txt_record(const std::string& url); /** * @brief Gets the singleton instance of DNSResolver |