Date: Wed, 11 Sep 1996 08:13:20 -0700 (MST) From: Tony Jones <tony@rtd.com> To: questions@freebsd.org Subject: /etc/hosts config for PPP/ether configuration Message-ID: <199609111513.IAA12997@seagull.rtd.com>
next in thread | raw e-mail | index | archive | help
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 <ISPdomain> nameserver <primary IP address for ISP nameserver> nameserver <secondary IP address for ISP nameserver> I don't have a fixed IP address at my ISP, which is why I went for a hostname of 'myhostname' (not myhostname.<ISPdomain>) 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199609111513.IAA12997>