/etc/hostconfig is going away - what's the replacement?

Discussion in 'macOS' started by bug, Nov 25, 2011.

  1. bug macrumors regular

    Joined:
    Feb 2, 2004
    Location:
    Vancouver, BC
    #1
    Hi All -

    I noticed today when I was working on a new Mac that the /etc/hostconfig file is headed with a line:
    #This file is going away

    ...since it seems many DHCP servers are set up poorly and this results in getting a new (incorrect) hostname quite often, I've used this file in the past to fix the hostname by adding:
    HOSTNAME=SomeName

    This still works, but since this file is going away - does anyone know the "correct" new way to do the various things you used to be able to do in this file? Since it still works I'm not having any particular problems, but I'm curious what the correct way is and I want to be ready for when this file finally does go away.

    Is use of 'scutil' the correct ultimate replacement?

    Thanks!
     
  2. DanielRandall macrumors newbie

    Joined:
    Jan 17, 2012
    #2
    The silence is deafening...

    Perhaps Apple will explain this to us soon.
     

Share This Page