Skip to content

Commit 21a9280

Browse files
committed
Be explicit about socket.getfqdn
1 parent 3383d6a commit 21a9280

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Doc/library/socket.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -966,7 +966,8 @@ The :mod:`socket` module also offers various network-related services:
966966
.. function:: getfqdn([name])
967967

968968
Return a fully qualified domain name for *name*. If *name* is omitted or empty,
969-
it is interpreted as the local host. To find the fully qualified name, the
969+
it is interpreted as the local host (as returned by :func:`gethostname`).
970+
To find the fully qualified name, the
970971
hostname returned by :func:`gethostbyaddr` is checked, followed by aliases for the
971972
host, if available. The first name which includes a period is selected. In
972973
case no fully qualified domain name is available and *name* was provided,

0 commit comments

Comments
 (0)