dhcp4: strip domain when sending a hostname option

When sending fqdn in hostname option, the dhcp-sever contructs a hostname
like linux.site.$ddns-domainname instead of linux.$ddns-domainname, causing
that the dns update fails.