socket.getfqdn() - socket
Return a fully qualified domain name for name. If name is omitted or empty,
it is interpreted as the local host. To find the fully qualified name, the
hostname returned by gethostbyaddr() is checked, followed by aliases for the
host, if available. The first name which includes a period is selected. In
case no fully qualified domain name is available, the hostname as returned by
gethostname() is returned.
Syntax
socket.getfqdn([name])
Example
Output / Return Value
Limitations
Alternatives / See Also
Reference