Home › Forums › OS X Server and Client Discussion › Questions and Answers › changeip not doing its job!
- This topic has 2 replies, 2 voices, and was last updated 14 years, 7 months ago by
bschappel.
-
AuthorPosts
-
September 3, 2010 at 9:02 am #379391
amraj2004
ParticipantHi Guys,
I have been a long time follower and have come across a problem that I cant seem to find on the forums and am hoping that someone can help me…
The server (OSX 10.4.11, Intel Xserve: model MA409LL/A) has a problem where the Server Admin tool will not allow for anyone, locally and remotely, to connect to the server. This in turn is stopping the Printer sharing service from running.
I have so far found that this is occurring because servermgrd is not running, and it cannot start because the hostnames locally and the DNS do not match up. After spending 6 hours of adhoc learning (which is the best thing ever!) i have ran the following commands in Terminal on the server with the following results:
———————————————————————————————-
londmstwist:/usr/sbin admin$ sudo scutil –get HostNamePassword:
londmstwist.emea.schawk.com
londmstwist:/usr/sbin admin$ sudo changeip -checkhostnamePrimary address = 10.32.9.57
Current HostName = londmstwist.emea.schawk.com.emea.schawk.com.emea.schawk.com.emea.schawk.com
DNS HostName = londmstwist.emea.schawk.comTo fix the hostname please run /usr/sbin/changeip for your system with the
appropriate directory with the following values/usr/sbin/changeip
10.32.9.57 10.32.9.57 londmstwist.emea.schawk.com.emea.schawk.com.emea.schawk.com.emea.schawk.com londmstwist.emea.schawk.com example:
/usr/sbin/changeip /LDAPv3/127.0.0.1 10.32.9.57 10.32.9.57 londmstwist.emea.schawk.com.emea.schawk.com.emea.schawk.com.emea.schawk.com londmstwist.emea.schawk.com
londmstwist:/usr/sbin admin$ sudo changeip – 10.32.9.57 10.32.9.57 londmstwist.emea.schawk.comemea.schawk.com.emea.schawk.com.emea.schawk.com londmstwist.emea.schawk.com
Updating local node
Updating Password Server config
Updating Open Directory config
Updating hostconfig file
Updating smb.conf file
Updating Kerberos Service Principals and keytabs
Finished updating Kerberos
Changing IP Addresses and host names for iChat Server
Changing IP Addresses and host names for Mail Server
londmstwist:/usr/sbin admin$ sudo changeip -checkhostname
Primary address = 10.32.9.57Current HostName = londmstwist.emea.schawk.com.emea.schawk.com.emea.schawk.com.emea.schawk.com
DNS HostName = londmstwist.emea.schawk.comTo fix the hostname please run /usr/sbin/changeip for your system with the
appropriate directory with the following values/usr/sbin/changeip
10.32.9.57 10.32.9.57 londmstwist.emea.schawk.com.emea.schawk.com.emea.schawk.com.emea.schawk.com londmstwist.emea.schawk.com example:
/usr/sbin/changeip /LDAPv3/127.0.0.1 10.32.9.57 10.32.9.57 londmstwist.emea.schawk.com.emea.schawk.com.emea.schawk.com.emea.schawk.com londmstwist.emea.schawk.com
londmstwist:/usr/sbin admin$
———————————————————————————————-
As you can see for some reason the hostname from sudo scutil -get hostname (Londmstwist.schawk.com) does not match the current hostname when running sudo changeip – checkhostname (LONDMSTWIST.EMEA.SCHAWK.COM.EMEA.SCHAWK.COM.EMEA.SCHAWK.COM.EMEA.SCHAWK.COM). I have check the DNS server and have set 10.32.9.57 to resolve to LONDMSTWIST.EMEA.SCHAWK.COM , which is what rightly comes up for the DNS hostname in the changeip – gethostname.
SOrry if I’m rambling but I have now spent a full 24 hours on this thing and am hitting a brick wall.
ANY help will be greatly appreciated!
Thanks
A
September 3, 2010 at 10:17 am #379392amraj2004
ParticipantAn Update:
I got the hostname to change by running sudo hostname server.domain.com
I ran sudo changeip -checkhostname and the hostname and DNS hostnames are the same! YAY!!!!
I rebooted the server and servermgrd still keeps crashing, when i check console.log the error message is:
Sep 3 11:02:52 londmstwist crashdump[1264]: servermgrd crashed
Sep 3 11:02:53 londmstwist servermgrd: servermgr_dns: gethostbyaddr() and reverse DNS name do not match (londmstwist != londmstwist.emea.schawk.com), various services may not function properly – use changeip to repair and/or correct DNS
Sep 3 11:02:53 londmstwist crashdump[1264]: crash report written to: /Library/Logs/CrashReporter/servermgrd.crash.logCan someone please give me some guidance in decrypting the error?
Thanks
A
September 3, 2010 at 3:16 pm #379395bschappel
ParticipantOne thing I see is that the reverse DNS lookup is now matching the forward lookup. What do you get when you enter the command: [code]host 10.32.9.57[/code] If this does not return “LONDMSTWIST.EMEA.SCHAWK.COM” then you need to edit your 9.32.10.in-addr.arpa file on your DNS server and change the entry for 57 to “LONDMSTWIST.EMEA.SCHAWK.COM.”. Notice the period at the end of the FQDN. This is VERY important.
You don’t mention what you’re using for your DNS server. What are you using?
Hope this helps.
-
AuthorPosts
- You must be logged in to reply to this topic.
Comments are closed