Solaris 10 and the "Unknown" hostname issue - Solaris

This is a discussion on Solaris 10 and the "Unknown" hostname issue - Solaris ; Hi All, I have tried to not avail to change the name of the default hostname "unknown" ! I have changed the following files and added my new hostname which is "serverone", but DHCP is replacing it to "unknown", when ...

+ Reply to Thread
Results 1 to 4 of 4

Thread: Solaris 10 and the "Unknown" hostname issue

  1. Solaris 10 and the "Unknown" hostname issue


    Hi All,

    I have tried to not avail to change the name of the default hostname
    "unknown" !

    I have changed the following files and added my new hostname which is
    "serverone", but DHCP is replacing it to "unknown", when I reboot the
    computer.

    I did make sure to enter too, my new hostname "serverone" to etc/
    nodename, ect/hostname.pcn0 files and add the following line
    "hosts: files dns" to the following file ect/nsswitch.conf, but
    I am not having any luck!

    Solaris 9 was ok, with my change above, but for Solaris 10, I think
    there is some kind of new configuration, I need to do, to fix this
    issue!

    My question is: Does anyone here know where the "unknown" name is
    coming from? If it is coming from a file, I think I can just go to
    that file, and replace it with my new hostname.

    Thanks in advance,
    Ed

  2. Re: Solaris 10 and the "Unknown" hostname issue

    Ed wrote:
    > Hi All,
    >
    > I have tried to not avail to change the name of the default hostname
    > "unknown" !
    >
    > I have changed the following files and added my new hostname which is
    > "serverone", but DHCP is replacing it to "unknown", when I reboot the
    > computer.
    >
    > I did make sure to enter too, my new hostname "serverone" to etc/
    > nodename, ect/hostname.pcn0 files and add the following line
    > "hosts: files dns" to the following file ect/nsswitch.conf, but
    > I am not having any luck!
    >
    > Solaris 9 was ok, with my change above, but for Solaris 10, I think
    > there is some kind of new configuration, I need to do, to fix this
    > issue!
    >
    > My question is: Does anyone here know where the "unknown" name is
    > coming from? If it is coming from a file, I think I can just go to
    > that file, and replace it with my new hostname.
    >
    > Thanks in advance,
    > Ed


    You need to tell your DHCP server the hostname you wish to use! If it
    doesn't know the hostname, it will use "unknown".

  3. Re: Solaris 10 and the "Unknown" hostname issue

    On Sun, 22 Jun 2008 20:52:32 -0400, Richard B. Gilbert wrote:

    > Ed wrote:
    >> I have tried to not avail to change the name of the default hostname
    >> "unknown" !
    >> I have changed the following files and added my new hostname which is
    >> "serverone", but DHCP is replacing it to "unknown", when I reboot the
    >> computer.
    >>
    >> I did make sure to enter too, my new hostname "serverone" to etc/
    >> nodename, ect/hostname.pcn0 files and add the following line
    >> "hosts: files dns" to the following file ect/nsswitch.conf, but
    >> I am not having any luck!


    dhcpagent might well ignore your "ect/hostname.pcn0" file
    or the contents might confuse the heck out of it
    /etc/nodename alone works fine for me..

    >> Solaris 9 was ok, with my change above, but for Solaris 10, I think
    >> there is some kind of new configuration, I need to do, to fix this
    >> issue!
    >> My question is: Does anyone here know where the "unknown" name is
    >> coming from? If it is coming from a file, I think I can just go to
    >> that file, and replace it with my new hostname.

    You are getting warm
    > You need to tell your DHCP server the hostname you wish to use! If it
    > doesn't know the hostname, it will use "unknown".


    Say what? Just put a uucp legal name in /etc/nodename
    "problem" solved. Let dhcpagent do the work after that.
    Delete the pcn0 file.


  4. Re: Solaris 10 and the "Unknown" hostname issue

    On Jun 22, 6:35 pm, Ed wrote:
    > Hi All,
    >
    > I have tried to not avail to change the name of the default hostname
    > "unknown" !
    >
    > I have changed the following files and added my new hostname which is
    > "serverone", but DHCP is replacing it to "unknown", when I reboot the
    > computer.
    >
    > I did make sure to enter too, my new hostname "serverone" to etc/
    > nodename, ect/hostname.pcn0 files and add the following line
    > "hosts: files dns" to the following file ect/nsswitch.conf, but
    > I am not having any luck!
    >
    > Solaris 9 was ok, with my change above, but for Solaris 10, I think
    > there is some kind of new configuration, I need to do, to fix this
    > issue!
    >
    > My question is: Does anyone here know where the "unknown" name is
    > coming from? If it is coming from a file, I think I can just go to
    > that file, and replace it with my new hostname.


    Your dhcp server may be sending a hostname, either change that in the
    server or edit /etc/default/dhcpagent ...


    # By default, a parameter request list requesting a subnet mask (1),
    # router (3), DNS server (6), hostname (12), DNS domain (15),
    broadcast
    # address (28), and encapsulated vendor options (43), is sent to the
    DHCP
    # server when the DHCP agent sends requests. However, if desired,
    this
    # can be changed by altering the following parameter-value pair. The
    # numbers correspond to the values defined in the IANA bootp-dhcp-
    parameters
    # registry at the time of this writing.
    #
    PARAM_REQUEST_LIST=1,3,6,12,15,28,43


    >
    > Thanks in advance,
    > Ed



+ Reply to Thread