Saturday, July 23, 2011

scutil to change host names

Apparently "changeip" isn't the recommended way to change DNS names in Snow Leopard so we must use "scutil" instead.

Take a look at the man page but mostly we will problem use it to change computer and host names:

sudo scutil --set ComputerName [new name]
sudo scutil --set HostName [new name]


 --set pref [newval]
       Updates the specified preference with the new value. 
       If the new value is not specified on the command 
       line then it will be read from standard input.

         Supported preferences include: 
         ComputerName LocalHostName HostName

         The --set option requires super-user access.

     --dns
         Reports the current DNS configuration.
 
 

1 comment:

jesscaruuk said...

I used to be recommended this website by means of my cousin. I'm now not sure whether this post is written by way of him as no one else know such distinctive approximately my difficulty. You're amazing! Thank you!
solve afp problems