• 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
Changing hostname in Cocoa?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Changing hostname in Cocoa?


  • Subject: Changing hostname in Cocoa?
  • From: David Lee <email@hidden>
  • Date: Mon, 15 Oct 2001 15:14:38 +0000

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?

Thanks for any help in advance,
David Lee


  • Follow-Ups:
    • Re: Changing hostname in Cocoa?
      • From: Vince DeMarco <email@hidden>
    • Re: Changing hostname in Cocoa?
      • From: "Sven A. Schmidt" <email@hidden>
  • Prev by Date: Re: Little problem with NSFormatter way of working
  • Next by Date: Re: Adding some polar coordinate capabilities to NSBezierPath.
  • Previous by thread: Re: Adding some polar coordinate capabilities to NSBezierPath.
  • Next by thread: Re: Changing hostname in Cocoa?
  • Index(es):
    • Date
    • Thread