SUMMARY: Solaris 9 DHCP client hostname / DNS Update

From: Randy Millis (rmillisl_at_gdcanada.com)
Date: 01/07/04

  • Next message: Martin Ma: "I got ld.so.1 corrupt problem"
    To: "Randy Millis" <rmillisl@gdcanada.com>, <sunmanagers@sunmanagers.org>
    Date: Wed, 7 Jan 2004 14:20:59 -0700
    
    

    Sorry for the delay writing this Summary:

    This *is* in the list archives but I found I had to really dig and piece it
    together. maybe its just me. :-)

    Here is what worked for me in hopes that it benifits others - your mileage
    may vary.

    Create or edit the files outlined and reboot:

    /etc/nodename
    yourhostname

    /etc/hostname.elxl0
    inet yourhostname

    edit /etc/default/dhcpagent and set

    REQUEST_HOSTNAME=yes

    Create this script:

    -cut-
    /etc/init.d/set_hostname
    #!/sbin/sh
    HOSTNAME=`cat /etc/nodename`
    echo "Setting hostname to $HOSTNAME... \c"
    uname -S $HOSTNAME
            echo "Done."
    -cut-

    Symlink /etc/init.d/set_hostname to /etc/rc2.d/S70set_hostname

    Thanks to Hichael Morton, Alan Pae, Paul Boven, Sid Wilroy, Gerard Henry,
    Dave Miner and Mitchell Bruntel and others who replied and provided
    suggestions to me.

    Worthy of note:

    Dave Miner wrote:

    The Solaris DHCP client will not directly send updates to a DNS server;
    it's designed to send a requested hostname to the DHCP server (see the
    dhcpagent man page for how that's configured), which should update the
    DNS on its behalf. This allows a much more secure DNS configuration, as
    the DNS server can be configured to accept updates only from the DHCP
    server, rather than any client that happens to connect to the network.

    If the network admin can't configure things this way, then your best
    fallback right now is to take a look at
    http://www.rite-group.com/consulting/solaris_dhcp.html for a popular
    workaround to the hostname being set to "unknown".

    Paul Boven Wrote:

    I use an 'inproper' way to do it, because Solaris attempts to get its
    hostname from the DHCP server, and most DHCP servers won't provide it.

    In /etc/init.d/network, line 837, replace the word 'unknown' with
    whatever you want your hostname to be. Same goes for
    /etc/init.d/inetsvc, line 160. Warning: Sometimes these files might get
    replaced by installing patches, and your changes will be lost.

    Furthermore, in /etc/default/dhcpagent, you should change the final line
    to:
    PARAM_REQUEST_LIST=1,3,12,43,15,6,28
    This adds parameters 15,6 and 28 because otherwise the dhcpagent won't
    even request those values from the dhcp-server, even though other
    startup-scripts do try to get them from dhcp.
    15 = domain-name
      6 = DNS-servers
    28 = broadcast-address
    (See RFC-2132)

    Another option would be to set the hostname you want in
    /etc/hostname.hme0 (or whatever your interface is called) and then add
    'REQUEST_HOSTNAME' to the /etc/default/dhcpagent file, as described in
    dhcpagent(1m). I haven't tried this myself though, and I don't know if
    this works via dhcp or via dyn-dns.

    ----- Original Message -----
    From: "Randy Millis" <rmillisl@gdcanada.com>
    To: <sunmanagers@sunmanagers.org>
    Sent: Wednesday, December 03, 2003 12:29 PM
    Subject: Solaris 9 DHCP client hostname / DNS Update

    > I've Googled and looked over doc.sun.com and so far have not found an
    answer
    > to this, any help would be appreciated:
    >
    > I have a Solaris 9 x86 client requesting an IP via DHCP and it comes up
    with
    > the hostname "unknown". As well the Network Admin here tells me I also
    need
    > to configure Solaris 9 so it can update the Windows 2000 DNS as they are
    no
    > longer using static DNS entries here.
    >
    > What is the proper way to set the hostname of my client?
    >
    > Has anyone been successful in getting Windows DNS to update from a Solaris
    9
    > client and how is this done?
    >
    > Thank you
    > _______________________________________________
    > sunmanagers mailing list
    > sunmanagers@sunmanagers.org
    > http://www.sunmanagers.org/mailman/listinfo/sunmanagers
    _______________________________________________
    sunmanagers mailing list
    sunmanagers@sunmanagers.org
    http://www.sunmanagers.org/mailman/listinfo/sunmanagers


  • Next message: Martin Ma: "I got ld.so.1 corrupt problem"

    Relevant Pages

    • Re: DDNS for static ip
      ... Windows 2003 AD with configured DNS and DHCP servers. ... Static IP client wants to register in DNS (unsecure works fine even using ... DHCP client not member of AD and DHCP server is member of DNSProxyUpdate. ...
      (microsoft.public.windows.server.dns)
    • Re: Security flaw in ALCATEL/THOMSON Speed Touch Pro ADSL modems
      ... | because it's a way DHCP and DNS are supposed to work and it's ... firmware simply doesn't validate any further Hostname given to it, ... this flaw allows to corrupt the local zone file ...
      (Bugtraq)
    • Re: Not removing old reverse DNS records
      ... DHCP, Dynamice DNS Updates, Scavenging, static entries & timestamps, and the DnsProxyUpdate Group: ... The nice thing about DHCP ... Force DHCP to register all records, Forward and PTR, (whether a client ... DHCP COnsole, DHCP server properties, and on the Advanced tab of the DHCP Server ...
      (microsoft.public.windows.server.dns)
    • Re: DNS Not clearing up records
      ... At this point I'm setting up a test Win2k server with DNS, ... I have confirmed the DNS settings for our DHCP server, ... To enable DNS dynamic update for DHCP clients that do not support ...
      (microsoft.public.win2000.networking)
    • Re: Active Directory Integrated DNS-DHCP -> DHCP computers with Pen Ic
      ... Active Lease, DNS dynamic update pending. ... available for lease by the DHCP server. ... It may mean that if it is stuck on the pencil icon, it means it cannot update the record in DNS because it already exists and DHCP server does not own the record, the client machine does, and therefore the DHCP server cannot update the record. ... How to configure DNS dynamic updates in Windows Server 2003. ...
      (microsoft.public.windows.server.dns)