W
W
WebDev2020-05-28 20:02:27
Domain Name System
WebDev, 2020-05-28 20:02:27

How to add cname to hetzner?

Hello!
Bought a domain from a third party registrar.
I rented hosting from Hetzner. Created a zone on dns.hetzner.com. Registered the server of this zone at the domain registrar.
Created a type A record for the main domain
. Created a CNAME record for subdomains.
5ecfef9044f8c581251741.png

The main domain is working, but the subdomains are not.
nslookup shows a dual domain for subdomains. Like this:
api.mydomain.com canonical name mydomain.com.mydomain.com
What am I doing wrong?
5ecfee66c6681658375930.png
This is what the add entry window looks like. In the first field (host) I enter the subdomain itself (api), in the second field (alias) I enter my main domain.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
W
WebDev, 2020-05-28
@kirill-93

Issue resolved. It was necessary to put a point after the domain.

A
Andrey Gavrilov, 2020-05-28
@thexaver

Isn't it easier to use a notation? why cname?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question