Before running changeip, be sure you have updated the server’s hostname in DNS to match the hostname provided to changeip; otherwise errors will be logged in system.log, and services may not function properly.
How to Check Host Name using the -checkhostname command
Open a Terminal window and type:
sudo changeip -checkhostname

Enter your computer password and press return

The “Current” hostname and “DNS hostname” should “Match” If the “Current” hostname and “DNS hostname” Do Not match proceed with “changeip”
Mac OS X Server 10.4.6 and later include changes to the command line utility “changeip” such that you must now use a fully qualified domain name (FQDN) with the command.
Run the changeip tool:
$ sudo changeip [(directory|-)] old-ip new-ip [old-hostname new-hostname]
Parameters:
Directory – If the server is an Open Directory master or replica, or is connected to a folder system, include the path to the folder domain (folder directory domain). For a standalone server, enter “-” instead.
Old-ip – The current IP address. New-ip – The new IP address.
Old-hostname (Optional) – The current fully qualified DNS host name of the server.
New-hostname (Optional) – The new fully qualified DNS host name of the server.
Important: If you change your IP address and computer name using changeip while you are connected to a directory server, you must disconnect and reconnect to the directory server to update the directory with the new computer name and IP address. If you do not disconnect and reconnect to the directory server, the directory is not updated and continues to use the old computer name and IP address.
To change the IP address of a computer hosting an LDAP master:
$ sudo changeip /LDAPv3/127.0.0.1 192.0.0.12 192.0.1.10 oldhost.domain.com newhost.domain.com
Note: It might be necessary to change the configuration of computers pointing to this master.
To change the IP address of a standalone server:
$ sudo changeip – 192.0.0.12 192.0.1.10 oldhost.domain.com newhost.domain.com
exit & restart








































0 Responses
Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.
You must be logged in to post a comment.