Want to direct subdomain to external VPS

I bought a domain on in external service, transferred by nameservers over to use Netlify’s, so now Netlify manages the associated DNS records.

Things work fine for my Apex Domain and www domain.

I created an API that’s hosted on a VPS Provider (Digital Ocean), and I’d like to assign the IPv4 there to api.my_domain. I used Netlify’s DNS management UI to create an A record that points api.my_domain to the IPv4 of my digital ocean server.

When I go to the api.my_domain I get “This site can’t be reached”. Do I need a CNAME record, too or something? If yes, should the value for it be the IPv4? Or am I missing something else here?

An A record should be correct if you are using an IP. “this site can’t be reached” is not a message our service sends; could be from digital ocean, a firewall, or your browser…

If you’d like to let us know the hostname, we’d be happy to take a look at the config and see if we can advise?