I have a DHCP server with this config file:

option domain-name "cassiopeia.ronet";
option domain-name-servers;
default-lease-time 600;
max-lease-time 7200;
log-facility local7;
ddns-update-style none;

subnet netmask {
 option routers;
 use-host-decl-names on;
 option broadcast-address;
 filename "pxeboot";
 option root-path "";

I would like the diskless machines to set their hostname automatically. I have a working named for this. For example:

cassiopeia# host diskless131.ronet
diskless131.ronet has address
cassiopeia# host domain name pointer diskless131.ronet.

Of course I can create individual hosts in the dhcp config file and set their hostnames. But I do not want to create 40 host declarations and look for the hardware addresses by hand... The clients should be able to determine their hostnames using a reverse dns lookup, and the set their hostnames automatically. In the above example: after the machine got its IP address ( from the DHCP server, it should set its hostname to 'diskless131.ronet'.

Sounds easy, but I do not know how to do that. Is it a standard procedure, or do I need to write a custom script? (Where should I place it?)



freebsd-questions@freebsd.org mailing list
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to