<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Adding EC2 instances to Route53</title>
	<atom:link href="http://blog.ianbeyer.com/2012/09/11/adding-ec2-to-route53/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.ianbeyer.com/2012/09/11/adding-ec2-to-route53/</link>
	<description>Thoughts on technology and media</description>
	<lastBuildDate>Sun, 28 Apr 2013 01:44:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
	<item>
		<title>By: Ian B</title>
		<link>http://blog.ianbeyer.com/2012/09/11/adding-ec2-to-route53/#comment-759</link>
		<dc:creator>Ian B</dc:creator>
		<pubDate>Thu, 24 Jan 2013 16:21:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ianbeyer.com/?p=1165#comment-759</guid>
		<description><![CDATA[That&#039;s a good point. If you want it to return all the records and have the client pick, you&#039;ll definitely need an A record. 

The latency-weighted stuff is pretty cool for geographical load balancing, too. ]]></description>
		<content:encoded><![CDATA[<p>That&#8217;s a good point. If you want it to return all the records and have the client pick, you&#8217;ll definitely need an A record. </p>
<p>The latency-weighted stuff is pretty cool for geographical load balancing, too. </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lgibelli</title>
		<link>http://blog.ianbeyer.com/2012/09/11/adding-ec2-to-route53/#comment-758</link>
		<dc:creator>lgibelli</dc:creator>
		<pubDate>Wed, 23 Jan 2013 21:23:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ianbeyer.com/?p=1165#comment-758</guid>
		<description><![CDATA[ Just a word of advice: I was fooled into thinking that the script doesn&#039;t work because when resolving a weighted round robin, Route53 only returns one CNAME (in rotation), not the whole set. 
So don&#039;t be surprised if you start N instances and when you try to resolve the round robin you get only 1 IP address at a time.
If you want to have all the IPs in a single record you have to use an A record.]]></description>
		<content:encoded><![CDATA[<p> Just a word of advice: I was fooled into thinking that the script doesn&#8217;t work because when resolving a weighted round robin, Route53 only returns one CNAME (in rotation), not the whole set.<br />
So don&#8217;t be surprised if you start N instances and when you try to resolve the round robin you get only 1 IP address at a time.<br />
If you want to have all the IPs in a single record you have to use an A record.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ian B</title>
		<link>http://blog.ianbeyer.com/2012/09/11/adding-ec2-to-route53/#comment-757</link>
		<dc:creator>Ian B</dc:creator>
		<pubDate>Wed, 23 Jan 2013 20:34:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ianbeyer.com/?p=1165#comment-757</guid>
		<description><![CDATA[That&#039;s partly why Route53 does Aliases. When doing a round-robin, you need to make it weighted. ]]></description>
		<content:encoded><![CDATA[<p>That&#8217;s partly why Route53 does Aliases. When doing a round-robin, you need to make it weighted. </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lgibelli</title>
		<link>http://blog.ianbeyer.com/2012/09/11/adding-ec2-to-route53/#comment-756</link>
		<dc:creator>lgibelli</dc:creator>
		<pubDate>Wed, 23 Jan 2013 16:59:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ianbeyer.com/?p=1165#comment-756</guid>
		<description><![CDATA[A Round robin of CNAMEs is illegal according to rfc2181: 
&quot;[...] That is, for any label in the DNS (any domain name)
   exactly one of the following is true: 
+ one CNAME record exists, optionally accompanied by SIG, NXT, and
       KEY RRs, [...]&quot;

I just tried to create a round robin of CNAMEs on Route53 and got the expected response:

&quot;RRSet of type CNAME with DNS name testcname.mydomain. does not contain exactly one resource record.&quot;

Either use a RR of IP addresses or do a weighted round robin of CNAMEs, all with the same weight (see http://docs.amazonwebservices.com/Route53/latest/DeveloperGuide/WeightedResourceRecordSets.html for more info on Weighted records).

Your script tried to create a &quot;simple&quot; (i.e. regular) round robin and therefore it fails.
I just replaced &quot;CNAME&quot; with &quot;A&quot; at line 77 and public-hostname with public-ipv4 at line 27 to make it work.
]]></description>
		<content:encoded><![CDATA[<p>A Round robin of CNAMEs is illegal according to rfc2181:<br />
&#8220;[...] That is, for any label in the DNS (any domain name)<br />
   exactly one of the following is true:<br />
+ one CNAME record exists, optionally accompanied by SIG, NXT, and<br />
       KEY RRs, [...]&#8221;</p>
<p>I just tried to create a round robin of CNAMEs on Route53 and got the expected response:</p>
<p>&#8220;RRSet of type CNAME with DNS name testcname.mydomain. does not contain exactly one resource record.&#8221;</p>
<p>Either use a RR of IP addresses or do a weighted round robin of CNAMEs, all with the same weight (see <a href="http://docs.amazonwebservices.com/Route53/latest/DeveloperGuide/WeightedResourceRecordSets.html" rel="nofollow">http://docs.amazonwebservices.com/Route53/latest/DeveloperGuide/WeightedResourceRecordSets.html</a> for more info on Weighted records).</p>
<p>Your script tried to create a &#8220;simple&#8221; (i.e. regular) round robin and therefore it fails.<br />
I just replaced &#8220;CNAME&#8221; with &#8220;A&#8221; at line 77 and public-hostname with public-ipv4 at line 27 to make it work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ian B</title>
		<link>http://blog.ianbeyer.com/2012/09/11/adding-ec2-to-route53/#comment-755</link>
		<dc:creator>Ian B</dc:creator>
		<pubDate>Wed, 23 Jan 2013 16:18:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ianbeyer.com/?p=1165#comment-755</guid>
		<description><![CDATA[Is that a recent change to the API? Because when I wrote this, it had no problem creating CNAMEs. That&#039;s the Best Practice for anything within Amazon&#039;s cloud, as communication between the boxes resolves to the internal IP address when using the CNAME.

Cloudfront also requires the use of CNAMEs or Aliases (internal to Route53). ]]></description>
		<content:encoded><![CDATA[<p>Is that a recent change to the API? Because when I wrote this, it had no problem creating CNAMEs. That&#8217;s the Best Practice for anything within Amazon&#8217;s cloud, as communication between the boxes resolves to the internal IP address when using the CNAME.</p>
<p>Cloudfront also requires the use of CNAMEs or Aliases (internal to Route53). </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lgibelli</title>
		<link>http://blog.ianbeyer.com/2012/09/11/adding-ec2-to-route53/#comment-754</link>
		<dc:creator>lgibelli</dc:creator>
		<pubDate>Wed, 23 Jan 2013 14:55:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ianbeyer.com/?p=1165#comment-754</guid>
		<description><![CDATA[At line 77 you try to create a RR of CNAMEs. Is that right? You can&#039;t do that. You can only create RR of MX, NS and A records, not CNAMEs. ]]></description>
		<content:encoded><![CDATA[<p>At line 77 you try to create a RR of CNAMEs. Is that right? You can&#8217;t do that. You can only create RR of MX, NS and A records, not CNAMEs. </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Add EC2 to Route53 &#171; 0ddn1x: tricks with *nix</title>
		<link>http://blog.ianbeyer.com/2012/09/11/adding-ec2-to-route53/#comment-668</link>
		<dc:creator>Add EC2 to Route53 &#171; 0ddn1x: tricks with *nix</dc:creator>
		<pubDate>Tue, 30 Oct 2012 18:28:10 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ianbeyer.com/?p=1165#comment-668</guid>
		<description><![CDATA[[...] http://blog.ianbeyer.com/2012/09/11/adding-ec2-to-route53/    Leave a Comment    TrackBack URI [...]]]></description>
		<content:encoded><![CDATA[<p>[...] <a href="http://blog.ianbeyer.com/2012/09/11/adding-ec2-to-route53/" rel="nofollow">http://blog.ianbeyer.com/2012/09/11/adding-ec2-to-route53/</a>    Leave a Comment    TrackBack URI [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adding EC2 instances to Route53 &#124; Pinehead.tv</title>
		<link>http://blog.ianbeyer.com/2012/09/11/adding-ec2-to-route53/#comment-660</link>
		<dc:creator>Adding EC2 instances to Route53 &#124; Pinehead.tv</dc:creator>
		<pubDate>Sat, 27 Oct 2012 04:34:04 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ianbeyer.com/?p=1165#comment-660</guid>
		<description><![CDATA[[...] Read More var dd_offset_from_content = 40; var dd_top_offset_from_content = 0; [...]]]></description>
		<content:encoded><![CDATA[<p>[...] Read More var dd_offset_from_content = 40; var dd_top_offset_from_content = 0; [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ian B</title>
		<link>http://blog.ianbeyer.com/2012/09/11/adding-ec2-to-route53/#comment-634</link>
		<dc:creator>Ian B</dc:creator>
		<pubDate>Mon, 24 Sep 2012 12:18:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ianbeyer.com/?p=1165#comment-634</guid>
		<description><![CDATA[correct - you could do this with an external monitor that checks for ping and service availability once a server is up,  and removes the server if it goes down. ]]></description>
		<content:encoded><![CDATA[<p>correct &#8211; you could do this with an external monitor that checks for ping and service availability once a server is up,  and removes the server if it goes down. </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zac</title>
		<link>http://blog.ianbeyer.com/2012/09/11/adding-ec2-to-route53/#comment-633</link>
		<dc:creator>Zac</dc:creator>
		<pubDate>Mon, 24 Sep 2012 07:23:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ianbeyer.com/?p=1165#comment-633</guid>
		<description><![CDATA[If I understand this correctly, this script will add the server to Route 53 when it starts up, and remove on a shutdown, but how do you handle the case where a server crashes (or otherwise does not shutdown gracefully), you would really still want to remove it from the weighted round robin, otherwise requests will still resolve to the offline server.]]></description>
		<content:encoded><![CDATA[<p>If I understand this correctly, this script will add the server to Route 53 when it starts up, and remove on a shutdown, but how do you handle the case where a server crashes (or otherwise does not shutdown gracefully), you would really still want to remove it from the weighted round robin, otherwise requests will still resolve to the offline server.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
