Displaying 1 result from an estimated 1 matches for "mypersonaldomainname".
2014 Jun 25
1
bug in samba?
...the resolver), while others want hostname .
getfqdn seems to return a different result than gethostname if the hostname of the machine is an alias.
For example if I have this in /etc/hosts and with some python testing.
127.0.0.1 localhost localhost.localdomain localhost2 localhost2.localdomain2 mypersonaldomainname.tld
?
python -c 'import socket; print socket.getfqdn()'
?
gives localhost.localdomain
?
python -c 'import socket; print socket.gethostname()'
?
gives mypersonaldomainname.tld
?
?
so how does samba get the hostname??
?
?
?
Louis
?
?