PyDocs

Nav

Networking and Interprocess Communication

getfqdn

socket

function (source) not WASI
  • getfqdn([name])
Get fully qualified domain name from name.

An empty argument is interpreted as meaning the local host.

First the hostname returned by gethostbyaddr() is checked, then
possibly existing aliases. In case no FQDN is available and `name`
was given, it is returned unchanged. If `name` was empty, '0.0.0.0' or '::',
hostname from gethostname() is returned.
0 Examples
No examples for socket/getfqdn.
See Also
No see-alsos for socket/getfqdn
0 Notes
No notes for getfqdn