Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Not | 8 comments | Create New Account
Click here to return to the 'Not' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Not
Authored by: UtSupra on May 29, '01 06:27:00AM

This tip seems to reapear every so often...
It doesn't work. The Hostname is manage by NetInfo...
Take this false story down!



[ Reply to This | # ]
Re: Not
Authored by: Anonymous on May 29, '01 11:57:50AM

Well it worked for me while months of tweaking this and that, including NetInfo, di not.

Thanks for the tip!

m.



[ Reply to This | # ]
Not
Authored by: Anonymous on May 29, '01 02:40:52PM

so why not tell us how to do it through NetInfo?



[ Reply to This | # ]
Not
Authored by: aaronfaby on May 31, '01 04:26:52PM

Actually, this does work. If you examine the Network startup script you will see that
if the HOSTNAME directive in /etc/hostconfig is set to -AUTOMATIC-, then the ipconfig
command is used to get the hostname. However, this option for ipconfig appears to
be broken, and trying it returns a kernel/os error message. The startup script then
sets the hostname to whatever is specified as HOSTNAME in /etc/hostconfig if an
error is not returned (but since this is always the case, it will always use whatever
is in the file).

I thought this might have been part of apple's strategy to make OS X less usable
as a server as to force users to purchase X Server, but setting the hostname via
ipconfig is broken on that as well......

So yes, the point is this tip is certainly true.

Aaron Faby
aaron@yourlink.net



[ Reply to This | # ]
Not - re to hostname on Mac OSX
Authored by: ubergoonz on Dec 11, '02 12:30:01PM

actually, the file /etc/hostconfig is very much specific to netinfo inherent from the NeXT Operating System.

IMOHO, on Mac OSX, hostname changes should be done via netinfo using the niutil command.

I haven't been able to get my hands on sysadmin docu on OS X to understand how to do the needful change. But once's i've got it. I can uupdate here.

cheeers.



[ Reply to This | # ]