Add version of getFQDN accepting preferences
Add version of getFQDN accepting preferences

Still the best way to get the "canonical name" of a host
is to look up its host name and reverse look up the IP
address obtained. Obviously, that the result depends
on the protocol family used. So accept hints on which
family to prefer.

Note that getFQDN is exported on higher branches, so we
keep its type stable to avoid semantic merge conflicts.

Signed-off-by: Klaus Aehlig <4ce51de36d9068cd7db2eec1151e0f3f95419008@google.com>
Reviewed-by: Helga Velroyen <2d0126b1ec6f9ec5cbec4a7012aa14faeaef10f5@google.com>

leshchevds/ganeti,ganeti/ganeti,grnet/snf-ganeti,mbakke/ganeti,onponomarev/ganeti,leshchevds/ganeti,ganeti/ganeti,yiannist/ganeti,grnet/snf-ganeti,mbakke/ganeti,bitemyapp/ganeti,yiannist/ganeti,bitemyapp/ganeti,leshchevds/ganeti,onponomarev/ganeti,andir/ganeti,ganeti/ganeti,andir/ganeti,yiannist/ganeti,mbakke/ganeti,andir/ganeti