Creating Alias Domain

dash-dns
#1

Hello guys, how are you?

I want to create an alias domain… I have my main domain with DNS points to cloudflare, an cloudflare account running perfect.

I have now another secondary domain and I want to administrate it with the same account… And I want when users write secondary domain in browser URL, they see main domain

I tried creating an CNAME record for secondary domain is an alias of main domain but is not working. I tried creating a A record for secondary domain pointing the same IP as main domain but doesnt work :frowning:

Can you help me, please?

#2

You would need to add that second domain to Cloudflare. Then you create whatever DNS records you want and point them to dummy addresses and serve an appropriate redirect to your primary domain via a page rule.

#3

Thanks Sandro! So, is not there any chance to administrate all domains in the same account?

Second question… if I add new account for second domain, which A records I must create?

Thanks again :slight_smile:

#4

So part of this would be configuration on your origin server to serve the same content for both hostnames when requested. On the Cloudflare side you would just point to the same origin IP.

#5

Thanks! But… I need only the redirection… I mind, writing secondary domain we should see primary domain in URL

#6

Ah ok… so in that instance as @sandro mentioned add the new domain to your account and you can use a page rule.

#7

Thanks a lot :slight_smile:

1 Like
#8

Same account? You would/could/should add that domain to the same Cloudflare account where you maintain the first one.

Actually, unless you specifically want to use Cloudflare you could simply configure a redirect on your registrar’s side, given they provide such a service (which many actually do).

closed #9

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.