Can't add second server as subdomain

Hi!

I have a domain >> CloudFlare >> server (1.1.1.1).
Now I have rented a second server (with a different IP address 2.2.2.2) and want to connect it as a subdomain.

So that the main one was:
example.com - (IP 1.1.1.1)
And the second one was subdomain.example.com - (IP 2.2.2.2)

[IP addresses are taken as examples]
In the DNS section I am trying to add a new “CNAME” record with the name “subdomain” and in the target field I indicate the IP address of the new server “2.2.2.2”.

When I try to add a record, I get the error “DNS Validation Error (Code: 1004) Content for CNAME record is invalid”.

What am I doing wrong?
Maybe I need to do some other manipulation?

CNAMEs use hostnames for a value. You need to create an “A” record in order to use an IP address.

Thank you, it works!

1 Like

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