> ## Documentation Index
> Fetch the complete documentation index at: https://docs.superlink.me/llms.txt
> Use this file to discover all available pages before exploring further.

# Onboard existing parent domain

Use the following to help guide the onboarding of an existing domain as a parent domain. The domain requires to be set up for DNSSEC and requires a text record describing the ENS resolver. This API will check and verify this setup, and if incorrect advise how to fix.

<CodeGroup>
  ```javascript javascript theme={null}
  // See documentation to set up the client first

  let apiInstance = new superlink.SubdomainApi();
  let parentDomain = "supertest.me";

  apiInstance.parentdomainValidation(parentDomain, (error, data, response) => {
    if (error) {
      console.error(error);
    } else {
      console.log(`${data.status}`)
      console.log(`${data.reason}`)
    }
  });
  ```

  ```go go theme={null}
  // See documentation to set up the client first

  parentDomain := "supertest.me"
  resp, r, err := superlinkClient.SubdomainAPI.ParentdomainValidation(context.Background(), parentDomain).Execute()
  if err != nil {
    fmt.Fprintf(os.Stderr, "Error when calling `SubdomainAPI.ParentdomainValidation``: %v\n", err)
    fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
  }

  fmt.Fprintf(os.Stdout, "%s\n", *resp.Status)
  fmt.Fprintf(os.Stdout, "%s\n", *resp.Reason)
  ```

  ```python python theme={null}
  # See documentation to set up the client first

  api_instance = superlink.SubdomainApi(api_client)
  parent_domain = 'supertest.me'

  try:
      api_response = api_instance.parentdomain_validation(parent_domain)
      print(api_response.status)
      print(api_response.reason)
  except Exception as e:
      print("Exception when calling SubdomainApi->parentdomain_validation: %s\n" % e)
  ```
</CodeGroup>
