From owner-freebsd-questions Wed Sep 11 08:13:25 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id IAA08684 for questions-outgoing; Wed, 11 Sep 1996 08:13:25 -0700 (PDT) Received: from seagull.rtd.com (root@seagull.rtd.com [198.102.68.2]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id IAA08679 for ; Wed, 11 Sep 1996 08:13:22 -0700 (PDT) Received: (from tony@localhost) by seagull.rtd.com (8.7.5/8.7.3) id IAA12997 for questions@freebsd.org; Wed, 11 Sep 1996 08:13:20 -0700 (MST) Date: Wed, 11 Sep 1996 08:13:20 -0700 (MST) From: Tony Jones Message-Id: <199609111513.IAA12997@seagull.rtd.com> To: questions@freebsd.org Subject: /etc/hosts config for PPP/ether configuration Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Hi, I have the following setup. PPP/v34 connection to an ISP, point to point ethernet (Xwired) to a Mac. What is the best way to set up the /etc/hosts file (and DNS) in this situation ? (i.e should I be making my /etc/hosts entries and hostname be part of the ISP's domain, keep it in a kind of pseudo root domain, or do something altogether more intelligent) hostname=myhostname Initially (before I added the Ethernet I had): 127.0.0.1 localhost myhostname Sendmail would complain about not finding a FQDN (no .). Changing to 127.0.0.1 localhost myhostname. fixed this. Then I added the Ethernet, so now I had 127.0.0.1 localhost 192.168.0.1 myhostname. 192.168.0.2 macintosh. When the mac tried to telnet in, I'd get a message from telnetd about gethostby* failing for 'macintosh.'. So, I changed this to: 127.0.0.1 localhost 192.168.0.1 myhostname. 192.168.0.2 macintosh and now telnet from the mac works OK. To further complicate matters, I have my /etc/resolv.conf set up as: domain nameserver nameserver I don't have a fixed IP address at my ISP, which is why I went for a hostname of 'myhostname' (not myhostname.) I'm also going to be running a SOCKS proxy to give the Mac IP access, so I'm going to configure a caching only nameserver (done this many times before but never in a dynamic PPP environment). Is running such a server with the PPP link potentially down going to require any config changes ? Thanks Tony