How to send DHCP hostname with NM?

Neal Becker ndbecker2 at gmail.com
Mon Mar 9 13:54:47 UTC 2009


Mogens Kjaer wrote:

> Neal Becker wrote:
> ...
>> Because
>> 
>> host <blah> fails for this machine, but works for lots of others.
>> 
>> I think it's like this:
> 
> I've never had any problems like this. If the machine gets an IP
> by DHCP, the server registers the hostname in DNS, independent of
> the client machine running NM or not. If the hostname is specified
> in DHCP_HOSTNAME.
> 
> Without access to the server's logfiles it would be difficult
> to find out what your problem is...
> 
> Unless you can sniff the DHCP packets, or make a local setup
> with your own DHCP server, not connected to the rest of the
> network.
> 
> Mogens
> 

I can say now for certain, that it will send the hostname iff you create 
/etc/dhclient-<iface>.conf with:
send host-name "<your hostname>";





More information about the fedora-list mailing list