0

I registered a domain example.com on Hetzner.

How do I create a redirect to a different domain example2.com?

I see no straight option to do such a configuration. When trying to create a CNAME record CNAME @ example2.com 7200 I am always prompted to delete lots of other records that have @ was value (A, AAAA, MX, TXT, SOA and NS records).

I'll probably go with the option of setting an A record to one of my servers and using an existing Nginx Proxy Manager instance where I created a "Redirect Host" to just do a redirect (no proxying).

image

That may impact the performance of the server, if there are many redirections that have to be done. Well, a lot less, if I set 308 Permanent Redirect for the Redirect Host. But still, is there no easy way to do a domain forwarding (on Hetzner or in general)?

Learnings from the Duplicate Close

This is not a DNS problem

DNS is for resolving names. Solutions for the redirection required is typically application-specific.

Hetzner can't just offer me such an option easily (without selling me compute resources).

This question has been marked as "already has answers here" for Why can't a CNAME record be used at the apex (aka root) of a domain?. Read the accepted answer and its comments there!

TL;DR: I would have to delete all A, AAAA, NS, SOA (probably MX too) apex records (@ name). And that would make the DNS server not standards compliant anymore.

One is probably best off using a server that handles the redirect (like Apache2, Nginx or as I can recommend for its ease of use very much Nginx Proxy Manager).

0 Answers0