This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: [doc] socket.getfqdn docs are not explicit enough about the algorithm.
Type: behavior Stage:
Components: Documentation Versions: Python 3.11, Python 3.10, Python 3.9
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: docs@python Nosy List: andrei.avk, docs@python, iritkatriel, r.david.murray
Priority: normal Keywords:

Created on 2012-12-09 21:44 by r.david.murray, last changed 2022-04-11 14:57 by admin.

Messages (3)
msg177236 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2012-12-09 21:44
From the docs it isn't quite clear if getfqnd() does the equivalent of:

  gethostbyaddr('127.0.0.1')

or

  gethostbyaddr(gethostbyname(gethostname()))

It matters which it is, when debugging a host's name configuration and DNS server problems.
msg223119 - (view) Author: Mark Lawrence (BreamoreBoy) * Date: 2014-07-15 17:00
I'm assuming that this still needs doing.
msg407408 - (view) Author: Irit Katriel (iritkatriel) * (Python committer) Date: 2021-11-30 23:23
There was a recent update nearby in issue40635 by Andrei, but I think it doesn't quite cover this issue.
History
Date User Action Args
2022-04-11 14:57:39adminsetgithub: 60856
2021-11-30 23:23:42iritkatrielsetnosy: + iritkatriel, andrei.avk
title: socket.getfqdn docs are not explicit enough about the algorithm. -> [doc] socket.getfqdn docs are not explicit enough about the algorithm.
messages: + msg407408

versions: + Python 3.9, Python 3.10, Python 3.11, - Python 2.7, Python 3.4, Python 3.5
2019-04-26 19:38:09BreamoreBoysetnosy: - BreamoreBoy
2014-07-15 17:00:41BreamoreBoysetnosy: + BreamoreBoy

messages: + msg223119
versions: + Python 3.5, - Python 3.2, Python 3.3
2012-12-09 21:44:41r.david.murraycreate