From owner-freebsd-questions Wed Jan 13 11:23:29 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA07481 for freebsd-questions-outgoing; Wed, 13 Jan 1999 11:23:29 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from awfulhak.org (awfulhak.force9.co.uk [195.166.136.63]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA07293 for ; Wed, 13 Jan 1999 11:22:48 -0800 (PST) (envelope-from brian@Awfulhak.org) Received: from keep.lan.Awfulhak.org (brian@keep.lan.Awfulhak.org [172.16.0.8]) by awfulhak.org (8.8.8/8.8.8) with ESMTP id TAA09716; Wed, 13 Jan 1999 19:21:36 GMT (envelope-from brian@Awfulhak.org) Received: from keep.lan.Awfulhak.org (brian@localhost [127.0.0.1]) by keep.lan.Awfulhak.org (8.9.1/8.9.1) with ESMTP id RAA82725; Wed, 13 Jan 1999 17:38:28 GMT (envelope-from brian@keep.lan.Awfulhak.org) Message-Id: <199901131738.RAA82725@keep.lan.Awfulhak.org> X-Mailer: exmh version 2.0.2 2/24/98 To: Graeme Tait cc: Brian Somers , freebsd-questions@FreeBSD.ORG Subject: Re: PPP -alias won't work anymore In-reply-to: Your message of "Wed, 13 Jan 1999 06:54:20 EST." <369C896C.76C3@echidna.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 13 Jan 1999 17:38:28 +0000 From: Brian Somers Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Brian Somers wrote: > > > > > About a month ago, I succeeded in getting aliasing to work with user ppp, and > > > everything was great until yesterday when I had to reboot the system running ppp. > > [.....] > > > > Perhaps you're suffering from a bad hostname ? Can you ``ping home'' ? > > > No! (But see below.) > > Here is my hosts.conf file: That's ``host.conf'' (no ``s'') :-) > # $Id: host.conf,v 1.2 1993/11/07 01:02:57 wollman Exp $ > # Default is to use the nameserver first > bind > # If that doesn't work, then try the /etc/hosts file > hosts > # If you have YP/NIS configured, uncomment the next line > # nis > > > and hosts file: > > 127.0.0.1 localhost.echidna.com localhost > 209.122.117.150 home.echidna.com home > 209.122.117.150 home.echidna.com. > > > After reading your recent response to Larry Nilsen, I tried reversing the order in > hosts.conf to > > hosts > bind > > but it did not fix the problem with aliasing, nor with "ping home". > > I've tried messing with /stand/sysinstall for configuring the host name, etc., and > editing files in accordance with faq's and mailing list posts, and it has all got > *very* confusing, and probably messed up. [.....] Try adding ifconfig_lo0_alias0="inet 209.122.117.150 netmask 0xffffffff alias" in /etc/rc.conf. I assume that ``hostname'' returns ``home.echidna.com'' (if not, fix it in /etc/rc.conf). > What I would really like to do is be able to dial either provider, and have everything > work automatically. In the one case, the ppp machine would have a well-defined IP > address, and a domain name that resolves to that address (unfortunately, the ISP > defines the reverse DNS to another name). Your best bet to achieve this is to have a local nameserver, and run a command from each profile in ppp.conf that symlinks the correct named.conf and HUPs named. [.....] > -- > Graeme Tait - Echidna -- Brian Don't _EVER_ lose your sense of humour ! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message