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

# Domain Registration

> A guide to setting up a Route 53 domain for the dashboard and preview URLs.

***

## Verify Nginx Ingress Controller Hostname

> To create a record in the Route53 nameserver, verify the Nginx Ingress Controller's hostname.

```bash theme={null}
kubectl get svc \
      -n ingress-nginx \
      ingress-nginx-controller \
      -o jsonpath='{.status.loadBalancer.ingress[0].hostname}' \
  | xargs -I{} echo "{}"
```

```bash theme={null}
# Nginx Ingress Controller Hostname
XXX.elb.ap-northeast-2.amazonaws.com
```

***

## Create Route53 Record

<Frame>
  <img className="block rounded-md" src="https://files.cloudtype.io/ale-docs/setup/ec2/images/04_13.png" />
</Frame>

> Navigate to **Route53 > Hosted Zones > Target Domain Page** and click `Create record`.

<Frame>
  <img className="block rounded-md" src="https://files.cloudtype.io/ale-docs/setup/eks/images/02_03.png" />
</Frame>

> On the record creation page, enter the following values and click `Create record`.

* **Record Name**: \*
* **Record Type**: CNAME
* **Value**: Nginx Ingress Controller Hostname

<Info>
  Run the following command to verify that the record has been successfully applied to the nameserver.

  ```bash theme={null}
  dig "<Domain registered as a record>"
  ```

  ```bash theme={null}
  ; <<>> DiG 9.10.6 <<>> *.ale-dev.com
  ;; global options: +cmd
  ;; Got answer:
  ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 28445
  ;; flags: qr rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 4, ADDITIONAL: 1

  ;; OPT PSEUDOSECTION:
  ; EDNS: version: 0, flags:; udp: 4096
  ;; QUESTION SECTION:
  ;*.ale-dev.com.                 IN      A

  ;; ANSWER SECTION:
  *.ale-dev.com.          300     IN      CNAME   XXX.elb.ap-northeast-2.amazonaws.com.
  XXX.elb.ap-northeast-2.amazonaws.com. 60 IN A XXX.XXX.XXX.XXX
  XXX.elb.ap-northeast-2.amazonaws.com. 60 IN A XXX.XXX.XXX.XXX

  ;; AUTHORITY SECTION:
  elb.ap-northeast-2.amazonaws.com. 59908 IN NS   ns-1990.awsdns-56.co.uk.
  elb.ap-northeast-2.amazonaws.com. 59908 IN NS   ns-42.awsdns-05.com.
  elb.ap-northeast-2.amazonaws.com. 59908 IN NS   ns-679.awsdns-20.net.
  elb.ap-northeast-2.amazonaws.com. 59908 IN NS   ns-1346.awsdns-40.org.

  ;; Query time: 22 msec
  ;; SERVER: 1.214.68.2#53(1.214.68.2)
  ;; WHEN: Thu Sep 05 17:48:38 KST 2024
  ;; MSG SIZE  rcvd: 303
  ```
</Info>
