Is there an example of how one would query the OpenAlias DNSSEC to return an XMR address for a registered alias? And how would one reference an OpenAlias address like http:// ? OA:// ?
2 Answers
To query OpenAlias is to simply perform a DNS query on TXT records for a given domain. These queries can be secured by utilizing DNSSEC.
Full details of implementing (and more) is all documented at https://openalias.org
- 19,601
- 4
- 17
- 54
You can use the following: https://dns-api.org/
Example output:
https://dns-api.org/TXT/openalias.org
Then use whatever programming language to parse through each TXT transaction and detect the oa prefix and then process each one.
Using the above api calls. I made a chrome extension to output open alias addresses by listing out openalias:// or oa:// handlers like this:
oa://donate.getmonero.org openalias://openalias.org
The chrome extension is here: https://chrome.google.com/webstore/detail/blockchain-gateway/mcppmdjlghmadabjofodajpppiloembp
- 4,608
- 4
- 27
- 69