How to send hostname through DHCP more often.

From: Bogdan Calmac (bcalmac_at_gmail.com)
Date: 08/31/05

  • Next message: Mark Calleja: "Re: Sony Memory Stick Pro and Debian"
    Date: Wed, 31 Aug 2005 12:00:26 -0400
    To: debian-user@lists.debian.org
    
    

    I use debian stable (sarge) and the dhcp3-client package. I register
    my hostname by adding

    send hostname "foo";

    in /etc/dhcp3/dhclient.conf. Everything works fine but for some reason
    the DHCP/DNS server (which I don't control) loses the hostname
    registration and the next day I need to connect to my machine using
    the IP. Once I logon, I do

    ifup --force eth0

    and the hostname is registered again. This is obviously not nice, so
    is it possible to:

    1. configure dhclient to send the hostname at a certain interval?
    2. configure dhclient to send just the hostname?
    3. control the interval at which dhclient renews the lease and set it
    to a few hours so that the hostname is sent more frequently?

    Do you have any other suggestion for approaching this? Again, I cannot
    touch the server.

    In the worst case I would probably set a cron job to do "ifup --force eth0" :-(


  • Next message: Mark Calleja: "Re: Sony Memory Stick Pro and Debian"

    Relevant Pages

    • Re: How to send hostname through DHCP more often.
      ... > the DHCP/DNS server loses the hostname ... configure dhclient to send the hostname at a certain interval? ... control the interval at which dhclient renews the lease and set it ...
      (Debian-User)
    • Re: sendmail : mail not delivered
      ... If you want to send mail to the world you'll need a valid hostname ... registered in DNS to send from. ... Host biznet.sys.linux not found: 3 ... Alternately you can also register a domain with a registrar and run ...
      (Fedora)
    • Re: problem accessing MS Exchange 2003 from outside using OWA
      ... You need to register a hostname in the external DNS (you could use the same ... > I am using http://exchangesrvname/exchange/username i.e. jleonard. ...
      (microsoft.public.exchange2000.admin)
    • Re: How to send hostname through DHCP more often.
      ... > the DHCP/DNS server loses the hostname ... configure dhclient to send the hostname at a certain interval? ... control the interval at which dhclient renews the lease and set it ...
      (Debian-User)
    • set hostname with dhcp + NM?
      ... I seem to be unable to register my hostname when using dhcp + NM. ... and how can I add this entry ...
      (Fedora)