From owner-freebsd-questions Wed Jan 3 15:49:02 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id PAA07684 for questions-outgoing; Wed, 3 Jan 1996 15:49:02 -0800 (PST) Received: from parody.tecc.co.uk (parody.tecc.co.uk [193.128.6.83]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id PAA07666 for ; Wed, 3 Jan 1996 15:48:56 -0800 (PST) Received: (from fqueries@localhost) by parody.tecc.co.uk (8.6.12/8.6.12) id VAA01416; Wed, 3 Jan 1996 21:30:40 GMT Date: Wed, 3 Jan 1996 21:30:40 +0000 () From: James Raynard To: Gary Kline cc: "Garrett A. Wollman" , jbarrm@panix.com, questions@freebsd.org Subject: Re: ppp from shell, & starting X In-Reply-To: <9601012225.AA02267@tera.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@freebsd.org Precedence: bulk On Mon, 1 Jan 1996, Gary Kline wrote: > Could you (or another network-savvy wizard) publish > sample /etc/hosts, /etc/sysconfig, and /etc/network > files? Else point me to a tutorial doc? I don't think I qualify as a network-savvy wizard, but here are the critical files from /etc that I use to connect with PPP. My machine is parody (193.128.6.83) and the machine I connect to is luggage (193.128.6.129). I don't run a name server on my machine, but rely on luggage to do this for me. However, this means the resolver needs some way of looking up luggage's IP address when I'm not connected to it. This is achieved by telling it to look in /etc/hosts first and to use BIND only if the machine it needs isn't in there. To do this, I have a /etc/host.conf file with the following:- hosts bind and luggage's details are in /etc/hosts, along with various other machines I might need when DNS isn't available:- 127.0.0.1 localhost 193.128.6.83 parody.tecc.co.uk 193.128.6.129 luggage.tecc.co.uk 193.128.6.145 handbag.tecc.co.uk [handbag is the news server I use, BTW] Finally, the resolver needs to know which domain we're in and where to find the nameserver - /etc/resolv.conf:- domain tecc.co.uk nameserver 193.128.6.129 And here's the Netconfig part of /etc/sysconfig, with the comments omitted for brevity:- hostname="parody.tecc.co.uk" tcp_extensions=YES network_interfaces="lo0" ifconfig_lo0="inet localhost" #static_routes="multicast loopback" #route_multicast="224.0.0.0 -netmask 0xf0000000 -interface ${hostname}" #route_loopback="${hostname} localhost" defaultrouter=NO routedflags=NO timedflags=NO xntpdflags="NO" tickadjflags="-Aq" ntpdate="NO" rwhod=NO sendmail_flags="-bd" amdflags="NO" nfs_client="NO" nfs_server="NO" nis_clientflags="NO" nis_ypsetflags="NO" nis_serverflags="NO" yppasswddflags="NO" namedflags="NO" pcnfsd=NO apache_httpd=NO xtend=NO dumpdev=/dev/sd0s1b savecore=YES kerberos_server=NO gateway=NO gated=NO check_quotas=NO accounting=NO Note that this is for a stand-alone machine - I had to return the other half of my network to its owner 8-( In particular, I run sendmail without the "-q" flag and run the queue as part of my PPP connection script instead. James Segmentation fault (core dumped): cannot find file '.signature'