*BSD News Article 51983


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!news.sprintlink.net!howland.reston.ans.net!agate!tfs.com!mailhub.tfs.com!julian
From: julian@mailhub.tfs.com (Julian Elischer)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: EMACS and FreeBSD 2.1-SNAP ... (funny)
Date: 24 Sep 1995 05:02:32 GMT
Organization: TRW Financial Systems, Oakland, CA
Lines: 24
Message-ID: <442op8$h7q@times.tfs.com>
References: <4410av$kmf@nntp.interaccess.com> <1995Sep24.014611.13292@vindaloo.com>
NNTP-Posting-Host: mailhub.tfs.com

In article <1995Sep24.014611.13292@vindaloo.com>,
Christopher Sean Hilton <chris@vindaloo.com> wrote:
>You've got your provider's name server listed before your hosts file
>in your /etc/resolv.conf file. When emacs comes up it does a
>gethostbyname() call and this tickles DNS which calls your provider.
>If you switch the order in /etc/resolv.conf to:

>     domain foobarbaz.net
>     hosts
>     nameserver x.x.x.1
>     nameserver x.x.x.2

>gethostbyname() will be able to figure out your host name without
>resorting to dns first.

Last I looked this was controlled in /etc/host.conf
(unless it's changed in 2.1..)
+----------------------------------+       ______ _  __
|   __--_|\  Julian Elischer       |       \     U \/ / On assignment
|  /       \ julian@tfs.com        +------>x   USA    \ in a very strange
| (   OZ    ) 300 lakeside Dr. oakland CA. \___   ___ | country !
+- X_.---._/  USA+(510) 645-3137(wk)           \_/   \\            
          v