Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ChangeIPAddress.command




On Jul 23, 2008, at 4:10 PM, Stewart Lawler wrote:


On 24/07/2008, at 2:21 AM, Stewart Lawler wrote:
FWIW, i just used changeip on a (10.5.4) box to change the hostname only, not the IP, and even that was a bit ... meh. Box is only running AFP & OD at this point (bound to AD so i unbound first of course) and it all seemed to run without complaint -- but then after restarting i still had to change the name in System Prefs->Sharing by myself. What's with that eh? (no you don't have to answer that :-)

..so i'll answer it myself, having spent the last few hours getting more friendly with the changeip process than i'd really been planning to..

when i first ran changeip i pointed it at the local directory using the '-' operator. could've been my fatal mistake.

No, this is correct if you are operating purely as a local-only node. 

whilst trying to work out why clients couldn't log in i discovered a whole bunch of references to the old hostname still in /etc/openldap/ files

Because the hostname couldn't properly be determined b/c of bad DNS. 

, so realising my error i ran changeip against /LDAPv3, and that went smoothly. all refs to old hostname now gone from /etc/openldap.

But hostname can still not b properly obtained b/c of bad DNS. 

lovely. only clients still can't log in.

Because of bad DNS

after more sleuthing, the one remaining reference to the old hostname that i can find is in the LDAP Search base,

Because of bad DNS. (See a pattern?)

which isn't changeable via the ServerAdmin gui or cli tools (for good reason i'm sure)

A very good reason, you need to have this fixed since name turns can't occur b/c DNS isn't active in certain phases as the system starts. 

, but from my googling so far it seems the server role demotion/promotion trick is about the only choice i have other than reinstalling to get it corrected.



so yeah, my advice is when it comes to changing the IP and/or hostname of a server - don't :-)

That's bad advice. The process works flawlessly under properly configured systems. 

If you don't have properly configured systems, yeah, it can be a bear to figure out and probably requires a rather astute and knowledgeable Mac OS X Server sysadmin. This also baffles most Apple OS X Server support engineers who will probably recommend you just re-install, and for many that is the easier advice because unless you are prepared to track down lots of potential conflicts and problems you can get into 

If you chose to not changeip and just ignore changing it you will live to regret it as things will fail very unexpectedly and you can lose the ability to connect to your server (and clients sometimes as well will lose OD) and perform Server Admin and other tasks in very unexpected ways. 


there's other ways of doing what you're trying to do... but if you have to use changeip - be very, veeeeerrrry careful.

No, just understand that garbage in / garbage out. 

what seems like such a simple quick easy job can, as it just has for me, explode out of all proportion by virtue of one careless action, leaving my cat without her dinner, or breakfast probably now to by the looks of it....

Which would all be avoided had you initially followed Apple's directions for proper system setup and met all the proper pre-requisites for good DNS. Of course that's seems to be easier said than done for many.

-dhan

------------------------------------------------------------------------
Dan Shoop
Computer Scientist
iWiring / U.S. Technical Services

AOL IM .................... iWiring
Nextel .................... 1-714-363-1174
Operations TOC (24/7) ..... 1-866-901-USTS
USTS Offices .............. 1-714-374-6300

For immediate response for urgent matters please speak to the Duty Officer 
at the USTS Tactical Operations Center (above) who can reach me by radio. 


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Macos-x-server mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/macos-x-server/email@hidden

This email sent to email@hidden

References: 
 >ChangeIPAddress.command (From: Ian Masters <email@hidden>)
 >Re: ChangeIPAddress.command (From: Eli Bach <email@hidden>)
 >Re: ChangeIPAddress.command (From: Ian Masters <email@hidden>)
 >Re: ChangeIPAddress.command (From: Simon Slavin <email@hidden>)
 >Re: ChangeIPAddress.command (From: Ansgar Wiechers <email@hidden>)
 >Re: ChangeIPAddress.command (From: Stewart Lawler <email@hidden>)
 >Re: ChangeIPAddress.command (From: Stewart Lawler <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.