TITLE
    Mac OS X Server: Computer Stops Responding in "Starting Name Resolver"
Article ID:
Created:
Modified:
60224
4/9/99
5/29/00

TOPIC

    This error can occur when the server computer's IP address is mistakenly entered in the Default Router Address field in the Setup Assistant.


DISCUSSION

    Use the procedure below to correct this condition.

    1. Restart your server computer. The cleanest way to do this is to first press Control-and Power, then press the R key.

    2. Immediately after you hear the startup chime, press and hold the S key. This will force your server computer to startup into "single-user mode."

    3. In single-user mode, you will be presented with a "#" prompt. The line before the # prompt should provide you with instructions for how to mount the root directory with read/write access. You can issue both of these commands on the same line by separating them with a semicolon:

    # /sbin/fsck -y; /sbin/mount -uw /

    4. Verify that the default router address is indeed incorrect by issuing the following command:

    # cat /etc/hostconfig | grep ROUTER

    It will output a line of the form:

    ROUTER=192.168.0.23

    If the value after " ROUTER=" is your server computer's IP address instead of the default router address, then this is the cause of your server computer not starting up. Go on to step 5.

    5. Now you need to change the ROUTER line in /etc/hostconfig file. You can do this on the command line, or using a text editor.

    Here's the command line method for setting the ROUTER line:

    # mv /etc/hostconfig /etc/hostconfig.broken
    # sed 's/ROUTER=.*/ROUTER=192.168.0.1/' /etc/hostconfig.broken >
    /etc/hostconfig

    Of course, replace " 192.168.0.1 " with the actual value for your default router.

    To edit /etc/hostconfig using a text editor, you will first need to set the TERM environment variable.

    # TERM=nx; export TERM

    Then invoke pico to edit the /etc/hostconfig file:

    # pico /etc/hostconfig

    Use Control-N to move the cursor down to the ROUTER= line. Then use Ctrl-F to move the cursor to the position after the "=". Use Ctrl-D to delete the existing value for ROUTER, then type in the correct value. Finally, press Ctrl-X to exit, press "y" when it asks you if you want to save, and press the Return key to write over the existing /etc/hostconfig file.

    6. Issue the exit command to exit single-user mode and complete starting up. Your server computer will continue starting up and should now get past the Configuring network time message.

Document Information
Product Area: Mac OS System Software
Category: Mac OS X Server
Sub Category: Troubleshooting
Keywords: kmosXserver

Copyright © 2000 Apple Computer, Inc. All rights reserved.