<?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>experimentalworks &#187; dns</title>
	<atom:link href="http://blog.experimentalworks.net/tag/dns/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.experimentalworks.net</link>
	<description></description>
	<lastBuildDate>Wed, 14 Jul 2010 15:35:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>IPv6: AAAA records with Plesk the hackish way</title>
		<link>http://blog.experimentalworks.net/2009/01/ipv6-aaaa-records-with-plesk-the-hackish-way/</link>
		<comments>http://blog.experimentalworks.net/2009/01/ipv6-aaaa-records-with-plesk-the-hackish-way/#comments</comments>
		<pubDate>Fri, 16 Jan 2009 10:19:10 +0000</pubDate>
		<dc:creator>dsp</dc:creator>
				<category><![CDATA[Open Source]]></category>
		<category><![CDATA[dns]]></category>
		<category><![CDATA[ipv6]]></category>

		<guid isPermaLink="false">http://blog.experimentalworks.net/?p=150</guid>
		<description><![CDATA[Adding IPv6 addresses to a domain is usually quite simp [...]]]></description>
			<content:encoded><![CDATA[<p>Adding IPv6 addresses to a domain is usually quite simple. Instead of an A record, you hast have to add an AAAA record to your database that points to an IPv6 address. If you use a configuration tool like Plesk, adding those records might be a little bit more difficult, as Plesk &#8211; at least in the version my hoster uses &#8211; doesn&#8217;t allow me to add AAAA records. So here is a short tutorial how to add an AAAA record.</p>
<p>Plesk manages the DNS records in a database. We first need a way to insert AAAA records in the database. Luckily if this is done, we are almost finished as the script that generates the zone files, doesn&#8217;t do a doublecheck at all.</p>
<p>First of all login as root on your box. Then login to your mysql server using the &#8216;admin&#8217; user:</p>
<blockquote><p>
# mysql -u admin -p psa
</p></blockquote>
<p>Now alter the table to allow AAAA records:</p>
<blockquote><p>
mysql> alter table dns_recs modify column type enum(&#8216;NS&#8217;,'A&#8217;,'AAAA&#8217;,'CNAME&#8217;,'MX&#8217;,'PTR&#8217;,'TXT&#8217;,'SRV&#8217;,'master&#8217;,'none&#8217;) NOT NULL default &#8216;A&#8217;;
</p></blockquote>
<p>Downoad the dnsupdate.sh script from <a href="http://kb.parallels.com/en/879">parallels website</a>. You now just need to add an entry to your database using a INSERT statement and then run the dnsupdate. I wrote a extremly hackish and dangerous to use script for that:</p>
<blockquote><p>
#!/bin/sh<br />
echo &#8220;INSERT INTO dns_recs (displayHost, host, displayVal, val, type, dns_zone_id) VALUES (&#8216;$1&#8242;, &#8216;$1&#8242;, &#8216;$2&#8242;, &#8216;$2&#8242;, &#8216;AAAA&#8217;, 2)&#8221; | mysql -u admin -p psa</p>
<p>sh /root/dnsupdate.sh
</p></blockquote>
<p> Notice that I set the dns_zone_id explicitly. You have to check what id your zone has. If you write a more sophisticated script and like to share it, I would be interested.</p>
<p>Don&#8217;t forget the trailing dot!</p>
<blockquote><p>
# sh /root/insert-dns.sh &#8216;ipv6.experimentalworks.net.&#8217; &#8217;2a01:3332:2324:52aa::2&#8242;
</p></blockquote>
<p>Done. Your domain now points to the right IPv6 address.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.experimentalworks.net/2009/01/ipv6-aaaa-records-with-plesk-the-hackish-way/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
