• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Changing hostname in Cocoa?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Changing hostname in Cocoa?


  • Subject: Re: Changing hostname in Cocoa?
  • From: Vince DeMarco <email@hidden>
  • Date: Mon, 15 Oct 2001 11:21:43 -0700

On Monday, October 15, 2001, at 08:14 am, David Lee wrote:

I require my application to change the hostname of my computer, the reasons are irrelevant to this post but how do I go about doing this in Cocoa?

I thought I was pretty good on UNIX systems and it turns out that I can't even do this manually. I tried editing /etc/hostconfig and changing the HOSTNAME=evolution part to the name of my choice and fair enough, my command prompt reads with the correct hostname, but it's only asthetic so how do I enable this to work so that I can type ftp evolution from my console and get to my own machine just as with localhost?

I heard that OSX doesn't use /etc/hosts in multiple user mode and it uses netinfo for this sort of thing. Is there a guide to netinfo or something?

Is it even possible to change the hostname in Cocoa?

Look up the docs for

sethostname

do this

man sethostname

vince


References: 
 >Changing hostname in Cocoa? (From: David Lee <email@hidden>)

  • Prev by Date: Re: Displaying an alert box
  • Next by Date: Re: Displaying an alert box
  • Previous by thread: Re: Changing hostname in Cocoa?
  • Next by thread: Re: Zooming in/out of images
  • Index(es):
    • Date
    • Thread