# Using netlify and EC2 API server... configuration help

**URL:** <https://answers.netlify.com/t/using-netlify-and-ec2-api-server-configuration-help/14447>\
**Category:** Opentalk\
**Tags:** netlify-cdn-adn, netlify-dns-https-ssl\
**Created:** [May 11, 2020, 5:23pm UTC](https://answers.netlify.com/t/using-netlify-and-ec2-api-server-configuration-help/14447 "2020-05-11T17:23:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![twigs67](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/twigs67/32/10573_2.png) [@twigs67](https://answers.netlify.com/u/twigs67)\
**Post date:** [May 11, 2020, 5:23pm UTC](https://answers.netlify.com/t/using-netlify-and-ec2-api-server-configuration-help/14447/1 "2020-05-11T17:23:50Z")

</div>

I’m using Netlify to host a static app and using EC2 as my API server. I’m trying to use the domain name that I purchased on Route53 on Netlify and use it to point towards my EC2, but I’m having a tough time figuring out how this would work?

I don’t think I can let Netlify host my DNS records, because I’m using an Application Load Balancer on AWS which is behind a VPC. Haven’t confirmed this.

I’m thinking about creating a CNAME for [api.mydomainname.com](http://api.mydomainname.com) to handle my API requests and then create an A name for the base domain on Netlify.

Any thoughts on how best to handle this?

---

<div class="post-metadata">

**Author:** ![Scott](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/scott/32/26136_2.png) [@Scott](https://answers.netlify.com/u/Scott)\
**Post date:** [May 13, 2020, 2:06pm UTC](https://answers.netlify.com/t/using-netlify-and-ec2-api-server-configuration-help/14447/2 "2020-05-13T14:06:42Z")

</div>

I’d suggest using Netlify DNS and [configuring Route53 with Netlify’s name servers](https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/domain-name-servers-glue-records.html), so long as we’re not inhibited by your setup at AWS. It’s worth a try!

Though, you can still use a domain at Netlify and have your DNS elsewhere.

Then, you can proxy to EC2 with a [simple redirect rule](https://docs.netlify.com/routing/redirects/rewrites-proxies/#proxy-to-another-service).

Interested to hear how things go!
