Red Hat Bugzilla – Bug 508981
dhclient appears to ignore send host-name
Last modified: 2009-08-06 10:23:11 EDT
Description of problem:
Trying to work around BZ#488975 i.e. get a hostname sent to the DHCP server in order for DDNS to function properly, I create /etc/dhclient-wlan0.conf with
send host-name "fred"
which does in fact get propagated across to /var/run/nm-dhclient-wlan0.conf.
Looking at the logs on the server side, the host-name option does not appear.
Interestingly, if I run dhclient manually, and use the -H option, the server does get fed the host-name option.
Version-Release number of selected component (if applicable):
Put your dhclient.conf files in /etc/dhcp rather than just /etc. Yes, this is a change from what we've always had, but I wanted to collect all dhcp-related configuration files for dhcpd and dhclient and place them in a subdirectory because I felt like it was cluttering up /etc too much.
The dhclient(8) man page mentions the default config file path too:
Path to the client configuration file. If unspecified, the
default /etc/dhcp/dhclient.conf is used.
That's not the problem -- NetworkManager *is* provding the -cf option, as described in my original report.
My mistake for misreading the first comment. Do you have a semicolon on the end of the send host-name line in your dhclient-wlan0.conf file?
send host-name "fred";
Oh good grief. Well that's one for each of us mis-reading.
Chalk this up to user error, and thanks.