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 > Software - Troubleshooting and Discussion > Mac OS X > Editing /etc/hosts in Panther?

Editing /etc/hosts in Panther?
Thread Tools
Fresh-Faced Recruit
Join Date: May 2000
Location: Caracas
Status: Offline
Reply With Quote
Oct 29, 2003, 07:07 AM
 
Is is OK to edit /etc/hosts in Panther and add entries directly? I know that in previous versions you had to use Netinfo Manager to add hosts.

Thanks,

Miguel
     
Mac Enthusiast
Join Date: Mar 2002
Location: north america
Status: Offline
Reply With Quote
Oct 29, 2003, 07:34 AM
 
Originally posted by MigP:
Is is OK to edit /etc/hosts in Panther and add entries directly? I know that in previous versions you had to use Netinfo Manager to add hosts.

Thanks,

Miguel
Of course it is ok. vi /etc/hosts and add what you want. You didn't have to use Netinfo Manager before or now.
     
Mac Elite
Join Date: Sep 2000
Location: in front of the keyboard
Status: Offline
Reply With Quote
Oct 29, 2003, 09:58 PM
 
by the way....what's wrong with using NetInfo?
signatures are a waste of bandwidth
especially ones with political tripe in them.
     
Senior User
Join Date: Oct 2002
Location: Adelaide, South Australia
Status: Offline
Reply With Quote
Oct 30, 2003, 01:08 AM
 
Originally posted by MigP:
Is is OK to edit /etc/hosts in Panther and add entries directly? I know that in previous versions you had to use Netinfo Manager to add hosts.
I've never had problems editing the hosts file before?

Originally posted by Kristoff:
by the way....what's wrong with using NetInfo?
What's wrong with editing a text file?
     
Dedicated MacNNer
Join Date: Apr 2001
Location: Bethesda, MD
Status: Offline
Reply With Quote
Oct 30, 2003, 11:04 AM
 
How about that! It actually worked. I definitely remember previous versions of OS X where the /etc/hosts file was ignored except if you booted into single user mode. Everything was stored in the NetInfo database.
     
Mac Elite
Join Date: Mar 2001
Location: Robinson, IL
Status: Offline
Reply With Quote
Oct 30, 2003, 01:12 PM
 
Originally posted by davechen:
How about that! It actually worked. I definitely remember previous versions of OS X where the /etc/hosts file was ignored except if you booted into single user mode. Everything was stored in the NetInfo database.
Well, you had to enable BSD flat files in "Directory Access" in 10.2.

--Josh
     
Grizzled Veteran
Join Date: Nov 2001
Location: Oregon
Status: Offline
Reply With Quote
Nov 1, 2003, 01:18 PM
 
How about that! It actually worked. I definitely remember previous versions of OS X where the /etc/hosts file was ignored except if you booted into single user mode. Everything was stored in the NetInfo database.
True, prior to MacOS X 10.2.

As of Jaguar, however, MacOS X uses both /etc/hosts and NetInfo. (No assembly required.)
     
Junior Member
Join Date: May 2002
Location: Germany/Heidelberg or Germany/Dresden
Status: Offline
Reply With Quote
Nov 1, 2003, 02:00 PM
 
Originally posted by Rainy Day:
True, prior to MacOS X 10.2.

As of Jaguar, however, MacOS X uses both /etc/hosts and NetInfo. (No assembly required.)
Hmm, sounds interesting. From where do you know that? Because up to 10.2 /etc/hosts was used only in Single User mode (as far as i know). If you wanted to add a host so that you could call a computer by its name you had to use NetInfo Manager.

Kind regards
Lars
     
Grizzled Veteran
Join Date: Nov 2001
Location: Oregon
Status: Offline
Reply With Quote
Nov 1, 2003, 03:39 PM
 
Hmm, sounds interesting. From where do you know that?
I first became aware of that here on MacNN early this year (i.e. Jaguar support for /etc/hosts); i knew that 10.0-10.1 did not, by default, support /etc/hosts (except by booting into single user mode). When i read that Jaguar, by default, supported both /etc/hosts and NetInfo, i tried it and, sure enough, it worked.

Because up to 10.2 /etc/hosts was used only in Single User mode (as far as i know). If you wanted to add a host so that you could call a computer by its name you had to use NetInfo Manager.
Yes, prior to 10.2, this is how it worked (although it was possible to configure it to use /etc/hosts, this was not the default and most folks didn't know how to go about it).
     
   
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 -5. The time now is 04:11 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2