Specifications

68 Chapter 6 Setting Network Preferences
Changing a Servers IP Address
The servers setup must reflect the network settings of the servers primary interface.
The primary interface is the topmost active connection in the Network pane of System
Preferences.
When using your server as a gateway to the Internet, the server uses the primary
interface to connect to the Internet. Therefore, during server setup, you configure the
primary interface to use the servers public IP address and DNS information.
The server setup program uses this information to configure other server components
(such as Open Directory, Kerberos, and Password Server). As such, the IP address and
the DNS settings of the primary interface and these other components must always
match.
If at some point you change the IP address or DNS name of the primary interface, the
system will run the changeip command within a minute or two. If not, you must
register the IP address change with the server setup program.
The changeip command makes all necessary changes at once, updating the settings of
all components configured during server setup, including Open Directory, Kerberos,
and Password Server.
The changeip command is a python script that runs tools from the /usr/libexec/
changeip folder. Three tools are available: changeip_ds, changeip_jabber, and
changeip_mail.
The changeip_ds tool updates the following local configuration files:
 /Library/Preferences/DirectoryService/DSLDAPv3PlugInConfig.plist
 /etc/openldap/slapd_macosxserver.conf
 /etc/hostconfig (if there is a static hostname)
 /etc/smb.conf
The changeip_ds tool also updates the following records in the local directory domain,
as well as a parent directory domain, if specified:
 AuthAuthority and HomeDirectory in user records
 Addresses and hostname in machine records
 Addresses and hostname in computer records
 Mount paths and addresses in mount records
 Addresses in LDAP and Password Server config records
The changeip_jabber tool updates the jabber configuration using serveradmin.
The changeip_mail tool updates the mailman, postfix, and imap configurations using
serveradmin.