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 > How To Recreate Hostconfig file?

How To Recreate Hostconfig file?
Thread Tools
Fresh-Faced Recruit
Join Date: Aug 2002
Status: Offline
Reply With Quote
Mar 20, 2005, 09:56 PM
 
Somehow, my Hostconfig file got deleted (it's nowhere to be found in /etc or /private/etc). Can someone give me directions on how to recreate it from scratch? Thank you.
     
Addicted to MacNN
Join Date: Feb 2001
Location: zurich, switzerland
Status: Offline
Reply With Quote
Mar 20, 2005, 10:22 PM
 
Here it is. Just remember that the Pref panes actually maintain this file.

Code:
## # /etc/hostconfig ## # This file is maintained by the system control panels ## # Network configuration HOSTNAME=-AUTOMATIC- ROUTER=-AUTOMATIC- # Services AFPSERVER=-NO- AUTHSERVER=-NO- AUTOMOUNT=-YES- CUPS=-YES- IPFORWARDING=-NO- IPV6=-YES- MAILSERVER=-AUTOMATIC- NETINFOSERVER=-AUTOMATIC- NFSLOCKS=-AUTOMATIC- NISDOMAIN=-NO- RPCSERVER=-AUTOMATIC- TIMESYNC=-YES- QTSSERVER=-NO- WEBSERVER=-NO- SMBSERVER=-NO- DNSSERVER=-NO- COREDUMPS=-NO- VPNSERVER=-NO- CRASHREPORTER=-YES-
weird wabbit
     
Professional Poster
Join Date: Apr 2001
Location: Long Beach, CA
Status: Offline
Reply With Quote
Mar 20, 2005, 11:13 PM
 
Boot into single user mode by holding down the command-s keys.

Code:
fsck -yf mount -uw / pico /etc/hostconfig
enter the text in the previous post.

ctrl-o to save
ctrl-x to exit

Code:
chown root:wheel /etc/hostconfig chmod 644 /etc/hostconfig reboot
Repair permissions just to be safe.

ACSA 10.4/10.3, ACTC 10.3, ACHDS 10.3
     
Posting Junkie
Join Date: Dec 2000
Status: Offline
Reply With Quote
Mar 21, 2005, 12:55 AM
 
Alternately, you could use my utility, Pacifist (link in my sig), to extract the original hostconfig file from the packages on the install CDs.

Ticking sound coming from a .pkg package? Don't let the .bom go off! Inspect it first with Pacifist. Macworld - five mice!
     
Racfore  (op)
Fresh-Faced Recruit
Join Date: Aug 2002
Status: Offline
Reply With Quote
Mar 21, 2005, 10:45 PM
 
Problem solved. Thanks, everyone, for your assistance.
     
   
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:55 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