[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
- <!--x-content-type: text/plain -->
- <!--x-date: Sun Oct 24 03:28:32 2004 -->
- <!--x-from-r13: uar ng ubcarg.arg (Yrvgu Vbcxvaf) -->
- <!--x-message-id: [email protected] -->
- <!--x-reference: [email protected] --> "http://www.w3.org/TR/html4/loose.dtd">
- <!--x-subject: [ale] desired resolve features -->
- <li><em>date</em>: Sun Oct 24 03:28:32 2004</li>
- <li><em>from</em>: hne at hopnet.net (Keith Hopkins)</li>
- <li><em>in-reply-to</em>: <<a href="msg00840.html">[email protected]</a>></li>
- <li><em>references</em>: <<a href="msg00840.html">[email protected]</a>></li>
- <li><em>subject</em>: [ale] desired resolve features</li>
man 5 hosts
IP_address canonical_hostname aliases
What is the difference between what you refer to as "CNAME" and the "aliases" already provided in /etc/hosts?
If you mean to use /etc/hosts instead of DNS, the be sure your /etc/nsswitch.conf is configured correctly, and whatever tool you are using actually supports it.
man 5 nsswitch.conf
nsswitch.conf - System Databases and Name Service Switch configuration file
hosts Host names and numbers, used by gethostbyname(3) and similar functions.
Lastly, write a script/alias to do something like "awk '/$1/ {print \$1}' /etc/hosts" (assuming first "$1" is a bash cmd line substitution)
> 2) be able to configure /etc/hosts-like settings on a per-user basis.
What are you trying to accomplish here?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3383 bytes
Desc: S/MIME Cryptographic Signature
</pre>
<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<hr>
<!--X-Follow-Ups-End-->
<!--X-References-->
<ul><li><strong>References</strong>:
<ul>
<li><strong><a name="00840" href="msg00840.html">[ale] desired resolve features</a></strong>
<ul><li><em>From:</em> dcorbin at machturtle.com (David Corbin)</li></ul></li>
</ul></li></ul>
<!--X-References-End-->
<!--X-BotPNI-->
<ul>
<li>Prev by Date:
<strong><a href="msg00854.html">[ale] Stumped by Slashdot and network problems</a></strong>
</li>
<li>Next by Date:
<strong><a href="msg00856.html">[ale] Stumped by Slashdot and network problems</a></strong>
</li>
<li>Previous by thread:
<strong><a href="msg00843.html">[ale] desired resolve features</a></strong>
</li>
<li>Next by thread:
<strong><a href="msg00841.html">[ale] ssh - no spoofing check</a></strong>
</li>
<li>Index(es):
<ul>
<li><a href="maillist.html#00855"><strong>Date</strong></a></li>
<li><a href="threads.html#00855"><strong>Thread</strong></a></li>
</ul>
</li>
</ul>
<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
</body>
</html>