1

I think this has been answered somewhere in the internet once before, but I can't find the answer anymore. If I own DOMAIN.ETH ENS and I create Subdomain.DOMAIN.ETH and transfer the ownership of subdomain to someone else and resolve the address to someone else's address, will I still be able to modify it's settings as the owner of DOMAIN.ETH?

1 Answer 1

1

Technically no, but practically yes.

Technically

While another account is the owner of a subdomain, you cannot directly manage it. For example, you cannot:

  • set a new resolver in ENS
  • set the owner of a sub-sub domain
  • interact with the public/default resolver on behalf of the subdomain

Practically

At any time, you can reclaim ownership of your subdomain by using:

ens.setSubnodeOwner(
  namehash('domain.eth'),
  web3.sha3('subdomain'),
  MY_ACCOUNT,
  {from: MY_ACCOUNT}
);

Then you can make whatever administrative changes you want. At which point, you can choose to revert ownership back to the previous owner with another setSubnodeOwner call.

2
  • is it possible to lock the setSubnodeOwner option so it can't be used anymore?
    – rajohs
    Dec 15, 2022 at 19:05
  • @rajohs that is interesting and distinct enough to warrant submitting a new question.
    – carver
    Feb 13 at 23:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.