How to point a domain name to an external IP?

etairl

Registered
Apr 26, 2013
1
0
1
cPanel Access Level
Root Administrator
Hello guys, since I have a large ddos protected server, so I want my server to serve as a gateway for protection.

This is what I did so far:
Add a dns zone > domain and external IP > Edit dns zone >
WWW IN CNAME domain.com
domain.com IN A external_IP

But when I try to access it I get this:
Executing in an invalid environment for the supplied user

So my question is:
How to point a domain name to an external IP address?