<p>You create a <code>CNAME</code> record referencing the assigned hostname of the balancer as the target.</p>

<p><code>CNAME</code> records are not valid at the apex of a zone (i.e. the "naked" domain, without <code>www</code> or any other prefix) but Cloudflare allows you to create one there -- sort of -- they actually allow you to <em>believe</em> that you're creating one there, and then their service automatically transforms it into one or more valid A-records, dynamically.</p>

<p>This feature is enabled by default at the apex.</p>

<p><a href="https://blog.cloudflare.com/introducing-cname-flattening-rfc-compliant-cnames-at-a-domains-root/" rel="nofollow noreferrer">https://blog.cloudflare.com/introducing-cname-flattening-rfc-compliant-cnames-at-a-domains-root/</a> </p>

CC BY-SA 4.0
2018-07-26T09:23:05.370Z
I will try it out but I def need the apex as well.
Jackie
CC BY-SA 4.0
2018-07-26T10:41:36.100Z
I'm not sure what you are saying in this comment.  As I indicated, above, this does work at the apex in Cloudflare.
Michael - sqlbot
CC BY-SA 4.0
2018-07-25T19:21:10.693Z
2018-07-25T19:21:10.693Z
Michael - sqlbot
<p>I am trying to use an AWS Network Load Balancer to point at a group of servers. I would then like to take my DNS and point it at the load balancer. However, after I set everything up I cannot find and ip address for the AWS load balancer. I only see a URL value but the A-record in Cloudflare requires an actual IP.</p>

<p>How do I configure the DNS to point at the Load Balancer?</p>

<amazon-web-services><load-balance>
How do I configure an AWS network load balancer with an A record in Cloudflare
Jackie
# How do I configure an AWS network load balancer with an A record in Cloudflare

(Asked by: username_0 on 2018-07-25)

I am trying to use an AWS Network Load Balancer to point at a group of servers. I would then like to take my DNS and point it at the load balancer. However, after I set everything up I cannot find and ip address for the AWS load balancer. I only see a URL value but the A-record in Cloudflare requires an actual IP.

How do I configure the DNS to point at the Load Balancer?

**Tags:** amazon-web-services, load-balance


---

## 1 answers

### Answer by username_1 on 2018-07-25. Score: 2

You create a `CNAME` record referencing the assigned hostname of the balancer as the target.

`CNAME` records are not valid at the apex of a zone (i.e. the "naked" domain, without `www` or any other prefix) but Cloudflare allows you to create one there -- sort of -- they actually allow you to *believe* that you're creating one there, and then their service automatically transforms it into one or more valid A-records, dynamically.

This feature is enabled by default at the apex.

<https://blog.cloudflare.com/introducing-cname-flattening-rfc-compliant-cnames-at-a-domains-root/>

> **Comments:**
> **username_0**: I will try it out but I def need the apex as well.  
> **username_1**: I'm not sure what you are saying in this comment.  As I indicated, above, this does work at the apex in Cloudflare.  

---

