Re: Setting Computer Hostname via DHCP Server

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



dhcpcd should do this automatically. From dhcpcd(8):

    If the hostname is currently blank, (null) or localhost, or
    force_hostname is YES or TRUE or 1 then dhcpcd sets the hostname to
    the one supplied by the DHCP server.

It seems to work for me. If you're setting the hostname manually in
/etc/rc.conf, then you'll either need to remove that or run dhcpcd with
`-e force_hostname=TRUE` to override it.


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux