How can I alocate a hostname based on MAC adress and DHCP?



Hi, i have a small network (50 comps) and I want to alocate each
computer a hostname based on the MAC adress. Eg:
comp1.lab1.....etc,etc.... Even if somebody change the hostname, on the
next reboot the computer must take the hostname from the server based
on the MAC adress. Any ideas?
Thanks

.



Relevant Pages

  • Re: How can I alocate a hostname based on MAC adress and DHCP?
    ... computer a hostname based on the MAC adress. ... The dhcpd server will let you assign an ip address and suggest ... a host name based on the machines mac address. ...
    (comp.os.linux.networking)
  • Ubuntu caching config info?
    ... So I made the bad mistake of trying to change my hostname (just put the ... name of the new host in /etc/hostname and rebooted) and it raised 8 ... kinds of new hell on reboot (custom compiled kernel, ... Does Ubuntu cache config info anywhere? ...
    (Ubuntu)
  • Re: update hostname
    ... Bit Twister 寫道: ... True, it changes the hostname for a moment, ... but it switches it back whenever you reboot. ...
    (comp.os.linux.misc)
  • Re: update hostname
    ... True, it changes the hostname for a moment, ... but it switches it back whenever you reboot. ... Might depend on distribution, supposedly Mandriva Linux can manage it, ...
    (comp.os.linux.misc)
  • sorry, more information about the NIS problem
    ... it posts the hostname and then ... said ldap nis domain name is and then would hang. ... LDAP configuration, but now upon reboot, it comes up on boot to the ...
    (SunManagers)