<?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>Misadventures of a Celtic Geek &#187; debian</title>
	<atom:link href="http://blog.guesny.net/tag/debian/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.guesny.net</link>
	<description>Just another WordPress site</description>
	<lastBuildDate>Sun, 03 Jun 2012 19:25:07 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>DynDNS and uptime</title>
		<link>http://blog.guesny.net/2010/03/27/dyndns-and-uptime/</link>
		<comments>http://blog.guesny.net/2010/03/27/dyndns-and-uptime/#comments</comments>
		<pubDate>Sat, 27 Mar 2010 15:52:07 +0000</pubDate>
		<dc:creator>welsh_dwarf</dc:creator>
				<category><![CDATA[english]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[personnel]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[administration]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[DNS]]></category>
		<category><![CDATA[dynamic dns]]></category>
		<category><![CDATA[dyndns]]></category>
		<category><![CDATA[ovh]]></category>

		<guid isPermaLink="false">http://blog.guesny.net/?p=109</guid>
		<description><![CDATA[Anyone who has tried to get into touch with me or read this blog these last few days can atest to the fact that I haven&#8217;t been reachable. My deepest apologies . To understand what happened, here&#8217;s a quick lowdown &#8230; <a href="http://blog.guesny.net/2010/03/27/dyndns-and-uptime/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Anyone who has tried to get into touch with me or read this blog these last few days can atest to the fact that I haven&#8217;t been reachable.</p>
<p>My deepest apologies <img src='http://blog.guesny.net/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> .</p>
<p>To understand what happened, here&#8217;s a quick lowdown on how my setup works:</p>
<p>I&#8217;m self hosting this blog as well as my mail on a converted EasyGate that I got as a beta tester. The machine is connected onto my internet router (a Trio 3D antique) and then onto the internet. My ISP provides a temporary IP address, and as such, I need to use a dynamic DNS record to be able to keep things updated.</p>
<p>Now, the Trio 3D (as with most of it&#8217;s features) has a half assed (excuse my French)  DynDNS system built in. I say half assed because it doesn&#8217;t accept any provider except the historic DynDNS and because it quite often forgets to update. Last week it completely stopped updating, and as an added bonus, I couldn&#8217;t get back into DynDNS to do things manually.</p>
<p>As a work around, I set up OVH (who are my registrar) to route my DNSes manually until I got a permanent fix. That worked until the IP changed Tuesday or Wednesday.</p>
<p>Now things are sorted out. I&#8217;m using OVH&#8217;s own DynDNS servers (much simpler) and am using a home built client to avoid all the dependancies other clients bought in.</p>
<p>The client is written in bash and depends on bash, sed and wget to work. It&#8217;s best used in a cron job, but can also be run on interface specific events if need be.</p>
<p>It uses a web based IP fetcher to work out your IP adresse, and if it&#8217;s changed since you last run the script, it updates your DynDNS records for you.</p>
<p>Without further ado, here&#8217;s the code:</p>
<pre lang="bash">#/bin/bash

USERNAME='myusername'
PASSWORD='mypassword'
HOSTS=('first_url.test.com' 'second_url.test.com')
SERVER="www.ovh.com"

#
#
#

CURRENT_IP=`wget -O - 'http://checkip.dyndns.org/' 2&gt;/dev/null | sed -e 's/.*Address: \([^&lt;]*\).*/\1/'` if [ -f /tmp/my_ip ]; then 	OLD_IP=`cat /tmp/my_ip`; fi # # Don't update unless ip has changed # if [ "x"$CURRENT_IP == "x"$OLD_IP ]; then 	exit; fi; echo "IP changed from " $OLD_IP " to " $CURRENT_IP echo "Saving new IP" echo $CURRENT_IP &gt; /tmp/my_ip

for HOST in ${HOSTS[@]};
do
	echo "Updating " $HOST " to " $CURRENT_IP
	wget -O - "http://${USERNAME}:${PASSWORD}@${SERVER}/nic/update?system=dyndns&amp;hostname=${HOST}&amp;myip=${CURRENT_IP}&amp;wildcard=NOCHG&amp;mx=NOCHG&amp;backmx=NOCHG" 2&gt;/dev/null
	echo ""
done</pre>
<p>Et voila, I hope this helps someone out there</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.guesny.net/2010/03/27/dyndns-and-uptime/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New server &#8211; same blog</title>
		<link>http://blog.guesny.net/2009/02/18/new-server-same-blog/</link>
		<comments>http://blog.guesny.net/2009/02/18/new-server-same-blog/#comments</comments>
		<pubDate>Wed, 18 Feb 2009 13:16:17 +0000</pubDate>
		<dc:creator>welsh_dwarf</dc:creator>
				<category><![CDATA[english]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[opengate]]></category>

		<guid isPermaLink="false">http://blog.guesny.net/?p=69</guid>
		<description><![CDATA[I&#8217;ve just finished moving my blog (and my mail) over to a new server. For once, the new machine is less powerful than the old. This blog is now running on an opengate with 512Mb ram and 512Mb of disk &#8230; <a href="http://blog.guesny.net/2009/02/18/new-server-same-blog/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve just finished moving my blog (and my mail) over to a new server.</p>
<p>For once, the new machine is <strong>less</strong> powerful than the old.</p>
<p>This blog is now running on an <a href="http://www.easyneuf.org">opengate</a> with 512Mb ram and <strong>512Mb</strong> of disk (!)</p>
<p>The small install size (systme + data &lt;400Mb) is obtained by using a basic Debian install, and by taking a rm to most of the documentation and things like that.</p>
<p>I might even try to get it down to under 300Mb soon.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.guesny.net/2009/02/18/new-server-same-blog/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

