> For the complete documentation index, see [llms.txt](https://vechain-dns.gitbook.io/vns-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://vechain-dns.gitbook.io/vns-docs/front-end-integration/domain-management.md).

# Domain Management

The following functions are related to managing a user's domains, VIP-181 tokens, and sub-domains:

* `setDomain(uint256 _tokenID, address _targetAddress)`
* `addSubdomain(uint256 _tokenID, string calldata _subDomain, address _targetAddress)`
* `removeSubdomain(uint256 _tokenID, string calldata _subDomain)`
* `popDomain(uint256 _tokenID)`
  * Requires the target domain to have auto-renew disabled. Can be called by domain owner or any public member.
