open-attestation dns txt-record create --public-key did:ethr:0xaCc51f664D647C9928196c4e33D46fd98FDaA91D#controller
Take note that you need to prepend your wallet address by did:ethr: and append #controller to it. Indeed, open again your own DID on uniresolver (see previous step). Check the value of didDocument.publicKey. It should look like:
The public-key parameter in the creation command above MUST match the id property.
Once the DNS TXT record has been successfully deployed, you will see the success message with the bound location.
โ success Record created at intermediate-sapphire-catfish.sandbox.openattestation.com and will stay valid until Fri Nov 27 2020 14:12:03 GMT+0800 (Singapore Standard Time)
In the example above, the document store did:ethr:0xaCc51f664D647C9928196c4e33D46fd98FDaA91D#controller, has been bound to the intermediate-sapphire-catfish.sandbox.openattestation.com location. Let's make sure the entry has been propagated to the DNS:
open-attestation dns txt-record get --location intermediate-sapphire-catfish.sandbox.openattestation.com
which will display to you the list of the DNS TXT records associated to that location.