*BSD News Article 51711


Return to BSD News archive

Newsgroups: comp.unix.bsd.freebsd.misc
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!news.sprintlink.net!news.chattanooga.net!tarush!tom
From: tom@tarush.chattanooga.net (Tom Rush)
Subject: Re: EMACS and FreeBSD 2.1-SNAP ... (funny)
X-Newsreader: TIN [version 1.2 PL2]
Organization: Rush Co.
Message-ID: <DFFMt2.r7@tarush.chattanooga.net>
References: <4410av$kmf@nntp.interaccess.com> <1995Sep24.014611.13292@vindaloo.com>
Date: Sun, 24 Sep 1995 23:05:26 GMT
Lines: 39

Christopher Sean Hilton (chris@vindaloo.com) wrote:
: In article <4410av$kmf@nntp.interaccess.com>,
: James Pitts <pitts@flowbee.interaccess.com> wrote:
: > [...]
: >After this, I installed some packages on the machine, including EMACS.  
: >Everything seemed to be just fine until I went to edit a file with emacs.
: >EMACS started to come up, then the modem dialed my provider, established a
: >ppp connection, exchanged some packets when someone somewher, and then
: >let me edit the file.  Now I can't use emacs without establishing a ppp
: >connection.  :/

: 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.

Sorry, but I've looked at the man pages and the "Name Server Operations
Guide for BIND" and have seen nothing about a "hosts" keyword in
/etc/resolv.conf.  If you have something documenting this, please
refer me to it...

You may be thinking of /etc/host.conf.  It comes in the release with
bind first, then hosts; in this case it should be reversed, i.e. :

hosts
bind

Hope this helps.
--
Tom Rush
tom@tarush.chattanooga.net