Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!spool.mu.edu!uwm.edu!vixen.cso.uiuc.edu!sdd.hp.com!apollo.hp.com!news.waterloo.hp.com!ocean.cup.hp.com!geofw@cup.hp.com From: Jim Mattson <jmattson@k2.cup.hp.com> Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: PPP and EMACS Date: 15 Jul 1997 09:42:47 -0700 Organization: HP California Language Laboratory Lines: 32 Message-ID: <xyqpvsk1d2w.fsf@k2.cup.hp.com> References: <33CA46A0.4D42@ix.netcom.com> <5qdnfu$n74@light.lightlink.com> <5qebdq$9n5@quail.swcp.com> NNTP-Posting-Host: k2.cup.hp.com X-Newsreader: Gnus v5.3/Emacs 19.32 Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:44463 cs> In article <5qdnfu$n74@light.lightlink.com>, cs> Melinda Shore <shore@light.lightlink.com> wrote: cs> = cs> = In article <33CA46A0.4D42@ix.netcom.com>, cs> = Mike Hiromoto <badco@ix.netcom.com> wrote: cs> = >I have finally got ppp to connect to my isp. I am using freebsd 2.2.2. I cs> = >have ppp set to dial on demand. My problem is that now when I start cs> = >emacs, ppp dials out!!??? Has anyone encountered this before? Help!! cs> = cs> = Emacs does a dns lookup during startup. The simplest and cs> = most thoroughly suboptimal way to get it to stop is to move cs> = your /etc/resolv.conf out of the way. cs> Or use a civilized editor like vi! :) Or set up /etc/host.conf to look at hosts before bind, and make sure you have an entry for your initial bogus IP address in /etc/hosts: 10.0.0.1 myhostname myhostname.mydomain This is assuming that your ppp configuration is based on the pmdemand entry with dynamic address assignment. If you have a static IP address, just use that instead of 10.0.0.1. Basically, you want to set things up so that emacs can do a gethostbyname() on the local hostname without going to DNS. -- Jim Mattson <jmattson@cup.hp.com> HP California Language Laboratory +1 (408) 447-4257