Shorten the hostname from DHCP when necessary
The hostname received in option 12 can be a FQDN longer than the maximum allowed by kernel (64 characters). Change the code in NMPolicy to gracefully handle such hostnames by truncating them to the first dot or to the maximum length, whatever comes earlier.
Fixes #572 (closed).