user1878: I have several namecoins and would like to register a name.  That name could either be for TOR, DNS, or any other purpose.
What are the steps needed to spend these coins?

user2343: The algorithm of registering .bit domain is described, for example, on dot-bit wiki.
In short:

Create new domain name with name_new command: ./namecoind name_new d/<name>
Wait 12 or more blocks
Actually register the domain with name_firstupdate, where <rand> is the second (shorter) hexadecimal string returned by name_new, and <json-value> is the domain configuration (similar to DNS record): 

./namecoind name_firstupdate d/<name> <rand> '<json-value>'
The basic json-string, mapping the domain to the some IP looks like that:
'{"ip":"1.2.3.4", "tor":"123456.onion"}'

More on domain configuration

1878: <p>I have several namecoins and would like to register a name.  That name could either be for TOR, DNS, or any other purpose.</p>

<p>What are the steps needed to spend these coins?</p>
 2343: <p>The algorithm of registering <code>.bit</code> domain is described, for example, on <a href="http://dot-bit.org/HowToRegisterAndConfigureBitDomains" rel="nofollow">dot-bit wiki</a>.</p>

<p>In short:</p>

<ol>
<li><p>Create new domain name with <code>name_new</code> command: <code>./namecoind name_new d/&lt;name&gt;</code></p></li>
<li><p>Wait 12 or more blocks</p></li>
<li><p>Actually register the domain with <code>name_firstupdate</code>, where <code>&lt;rand&gt;</code> is the second (shorter) hexadecimal string returned by <code>name_new</code>, and <code>&lt;json-value&gt;</code> is the domain configuration (similar to DNS record): </p></li>
</ol>

<p><code>./namecoind name_firstupdate d/&lt;name&gt; &lt;rand&gt; '&lt;json-value&gt;'</code></p>

<p>The basic <code>json-string</code>, mapping the domain to the some IP looks like that:</p>

<pre><code>'{"ip":"1.2.3.4", "tor":"123456.onion"}'
</code></pre>

<p><a href="http://dot-bit.org/Namespace%3aDomain_names_v2.0#Value_field" rel="nofollow">More on domain configuration</a></p>
