Subject: Re: Mac Name
From: Brian Bergstrand (brian@viper.cso.niu.edu)
Date: Wed Feb 02 2000 - 10:55:39 EST
On Wed, 2 Feb 2000, Bill Carlson wrote:
> On Tue, 1 Feb 2000, Michael Bartosh wrote:
>
> > >Hello,
> > >
> > >I am not experience mac person. So please bear with me. We are trying
> > >break our office into few sub nets and provide file transfer service
> > >between mac and linux using netatalk. (Just AFPD) I just want to set up
> > >our internal DNS with alkl the tcp/ip addresses of MACs. But our mac guy
> > >says taht their are no place in the mac that can set up its name.
> > >
> > >if on DNS
> > >
> > >myDumbMac 192.168.21.14
> > >
> > >How come you cannot do that on Mac?????
> >
> > because the smart mac doesn't have to. It does a reverse lookup,
> > unlike yourdumbpc.
> >
>
> Of course, the smart mac is the only system I know of with TCP/IP that
> DOESN'T provide a way to static map hostnames to IPs.
>
> Some that do provide this would be UNIX (pick your flavor), OS/2 and even
> that stupid Windoze thing...but not MacOS.
>
> Why would you want to map a hostname to an IP? To cover those situations
> when DNS is down but people would still like to get their email.
>
>
> MacOS X will fix it. Yeah, that's it.
Wrong. I assume you are talking about a HOSTS file, and the Mac OS does
have that, and has had it since Mac TCP first appeared. Apple no longer
ships a HOSTS file with the OS, and the format is a little different from
a UNIX hosts file, but the functionality is there.
Instructions for Open Transport HOSTS file setup:
Open the TCP/IP Control Panel.
Select the "User Mode..." item from the Edit menu.
Click the Advanced Radio Button.
Click the Hosts File button and choose your hosts file.
Save the config..
TCP/IP will automatically restart, you do not need to restart the machine.
Example HOSTS file: Ignore the line wraps
##################
; Hosts
; This file is parsed by the MacTCP domain name resolver and the resource
;records
; 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> = [<ttl>] [<class>] <type> <rdata> OR [<class>] [<ttl>] <type>
;<rdata>
; A comment starts with ";" or by a line begining with a " ".
;
; NOTES:
; $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. ; apple.com name server
;. NS knowAll.apple.com. ; root name server
;
;myHost.apple.com. IN 604800 A 128.8.1.2 ; ttl of 1 week
;JohnS.apple.com. A 128.8.1.3
;Sculley.apple.com. CNAME JohnS.apple.com.;canonical name for alias
#################
-- Brian Bergstrand Systems Programmer Northern Illinois University To err is human. To blame someone else for your mistakes is even more human.
This archive was generated by hypermail 2b28 : Wed Jan 17 2001 - 14:29:58 EST