fix get fqdn

you cant simple check if ```socket.gethostname()``` returns a string with a dot. 

A hostname can have a dot in its name and still not be FQDN!
This patch will return the socket.fqhostname() if it's longer then the socket.hostname().

Note: this patch was not tested... but please resolve this issue.
Merge remote-tracking branch 'origin/fix_fqdn' into hacking_ddns