Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Enthusiast Zone > Classic Macs and Mac OS > Mac equivalent to host file C:\windows:

Mac equivalent to host file C:\windows:
Thread Tools
rbehk
Guest
Status:
Reply With Quote
Jan 20, 2000, 05:16 AM
 
Being a lone Macuser in an otherwise PCworld, I cannot find certain answers for Mac setups from our internal support staff.

In order to link from within the company intranet to another, same company intranet, PC users are requested to:

"add the following statement to your host file under Cwindows: # intranet .......

I have no idea where the equivalent on a Mac would go! Anybody any idea? Any suggestion would be most welcome.
     
Senior User
Join Date: Dec 1999
Location: Alexandria, VA USA
Status: Offline
Reply With Quote
Jan 20, 2000, 10:58 AM
 
Are you talking about file-sharing or 'web' type intranet? My co. uses an NT network or file sharing. We also have an intranet, this is accessable via a browser.

If you want to share files w/PC's, youll need a bit more information. Is the network using NetBIOS or NetBEUI (asuming its not TCP/IP)? If it is BIOS, you can use DAVE www.thursby.com . If it is BEUI (a proprietary M$ add-on to BIOS) you will have to take a less direct approach. Im am going to try to connect an iBook to a NT BEUI network through VPC.

I was discussing this with Walter J. Ferstl at the following link: http://forums.macnn.com/cgi-bin/Forum2/HTML/000386.html
     
Mac Enthusiast
Join Date: Oct 1999
Location: San Diego, CA, USA
Status: Offline
Reply With Quote
Jan 21, 2000, 12:50 AM
 
Make a text file called hosts and place it in the System Folder.

Put the text they request in that hosts file.

Reboot, and you should be able to access the other intranet.

Basically what they are doing is giving a name to an IP address without running a domain name server.

You can also access that other intranet by typing in the IP address that they request you enter in your file.

drewman
     
rbehk
Guest
Status:
Reply With Quote
Jan 21, 2000, 04:15 AM
 
Tks for the fast reply. The suggestion from drewman has worked and is much appreciated!!!
     
Dedicated MacNNer
Join Date: Oct 1999
Location: Raleigh, NC, USA
Status: Offline
Reply With Quote
Jan 21, 2000, 12:45 PM
 
This sounds interesting. I have a web server running on one of my computers to have my 'bookmarks' web pages and right now I have to specify http://192.168.0.86 to get to it. Can I make a hosts file that I can put in the other computers to point to it with a name like 'powertower' or something? Come to think of it, my firewall/router has ftp service and it also needs to be addressed by ip address. Can I add it to the list?

What's the format of hosts?

Thanks!


------------------
Tadd Torborg
     
Mac Enthusiast
Join Date: Oct 1999
Location: San Diego, CA, USA
Status: Offline
Reply With Quote
Jan 22, 2000, 12:46 AM
 
Each line of the hosts file will look like this:

xxx.xxx.xxx.xxx nameofcomputer

Each computer needs its own line.

example:

192.168.2.1 webserver

The computer will check the hosts file first and then go to the DNS server if it doesn't find it there.

drewman
     
Mac Enthusiast
Join Date: Nov 1999
Location: San Marcos, CA
Status: Offline
Reply With Quote
Jan 24, 2000, 10:09 AM
 
The format of the HOSTS file is as follows:

"name" "type" "IP"

Here's what mine looks like:

localhost CNAME igregdv.home.com
voyager.home.com A 172.16.1.10
voyager.home.com NS 172.16.1.10

home.com is my LAN and voyager is my NT server.

Good Luck

------------------
PC's are popular... MAC's Rule!





[This message has been edited by CyberGreg (edited 01-24-2000).]
Mac's Rule!
*************************************

13.3" 1.83 MacBook, 2GB, 120GB
13.3" 1.83 MacBook, 2GB, 80GB
Mac Mini PVR, 1.66Ghz w/2GB, eyeTV 2.0, 100GB HD and 50" DLP
Mac Mini, 1.83Ghz (before Apple released one) w/2GB, 80GB HD and 20" LCD
     
Mac Enthusiast
Join Date: Oct 1999
Location: San Diego, CA, USA
Status: Offline
Reply With Quote
Jan 25, 2000, 12:09 AM
 
Yes, I'm sorry. I put the two in the wrong order. If you just want to name an IP address for a home network you don't have to use the CNAME and all the other items, but of course, it is the proper way to write a hosts file.

drewman
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -4. The time now is 04:36 AM.
All contents of these forums © 1995-2014 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2014, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2