Changing IP hostname-How to?

Our FTP service stop working several weeks again and after some research here, I believe I have located the problem? I found I need to run a changeip to see if the Hostname and dns match. The result is stated below:
Last login: Mon Feb 25 08:29:28 on console
Welcome to Darwin!
rrcs-24-106-224-7:~ admin$ sudo changeip -checkhostname

WARNING: Improper use of the sudo command could lead to data loss
or the deletion of important system files. Please double-check your
typing when using sudo. Type "man sudo" for more information.

To proceed, enter your password, or type Ctrl-C to abort.

Password:

Primary address = 70.60.32.130

Current HostName = rrcs-24-106-224-7.central.biz.rr.com
DNS HostName = rrcs-70-60-32-130.central.biz.rr.com

To fix the hostname please run /usr/sbin/changeip for your system with the
appropriate directory with the following values

/usr/sbin/changeip <node> 70.60.32.130 70.60.32.130 rrcs-24-106-224-7.central.biz.rr.com rrcs-70-60-32-130.central.biz.rr.com

example:

/usr/sbin/changeip /LDAPv3/127.0.0.1 70.60.32.130 70.60.32.130 rrcs-24-106-224-7.central.biz.rr.com rrcs-70-60-32-130.central.biz.rr.com



Can someone outline steps to correct this. I am unexperienced w/ command line/unix and understand it can get easily corrupt if I error. Thank you in advanced.

Posted on Mar 1, 2008 7:41 AM

Reply
1 reply

Mar 1, 2008 9:18 AM in response to digico

Google can often be your friend here. Google for +site:discussions.apple.com changeip+ or such -- the Google site: keyword is a very useful feature for targeting your query. There have been some changeip discussions here, as changing an IP host address is a fairly common task, as Mac OS X Server management goes.

The manuals can be your friend, too. There's also a section in the [Leopard Command Line Administration manual|http://images.apple.com/server/macosx/docs/Command Line_Adminv10.5.pdf] containing a changeip sequence around page 68. This covers some details.

The manual goes into some detail on the specific sequence for changeip, and it's the canonical source for this and many other command sequences, and for related considerations (the sort of ancillary details that tend to get missed in forum discussions) such as the potential need for DNS changes.

And if you don't have a full disk utility disk copy or other such archive handy, having that in place might be a good idea before you wade into any sort of serious system reconfiguration. That'll allow you to recover from errors, in the (very) unlikely event something fails.

Might want to get a static IP and a DNS entry from your provider, too, as it looks like you might have a dynamic DHCP address here.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Changing IP hostname-How to?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.