Subject: Re: g++ errors, and mac hosts files
To: Colin Wood <cwood@ichips.intel.com>
From: Henry B. Hotz <hotz@jpl.nasa.gov>
List: port-mac68k
Date: 05/19/1998 14:18:12
At 11:43 AM -0700 5/19/98, Colin Wood wrote:
>Andy Sinesio wrote:
>> so, I need to create a Hosts file.  What is the correct syntax for a Mac=
=20
>> hosts file for Open Transport?   I'm trying to map 10.0.0.1 to=20
>> www.sinesio.net, among others.
>
>Hmmm....good question.  I was under the impression that it's the same
>format as /etc/hosts is, but maybe not.  You might want to see if there is
>a default one created.  Look in your System Folder to see if there is
>already a hosts file there and edit it.

The OT hosts file is the same format as the MacTCP hosts file AFAIK.  That=
 is it's a subset of the file format used by named.  NetBSD has a utility to=
 translate the file format, but it's pretty simple.  AFAIK the only Apple=
 documentation is the comment block at the beginning of the sample file=
 provided with MacTCP.  Here is my OT hosts file for my PowerMac 7500 at wor=
k:
----------------------------------
; Hosts=20
; This file is parsed by the MacTCP domain name resolver and the resource=
 records=20
; are loaded into the resolver's cache.
;
; The Hosts file follows a SUBSET of the Master File Format (see rfc1035 pg =
33).
; Each line in this file has the form: <domain-name> <rr> [<comment>]
; <domain-name> is an absolute domain name (see rfc1034 pg 11).
; <rr> =3D [<ttl>] [<class>] <type> <rdata> OR [<class>] [<ttl>] <type> <rda=
ta>
; A comment starts with ";" or by a line begining with a " ". =20
;
; NOTES:=20
;	 $INCLUDE is not implemented
;	Class is always IN, ttl is in seconds, type can be A, CNAME or NS.

; Examples

;knowAll.apple.com.	A			128.8.1.1
; address of host knowAll.apple.com.
;
;apple.com.		NS			knowAll.apple.com.			=09
; apple.com name server
;.			NS			knowAll.apple.com.			=09
; root name server
;
;myHost.apple.com.	IN	604800	A	128.8.1.2				=09
; ttl of 1 week
;JohnS.apple.com.	A			128.8.1.3		=09
;Sculley.apple.com.	CNAME			JohnS.apple.com.			=09
; canonical name for alias Sculley.apple.com

hotzsun.jpl.nasa.gov.	A  137.78.218.98	; Sun SPARCstation 5
hotzmac.jpl.nasa.gov.	A  137.78.218.94	; PowerMac 7500
hotzlp.jpl.nasa.gov.	A  137.78.218.138	; HP LaserJet 5MP
macbsd.jpl.nasa.gov.	A  137.78.218.53	; Mac 840av running NetBSD
macbsd-840av.jpl.nasa.gov.	CNAME	macbsd.jpl.nasa.gov.
-------------------------------------

Note the trailing "." on all domain names.  You got funny stuff under MacTCP=
 if you didn't have them.  Don't know if it still matters under OT.

Signature failed Preliminary Design Review.
=46easibility of a new signature is currently being evaluated.  h.b.hotz@jpl=
=2Enasa.gov, or hbhotz@oxy.edu