Re: sending persistent host name in DHCP interaction



On Mon, 2010-12-13 at 09:49 +0100, Jirka Klimes wrote:
> On Thursday 02 of December 2010 15:30:52 Peter Frederick Patel-Schneider 
> wrote:
> > Is there an easy way in NetworkManager to always send the persistent
> > host name in DHCP interactions?  I can't seem to find one.
> > 
> > My understanding is that most of this is left to the distribution
> > plugin.  Under Fedora it appears that sending the host name is not done
> > unless configuration files (like /etc/dhclient-wlan0.conf or
> > /etc/sysconfig/network-scripts/ifcfg-eth1) are modified.  So in Fedora
> > it is possible to send *a* host name, but I wouldn't call the way of
> > doing it easy.
> > 
> > It appears that NetworkManager can get the persistent host name (from a
> > plugin) and use that.  However, no host name is sent unless
> > NM_SETTING_IP4_CONFIG_DHCP_SEND_HOSTNAME is true, and this defaults to
> > false.  I guess, then, that I'm asking how to easily set this variable.
> > 
> > Peter F. Patel-Schneider
> > 
> > 
> > PS: I would count as "easy" changing the default for
> >     NM_SETTING_IP4_CONFIG_DHCP_SEND_HOSTNAME to true.  :-)
> 
> There are several bugs about the issue in Red Hat bugzilla:
> 
> https://bugzilla.redhat.com/show_bug.cgi?id=590096
>  - there are three ways how to send the hostname to DHCP server (though they 
> do require to manually edit the connection)
>  - Dan prefers sending persistent hostname without GUI configuration
> 
> https://bugzilla.redhat.com/show_bug.cgi?id=469336
>   - you will find how to edit connection to add DHCP hostname via gconf-editor
> 
> https://bugzilla.redhat.com/show_bug.cgi?id=596242
>  - there is a patch adding GUI for sending DHCP hostnames to nm-connection-
> editor
> 
> https://bugzilla.redhat.com/show_bug.cgi?id=488975
>  - contains a patch to make NM_SETTING_IP4_CONFIG_DHCP_SEND_HOSTNAME true by 
> default
> 
> Dan, is there any reason why we don't change 
> NM_SETTING_IP4_CONFIG_DHCP_SEND_HOSTNAME to TRUE by default?

Hmm.  I can't think of one.  Let's flip that to TRUE in the in
nm_setting_ip4_config_class_init() during property definition.  Thanks!

Dan




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]