[Hostname]

Lloyd Budd lloyd-fEEwcc3XMu8jODpR/OX0VQ at public.gmane.org
Wed Feb 11 14:11:11 UTC 2004


Append HOSTNAME to the 127.0.01 localhost line in /etc/hosts


On 11-Feb-04, at 8:55, Gregory D Hough wrote:

> There may actually be a simple fix for this but it has elluded me for 
> years. How to prevent HOSTNAME lookups to external DNS.
>
> It's customary to give a machine a name, is it not? Localhost is bland 
> and unoriginal. So how to deal with a standalone box using rp-pppoe 
> and the ISP's primary DNS is my question. I'm weary at seeing "no such 
> name" and "Hostname lookup failure." The lookup is useless, unecessary 
> and downright stupid in this situation.
>
> Are there any magical entries to /etc/resolv.conf?
>
> Do I need to tweak /etc/nsswitch.conf? It already has files first for 
> virtually everything. Am I missing a key file? The only option I 
> haven't tried is db. Will that work and if so where can I look for 
> help?
>
> It boils down to this; some applications insist upon determining 
> hostname --fqdn even when domainname returns <none>

--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list