Changing DNS

I have a new wordpress installation I want to point my domain to this installation, I have the IP address of the new website, but when I change it I get the “Error 521”
the new website is ready and the ip works well

Try with DNS only mode first