# What is DNS?

DNS hosts your domains on the platform's nameservers, so the records of a domain are written in the console, the CLI, the API or Terraform and answered on the internet from there.

You create a hosted zone for a domain such as `example.com`, add its records, and replace the
domain's nameservers at your registrar with the platform nameservers. From then on, resolvers on
the internet ask the platform nameservers for every name in the domain. You find DNS under
**Hosted zones** in the Deutsche Cloud Console.

## When to use it

- You want the records of a domain next to the resources they point at, written by the same
  people, policies and tools.
- A name, the zone apex included, should follow an app, a load balancer, a bucket website or a CDN
  distribution without anyone copying an address (an `ALIAS` record).
- A name should answer a backup address while an uptime check reports its target down, or answer
  different values by weight or by the client's location.
- You want a zone signed with DNSSEC, or every query the zone gets logged.

## Concepts

| Term                     | Meaning                                                                                                                                                                                                        |
| ------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Hosted zone**          | One domain and every record under it. A domain is held by one organization on the platform. See [Create a hosted zone](create-a-hosted-zone.md).                                                               |
| **Platform nameservers** | The names you set as the domain's `NS` records at the registrar. They answer for every hosted zone on the platform. See [Delegate a domain](delegate-a-domain.md).                                             |
| **Record set**           | Every value at one name and type, with one TTL. See [Record sets](record-sets.md).                                                                                                                             |
| **ALIAS**                | A record type of the platform: it answers with the current address of one of your apps, load balancers, bucket websites or CDN distributions. See [Point a name at a resource](point-a-name-at-a-resource.md). |
| **Health check**         | An uptime check attached to an `A`, `AAAA` or `CNAME` set; while it is down, the set answers its failover values, if it has any.                                                                               |
| **Delegation**           | Where the domain's `NS` records point, as public resolvers see it.                                                                                                                                             |

## Pricing

Hosted zones and queries are free.

## Interfaces

- The Deutsche Cloud Console, under **Hosted zones**.
- The CLI: `dcloud dns zones …`, `dcloud dns records …`, `dcloud dns query-log …` and
  `dcloud dns dnssec …`; see the _CLI Command Reference_.
- The HTTP API under `/dns/api`; see the _API Reference_.
- Terraform: `dcloud_dns_zone`, `dcloud_dns_record`, `dcloud_dns_zone_dnssec` and
  `dcloud_dns_query_log`.

## Next steps

- [Get started](getting-started.md): host a domain, add a record, check the delegation, and clean
  up.
- [Record sets](record-sets.md)
- [Point a name at a resource](point-a-name-at-a-resource.md)
