<?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>Mac OS X Things | mac</title>
	<atom:link href="http://face.centosprime.com/macosxw/tag/mac/feed/" rel="self" type="application/rss+xml" />
	<link>http://face.centosprime.com/macosxw</link>
	<description>hints and notes for the mac os x folks</description>
	<lastBuildDate>Thu, 01 Jul 2010 13:02:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1-alpha</generator>
		<item>
		<title>Forcing an IP Address</title>
		<link>http://face.centosprime.com/macosxw/forcing-an-ip-address/</link>
		<comments>http://face.centosprime.com/macosxw/forcing-an-ip-address/#comments</comments>
		<pubDate>Sat, 08 Aug 2009 15:00:20 +0000</pubDate>
		<dc:creator>face</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[leopard]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[server]]></category>

		<guid isPermaLink="false">http://face.centosprime.com/macosxw/?p=367</guid>
		<description><![CDATA[In the &#8220;real&#8221; world you simply add an entry to /etc/hosts like 1.2.3.4 myhost The Mac OS X world is different. For version 10.5 and later you do the following # Create the mapping sudo dscl localhost -create /Local/Default/Hosts/x.y.z IPAddress 127.0.0.1 # flush the cache sudo dscacheutil -flushcache # Show the mappings sudo dscl localhost [...]]]></description>
			<content:encoded><![CDATA[<p>In the &#8220;real&#8221; world you simply add an entry to /etc/hosts like<br />
<code><br />
1.2.3.4 myhost<br />
</code></p>
<p>The Mac OS X world is different. For version 10.5 and later you do the following<br />
<code><br />
# Create the mapping<br />
sudo dscl localhost -create /Local/Default/Hosts/x.y.z IPAddress 127.0.0.1<br />
# flush the cache<br />
sudo dscacheutil -flushcache</p>
<p># Show the mappings<br />
sudo dscl localhost -readall /Local/Default/Hosts </p>
<p># Delete a mapping<br />
sudo dscl localhost -delete /Local/Default/Hosts/x.y.z<br />
sudo dscacheutil -flushcache<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://face.centosprime.com/macosxw/forcing-an-ip-address/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
