Answers: <p>If you’re talking about using a Route 53 ALIAS record, you cannot set the TTL on it, for this reason. It defaults to a low value, and is managed by AWS for you (to the world it appears as an A record, and it will change often).</p>
  
  <p>If you’re using a CNAME, then you can set whatever TTL you like. The TTL of the DNS record for the load balancer’s domain will be low, but you don’t need to worry about that. Your only concern in this circumstance is whether you think you’ll be changing the load balancer name or repointing the name elsewhere. If you don’t plan to do that, you can set a high TTL to save a bit of money and milliseconds at load time.</p>
  
  <p>Either way, the IP addresses themselves will change.</p>
  
  <p>For help choosing between an ALIAS and CNAME record, see <a href="https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/resource-record-sets-choosing-alias-non-alias.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/resource-record-sets-choosing-alias-non-alias.html</a>. I’d usually recommend a CNAME unless you’re pointing your root domain, in which case you have to use an ALIAS.</p>
  
Answers: CC BY-SA 4.0
Answers: 2018-07-31T20:48:27.833Z
Answers: 2018-07-31T20:48:27.833Z
Answers: Tim Malone
Answers: <p>No.  The ELB IPs may always change without notice.  The only way to get a stable IP is an EIP and do the proxy yourself, or their new NLBs.  </p>
  
  <p>If you mean can you set a DNS entry going straight to the IPs yourself, no (well you can, but don't).  Amazon maintains the DNS entry they put atop it, but if you try to set your own with its own TTL you can absolutely have a broken IP for however long your TTL is.  CNAME to their provided DNS name as necessary.</p>
  
Answers: CC BY-SA 4.0
Answers: 2018-07-30T22:57:24.893Z
Answers: 2018-07-30T23:59:22.787Z
Answers: 2018-07-30T23:59:22.787Z
Answers: mxyzplk
Body: <p>Given a Route 53 DNS record aliasing a (classic) load balancer, and the potential for the load balancer ip to change:</p>
  
  <p>Is it possible for the DNS record to guarantee that the provided ips are valid for the record's lifetime? If so, is there a specific TTL value I need to set?</p>
  
Tags: <amazon-web-services><dns><aws-elb>
Title: Are Route 53 DNS records aliasing ELBs guaranteed for their lifetime?
UserDisplayName: user3233089
ThreadText: # Are Route 53 DNS records aliasing ELBs guaranteed for their lifetime?
  
  (Asked by: username_0 on 2018-07-30)
  
  Given a Route 53 DNS record aliasing a (classic) load balancer, and the potential for the load balancer ip to change:
  
  Is it possible for the DNS record to guarantee that the provided ips are valid for the record's lifetime? If so, is there a specific TTL value I need to set?
  
  **Tags:** amazon-web-services, dns, aws-elb
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2018-07-31. Score: 2
  
  If you’re talking about using a Route 53 ALIAS record, you cannot set the TTL on it, for this reason. It defaults to a low value, and is managed by AWS for you (to the world it appears as an A record, and it will change often).
  
  If you’re using a CNAME, then you can set whatever TTL you like. The TTL of the DNS record for the load balancer’s domain will be low, but you don’t need to worry about that. Your only concern in this circumstance is whether you think you’ll be changing the load balancer name or repointing the name elsewhere. If you don’t plan to do that, you can set a high TTL to save a bit of money and milliseconds at load time.
  
  Either way, the IP addresses themselves will change.
  
  For help choosing between an ALIAS and CNAME record, see <https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/resource-record-sets-choosing-alias-non-alias.html>. I’d usually recommend a CNAME unless you’re pointing your root domain, in which case you have to use an ALIAS.
  
  
  ---
  
  ### Answer by username_2 on 2018-07-30. Score: 0
  
  No. The ELB IPs may always change without notice. The only way to get a stable IP is an EIP and do the proxy yourself, or their new NLBs.
  
  If you mean can you set a DNS entry going straight to the IPs yourself, no (well you can, but don't). Amazon maintains the DNS entry they put atop it, but if you try to set your own with its own TTL you can absolutely have a broken IP for however long your TTL is. CNAME to their provided DNS name as necessary.
  
  
  ---
  
  