[Solved] DNS Validation Error (Code: 1004): CNAME content cannot be an IP (Code: 9040)
You are getting this error because you added you i.p address in the place of name in cloudflare .Before i start explaining how we can fix the error “DNS Validation Error (Code: 1004): CNAME content cannot be an IP (Code: 9040) ” we should first know
What is CNAME ?
CNAME – You can call CNAME as Canonical Name which is a kind of dns which can be used to map domains. Its a part of main domain . its look like sub domain but its can’t be a sub domain because sub domain is another domain but CNAME is part of main domain which can used to store data of main domain or can be accessed as main domain.
Subdomain or any domain need a i.p address which helps to connect between hosting and domain/subdomain . But when you used a CNAME as like i have already explained you cname records are the part of main domain . So for CNAME we used alias of example.com for example i want to create a CNAME ( cdn ) for my domain gomahamaya.com (www not included) then i will point my CNAME cdn to alias of gomahamaya then final real will be cdn.gomahamaya.com .
Now i have used wrong way to add cname record of your website – I chose TYPE as CNAME , NAME and Now VALUE my ip address —– CNAME doesn’t point to an ip
And what is the correct way to add CNAME – In TYPE You should choose CNAME and In NAME you need to write your
subdomain extension like cdn . In Value You should write your main domain name like gomahamaya.com . Now click on add record .
And Now bingo no more DNS Validation Error (Code: 1004): CNAME content cannot be an IP (Code: 9040).