> 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/untitled.md).

# Domain Lookup

The public function `resolveDomain(string _domainName)` can be called to convert a given VNS domain to a VeChain address. The `domainName` is the users vns address without the `.vns` TLD. For example, mycooldomain.vet should be passed as `resolveDomain("mycooldomain")`.&#x20;

The following line of code will make a Web3 call to the VNS contracts to resolve the specified domain name:

```javascript
let _domain = "testdomain.vet"
let _address = vnsContract.methods.resolveDomain(_domain).call();
```
