SUMMARY: DHCP and Solaris 9 - hostname issue

patrik.koch_at_philips.com
Date: 09/23/03

  • Next message: Birl: "Solaris 9 - reading data between pipes (or is this a /proc question?)"
    To: sunmanagers@sunmanagers.org
    Date: Tue, 23 Sep 2003 16:23:09 +0200
    
    

    Thanks to:

    Schaper, Soeren

    Hichael Morton

    Michael.J.Watson

    Pete Geenhuizen

    Seems to be a well known problem (mentioned in list archive and sunsolve).
    Solution: You have to modify the startup scripts because the Windows DHCP server
    doesn't return the hostname to the Solaris DHCP client.

    The problem is described in sunsolve (FAQ ID 3477)
    http://de.sunsolve.sun.com/private-cgi/retrieve.pl?doc=faqs%2F3477&zone_32=DHCP

    Or sunsolve BUG ID 4496716 and 4721209
    http://de.sunsolve.sun.com/private-cgi/retrieve.pl?doc=bug%2Fnetwork%2Fdhcp_client%2F4496716&zone_32=DHCP

    Pete mentioned the link http://www.rite-group.com/consulting/solaris_dhcp.html

    Regards,

    Patrik

    ORIGINAL POST:

    I set up a new Sun Blade 2000 as a DHCP client. DHCP server is a Windows server .
    Everything works EXCEPT the hostname assignment. Parameters like IP address,
    submask, DNS domain and server, default router, ... are assigned, but not the hostname.
    Therefore the Blade gives itself the name "unknown".

    As far as I understood you fill in the name in the files /etc/default/dhcpagent and /etc/hostname.eri0
    (in the form "inet <desired_name>"). The request is sent to the DHCP server, the DHCP server
    initiates a dynamic DNS update BUT does not return the requested hostname!
    Therefore "/sbin/dhcpinfo Hostname" returns nothing and the scripts /etc/rcS.d/S30network.sh
    and /etc/rc2.d/S72inetsvc assign the hostname "unknown".

    Is there a way to force the DHCP client to use a special hostname without the necessity that the
    DHCP server returns the requested hostname as a DHCP option?
    _______________________________________________
    sunmanagers mailing list
    sunmanagers@sunmanagers.org
    http://www.sunmanagers.org/mailman/listinfo/sunmanagers


  • Next message: Birl: "Solaris 9 - reading data between pipes (or is this a /proc question?)"

    Relevant Pages

    • Re: hostname comes up as "unknown" with cheap-o cable modem router
      ... > DHCP server that is giving you a bogus hostname. ... Server 2003 DHCP Server presently. ... # Later, in inetsvc, we create a name "unknown" and create a entry ... Note that the name of this init script is vital -- you must put the ...
      (comp.unix.solaris)
    • Re: sun dhcp on multihomed machine
      ... > Dave Miner wrote: ... >> Using the fixed address as the primary interface is what we suggest ... If your DSL provider's DHCP server doesn't supply a hostname in the DHCP ...
      (comp.unix.solaris)
    • SUMMARY: Solaris 9 DHCP client hostname / DNS Update
      ... echo "Setting hostname to $HOSTNAME... ... The Solaris DHCP client will not directly send updates to a DNS server; ... DNS on its behalf. ... hostname from the DHCP server, and most DHCP servers won't provide it. ...
      (SunManagers)
    • DHCP and Solaris 9 - hostname issue
      ... I set up a new Sun Blade 2000 as a DHCP client. ... Everything works EXCEPT the hostname assignment. ... The request is sent to the DHCP server, ...
      (SunManagers)
    • Re: DHCP client on HP-UX 11i
      ... I'm guessing HP's DHCP client still doesn't pass the hostname to the ... > DHCP server so it can perform DNS updates. ...
      (comp.sys.hp.hpux)