DNS Records to a specific scenario

I would like to know if there is possible to create a specific following scenario.

Root domain point to a server01, and all subdomains point to a server02, but without change the subdomain CNAME. Something like this:

A record
example.com → IP_server01

A record
example.com → IP_server02

CNAME
test → example.com (but with a rule to be always the IP_server02)

Why this? because I will have a website to root domain host in one server, and all others subdomains running in another server.

Sorry by confusion, but if anyone could help I will appreciate.

That CNAME should be something like sub.example.com which would be an “A” record with server02’s IP address.

1 Like

Thank you!!
I think it gonna work. I will test and report.

1 Like

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