DNS Validation Error (Code: 1004): Content for A record is invalid. Must be a valid IPv4 address (Code: 9005)

dash-dns
#1

Good day all, i recently just joined this community and I am super excited to be a part.

I have been trying to redirect my domain to point to my medium account, after inputing the IP address for the A value, it gave me the error, DNS Validation Error (Code: 1004): Content for A record is invalid. Must be a valid IPv4 address (Code: 9005), I tried inputing the IP for medium.com which is 104.16.120.127 but I got the same error message. I’ll be glad if someone can assist me in diagnosing the problem and profering a possible solution. Thanks in anticipation of a favourable response.

#2

See the following for setting up a redirect - an A record isn’t appropriate for redirects.

1 Like
#3

Blockquote[quote=“Judge, post:2, topic:63435”]
You will need a record in the DNS tab of your Cloudflare dashboard for the host you are trying to redirect from, set to :orange:

For example:
If I wanted to redirect all users from redirect.example.com with a page rule then I would need to add a DNS record for redirect.example.com and set it to :orange:. I would recommend creating an A record for the host, pointing to 192.0.2.1
[/quote]

But wouldn’t setting a record require me to create A and CNAME values?

#4

See that post I linked to. You do need some sort of DNS record, but it can be pointed most anywhere. It just can’t be pointed to prohibited IPs like IPs Cloudflare themselves own. Try setting it to 192.0.2.1.

1 Like
#5

Thank you very much for your time. Now, I am getting an error 522.

#6

What does the redirect page rule look like?

#7

#8

Looks like a type, change the last + to an asterisk *.

#9

Yayyy!!! It worked. Thank you very much for your time and patience.

1 Like
closed #10

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