<?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>let x=x &#187; dns</title>
	<atom:link href="http://www.crazymcphee.net/x/tag/dns/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.crazymcphee.net/x</link>
	<description>programming idiom and methodology</description>
	<lastBuildDate>Fri, 27 Jan 2012 09:36:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Hosts and subdomains and infrastructure deployment</title>
		<link>http://www.crazymcphee.net/x/2009/04/07/hosts-and-subdomains/</link>
		<comments>http://www.crazymcphee.net/x/2009/04/07/hosts-and-subdomains/#comments</comments>
		<pubDate>Tue, 07 Apr 2009 02:35:54 +0000</pubDate>
		<dc:creator>Scot Mcphee</dc:creator>
				<category><![CDATA[architecture]]></category>
		<category><![CDATA[infrastructure and frameworks]]></category>
		<category><![CDATA[technical]]></category>
		<category><![CDATA[dns]]></category>
		<category><![CDATA[infrastructure]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://www.crazymcphee.net/x/?p=308</guid>
		<description><![CDATA[It always amazes me how many IT infrastructure managers apparently fail to understand just what a &#8216;subdomain&#8217; is. How many of the developers reading this blog entry have ever been confronted with the situation of deploying their applications onto infrastructure that&#8217;s named like the following? Local development: localhost, localhost, localhost, joes-dev-box Development / Integration: tomcatdev-svr1, [...]]]></description>
			<content:encoded><![CDATA[<p>It always amazes me how many IT infrastructure managers apparently fail to understand just what a &#8216;subdomain&#8217; is. How many of the developers reading this blog entry have ever been confronted with the situation of deploying their applications onto infrastructure that&#8217;s named like the following?</p>
<ol>
<li>Local development: localhost, localhost, localhost, joes-dev-box</li>
<li>Development / Integration: tomcatdev-svr1, orcldb0, mq-dev, joes-dev-box</li>
<li>Testing / UAT: uat-redhat3, uat-rhas7, messageQ-uat1, security-ldap12-DEV</li>
<li>Production: appserver-weblogic-PROD0, orclRAQ-1, mq0, fw0-sec-ldap-bldg6</li>
</ol>
<p>This of course, necessitates a number of custom configurations for every environment, and depending on your technology, your deployment strategy, and your configuration management , it can quickly and rapidly get either unmanageable, or worse, configuration can be lost, or at least not backed up or documented adequately to enable reconsititution in case of catastrophic failure. What we as developers, often yearn for is a simple scheme like the following:</p>
<ol>
<li>app-server, database, message-queue, ldap-server</li>
</ol>
<p>Of course, we sometimes try to map those sorts of schema into the chaotic environment listed above. Then we have custom host-file entries to manage the IP address resolution for us. of course, is this /etc/host file in any sort of configuration management scheme? Usually not. The trick is course, to use the schema as above but /etc/resolv.conf file to force resolution to a default sub-domain, which in the four cases above, are;</p>
<ol>
<li>developer</li>
<li>integration</li>
<li>uat</li>
<li>prod</li>
</ol>
<p>Then using either network-based split-segment DNS resolution, or simply a private dns server only visible to resources inside the firewall, to resolve to the relevant sub-domain and thence to the correct IP. But then, there&#8217;s the inertia from the infrastructure management, who want to identify machines according to the operating system and the major software brand that&#8217;s installed into them, rather than the functional description. Quite apart from the fact that those two schemes can live side by side anyway in a split-segment DNS.</p>
<p>I&#8217;m sorry that I don&#8217;t have a full solution, I just wish it was easier.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.crazymcphee.net/x/2009/04/07/hosts-and-subdomains/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

