m4rtin |
09-20-2012 03:53 AM |
"domain-name" and "host-name" options in dhcpd.conf
In dhcpd.conf file one can specify "domain-name" and "host-name":
Code:
host server {
hardware ethernet 00:11:22:33:44:55;
option domain-name "example.net";
option host-name "happyhost";
}
If dhclient requests resources from dhcpd, then "example.net" is written to /etc/resolv.conf file domain and search lines. However, dnsdomainname does not show domain and hostname command or "echo $HOSTNAME" does not show happyhost as an hostname. Could somebody explain this behavior? :rolleyes:
|