File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -896,14 +896,13 @@ The :mod:`socket` module also offers various network-related services:
896
896
897
897
.. function :: getfqdn([name])
898
898
899
- Return a fully qualified domain name for *name *. If *name * is omitted or empty,
900
- it is interpreted as the local host (as returned by :func: `gethostname `) .
899
+ Return a fully qualified domain name for *name *. If *name * is empty or equal to
900
+ `` '0.0.0.0' ``, the hostname from :func: `gethostname ` is returned .
901
901
To find the fully qualified name, the
902
902
hostname returned by :func: `gethostbyaddr ` is checked, followed by aliases for the
903
903
host, if available. The first name which includes a period is selected. In
904
904
case no fully qualified domain name is available and *name * was provided,
905
- it is returned unchanged. If *name * was empty or equal to ``'0.0.0.0' ``,
906
- the hostname from :func: `gethostname ` is returned.
905
+ it is returned unchanged.
907
906
908
907
909
908
.. function :: gethostbyname(hostname)
You can’t perform that action at this time.
0 commit comments