Home Forums OS X Server and Client Discussion DNS Hostname reverts back to myserver.local

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #362011
    nowhere
    Participant

    Before installing Tiger server, I created forward and reverse lookups on my windows 2k DNS server for my new Tiger Server. Forward and reverse lookups are working correctly.

    I thought I had successfully promoted the standalone server to an Open Directory Master upon checking the OD overview and seeing that everything including kerberos was running. However, after checking my log files, I saw that the hostname was reverting from myserver.mycompany.com to myserver.local. I have read the article and responses for "hostname problem" in your DNS forum. I also used the changeip command succesfully but i’m still having the same issue.

    If I temporarily remove my dns list from the network preferences panel, click apply, and wait a few minutes before adding the dns server back in, I can go to the terminal and type hostname and get the correct FQDN: myserver.mycompany.com. Unfortunately, after a few minutes, when I check my log files and run hostname from the terminal again, i find that it has reverted back to myserver.local.

    Please help!

    kadmin Log:
    -myserver.mycompany.com kadmin.local[2650](info): No dictionary file specified, continuing without one.
    -localhost kadmind[51](info): Seeding random number generator
    -localhost kadmind[51](info):No dictionary file specified, continuting without one.
    -localhost kadmind[51](info):starting
    -localhost kadmind[51](info):Got signal to request exit
    -localhost kadmind[51](info):finished, exiting

    kdc Log:
    -myserver.mycompany.com krb5kdc[866](info):setting up network
    -myserver.mycompany.com krb5kdc[866](info):listening on fd 10: udp fe80:20d:93ff:fe9d:22a4%en0.88
    -myserver.mycompany.com krb5kdc[866](info):listening on fd 11:udp 172.16.8.101.88
    -myserver.mycompany.com krb5kdc[866](info):set up 2 sockets
    -myserver.mycompany.com krb5kdc[866](info):commencing operation
    -localhost krb5kdc[89](info): setting up network
    -localhost krb5kdc[89](info):set up 0 sockets
    krb5kdc: no sockets set up?
    -myserver.local krb5kdc[168](info): setting up network
    -myserver.local krb5kdc[168](info): listening on fd 10:udp fe80::220d:93ffl:fe9d:22a4%en0.88
    -myserver.local krb5kdc[168](info):listening on fd 11:udp 172.16.8.101.88
    -myserver.local krb5kdc[168](info): set up 2 sockets
    -myserver.local krb5kdc[168](info): commencing operation

    System Log:
    -myserver mDNSResponder:Update_kerberos._tcp MYSERVER.MYCOMPANY.COM refused
    -myserver mDNSResponder:Registration of record_kerberos._udp.MYSERVER.MYCOMPANY.COM type 33 failed with error -65553
    -myserver mDNSResponder:Update_kerberos._udp.MYSERVER.MYCOMPANY.COM refused
    -myserver mDNSResponder:Registration of record _kerberos._udp MYSERVER.MYCOMPANY.COM. type 33 failed with error -65553
    -myserver mDNSResponder:ERROR: Only name server claiming responsibility for "_kerberos.myserver." is "."!

    Changing my server back to standalone and reestablishing the open directory server service does not fix the problem.

    ——-

    #362242
    Anonymous
    Guest

    had the same problem with mine. I finally had to do an upgrade since clean installs were doing this. The upgrade kept the right hostname! DNS was fine, who knows.

    #362259
    Anonymous
    Guest

    I even ran this command:

    hostname server.domain.com

    Change the host name and looks good everything was working, when I rebooted it went back. I’m curious, on your Tiger servers what happens when you enter “hostname” in terminal? Do you see the .local or the full name?

    #362275
    Florent
    Participant

    Hi have a similar problem, copy/past from the Apple’s forum :
    [QUOTE]I have a very strange problem from MacOS X 10.4. I have a PowerMac G4 with 2 Ethernet Cards, one for the WAN the other for the LAN. All configured and working with the NAT.

    I have a running DNS server, configured manually with the named files (just added 2 records A, for have the two DNS server on the same computer). But if I do not change this, the problem is the same.

    So my problem is when I type ‘hostname’ in the terminal is have only the local Bonjour name,… But not my correct DNS. I need to change it for make Kerberos running.

    I have try the change IP and the hostname -s, and this is always my local Bonjour name returned. My commands for try to change the name was :

    sudo changeip /LDAPv3/127.0.0.1 10.0.0.1 10.0.0.1 my.name.local my.name.ch
    sudo changeip /LDAPv3/127.0.0.1 wanip wanip my.name.local my.name.ch

    If I change the name directly on the hostconfig file, my kerberos is running but not working. I think It have a lot of others files to change.

    Now I have reinstall from zero my computer and bring it back in Standalone, but it’s always the Bonjour name returned…

    I have read a lot about similar problem here, but not a solution for my problem,..

    Thanks for your help,

    Florent

    PS : Sorry for my bad english.
    PS : .ch is the extension for Switzerland.[/QUOTE]

    #363028
    Anonymous
    Guest

    me tooo.

    #363410
    jbt
    Participant

    I have a very similar problem.. have tried using changip and resetting hostname, but it eventually seems to revert.

    besides reverting the LDAP directory to the .local domain, the hostname reverts to a public FQDN that the second interface (on an Xserve) was attached to rather than my internal serve.tld. What’s really strange is that I’ve shut off the external interface and removed all reference to that IP address and STILL get that hostname. This seems to cause my LDAP directory to randomly X-out users, eventhough they still ‘appear” to be active in the WM.
    AND, when this happens, kerberos authentication goes all nutty …
    any idea what’s up with this ??

    #363424
    jbt
    Participant

    Yes, just changing hostname back seemed to fix it temporarily..

    running changip seemed to break kerberos..

    so first I exported my users and groups and DNS records ..
    and set back to standalone server

    then removed the /var/db/.AppleSetupDone, restarted and re-ran the serversetup without activating anything..

    then restarting in single user and set hostname in hostconfig, adding an entry into hosts. then restarting again.

    then I run the following as root :

    slapconfig -kerberize diradmin REALM_NAME
    sso_util configure -r REALM_NAME -f /LDAPv3/127.0.0.1 -a diradmin -p diradmin_password -v 1 all
    sso_util configure -r REALM_NAME -f /LDAPv3/127.0.0.1 -a diradmin -p diradmin_password -v 1 ldap

    restart again and promote the standalone server to OD master.

    whew.

    after importing my users and groups ..
    all seemed fine.

    but all seemed fine the first time I set it up, too

    my concern is what caused it go whackey the first time
    (although std setup leaved hostconfig host : -AUTOMATIC-)

    could that be it ??

    #364145
    Anonymous
    Guest

    10.4-Tiger server:
    I had nothing but trouble changing the hostname — it would always revert back to something I entered months ago when testing out the server initially. The ‘hostname’ command did little, as everyone has found out it lasts only until a reboot. ChangeIP didn’t help either.

    Finally, I found the rogue name embedded in a hostname key at the end of this file:
    /Library/Preferences/SystemConfiguration/preferences.plist

    I changed that entry (to hostname.local) and from there on, everything went well. Hostname now picked up my correct host name from DNS.

    So, if you’ve tried everything and nothing is working to change the hostname, you might take a look at that.

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.

Comments are closed