ts:</code> entry to <code>files
dns</code>.</p>

<h3 id="label-Custom">Custom</h3>

<pre class="code ruby"><code class="ruby">class { &quot;name_service_switch&quot;:
    entries =&gt; {
      &quot;hosts&quot; =&gt; &quot;files dns myhostname&quot;,
      &quot;bar&quot;   =&gt; &quot;foo baz&quot;
    }
}</code></pre>

<p>Ensures that <code>hosts</code> line is set to <code>files dns
myhostname</code> and the <code>bar</code> line is set to <code>foo
baz</code>. If <code>bar</code> doesn&#39;t exist, it w