<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>IONCANNON &#187; ZoneEdit</title>
	<atom:link href="http://www.ioncannon.net/tag/zoneedit/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ioncannon.net</link>
	<description>Thoughts on Software Development and Engineering</description>
	<lastBuildDate>Tue, 03 Jan 2012 13:59:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<atom:link rel='hub' href='http://www.ioncannon.net/?pushpress=hub'/>
		<item>
		<title>Dynamic DNS with EC2 and ZoneEdit</title>
		<link>http://www.ioncannon.net/system-administration/120/dynamic-dns-with-ec2-and-zoneedit/</link>
		<comments>http://www.ioncannon.net/system-administration/120/dynamic-dns-with-ec2-and-zoneedit/#comments</comments>
		<pubDate>Sun, 11 Feb 2007 21:25:44 +0000</pubDate>
		<dc:creator>carson</dc:creator>
				<category><![CDATA[system administration]]></category>
		<category><![CDATA[ec2]]></category>
		<category><![CDATA[ZoneEdit]]></category>

		<guid isPermaLink="false">http://www.ioncannon.net/system-administration/120/dynamic-dns-with-ec2-and-zoneedit/</guid>
		<description><![CDATA[There seems to be a lot of questions on how to set up dyndns with EC2. It is fairly easy to do but I haven&#039;t seen anyone put everything together to do it yet so I figured I would write a little example using ZoneEdit. I picked ZoneEdit because it lets you sign up and [...]]]></description>
			<content:encoded><![CDATA[<p>There seems to be a lot of questions on how to set up dyndns with EC2. It is fairly easy to do but I haven&#039;t seen anyone put everything together to do it yet so I figured I would write a little example using <a href="http://www.zoneedit.com/">ZoneEdit</a>. I picked ZoneEdit because it lets you sign up and host 5 domains for free.</p>
<p>First you need to sign up for a free ZoneEdit account and add your domain. I&#039;ll assume you can do this. Don&#039;t forget to change your domain to point to the ZoneEdit DNS servers. </p>
<p><span id="more-120"></span></p>
<p>To find out more about how the following script works read: <a href="http://www.zoneedit.com/doc/dynamic.html">ZoneEdit&#039;s dynamic DNS information</a>.</p>
<p>I think it is nice to assign an instance its public hostname when it starts so I&#039;m going to use the <a href="http://docs.amazonwebservices.com/AmazonEC2/dg/2007-01-03/AESDG-chapter-instancedata.html">instance metadata facility</a> to pull the hostname information.</p>
<p>Stick the following script in your local startup script (make sure you replace the username and password with your own ZoneEdit username and password):</p>
<div class="codesnip-container" >
<div class="text codesnip" style="font-family:monospace;">wget -q -O /tmp/user-data.out http://169.254.169.254/1.0/user-data<br />
HN=`cat /tmp/user-data.out`<br />
rm -f /tmp/user-data.out<br />
wget -q -O &#8211; &#8211;http-user=&lt;username&gt; &#8211;http-passwd=&lt;password&gt; &quot;http://dynamic.zoneedit.com/auth/dynamic.html?host=$HN&quot; &gt; /dev/null 2&gt; /dev/null<br />
hostname $HN</div>
</div>
<p>Then start your instance like this:</p>
<p>ec2-run-instances ami-2bb65342 -k gsg-keypair -d &#034;test03.example.com&#034;</p>
<p>Sometimes you may have to give ZoneEdit a few minutes to get your domain updated but soon after boot the node will be accessible by the name you have given it.</p>
<p>Tags: <a href="http://technorati.com/tag/ec2" rel="tag">ec2</a>, <a href="http://technorati.com/tag/zoneedit" rel="tag"> zoneedit</a>, <a href="http://technorati.com/tag/dns" rel="tag"> dns</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ioncannon.net/system-administration/120/dynamic-dns-with-ec2-and-zoneedit/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

