Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Sep 1996 08:13:20 -0700 (MST)
From:      Tony Jones <>
Subject:   /etc/hosts config for PPP/ether configuration
Message-ID:  <>

Next in thread | Raw E-Mail | Index | Archive | Help
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)
Initially (before I added the Ethernet I had):       localhost myhostname
Sendmail would complain about not finding a FQDN (no .). Changing to       localhost myhostname.
fixed this.
Then I added the Ethernet, so now I had       localhost     myhostname.     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:       localhost     myhostname.     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 ?



Want to link to this message? Use this URL: <>